|
Home > Archive > Apache Directory Project > August 2006 > Can't get 1.0-trunks to work
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Can't get 1.0-trunks to work
|
|
| Jörg Henne 2006-07-31, 7:11 am |
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi all,<br>
<br>
sorry to bother you, but I have some problems getting the 1.0 trunk to
work. I fear there's an embarrassingly simple answer lurking somewhere,
but double checking the involved revisions, debugging into the code
etc. hasn't revealed it yet.<br>
<br>
First: the symptoms: every search request causes the following CCE:<br>
<br>
Caused by: java.lang.ClassCastException:
org.apache.directory.shared.ldap.name.LdapDN<br>
___ at
org.apache.directory.shared.ldap.codec.search.SearchResultEntry.computeLength(SearchResultEntry.java:240)<br>
___ at
org.apache.directory.shared.ldap.codec.LdapMessage.computeLength(LdapMessage.java:530)<br>
___ at
org.apache.directory.shared.ldap.codec.LdapMessage.encode(LdapMessage.java:602)<br>
___ at
org.apache.directory.shared.ldap.codec.TwixEncoder.encodeBlocking(TwixEncoder.java:121)<br>
___ at
org.apache.directory.shared.ldap.codec.TwixEncoder.encode(TwixEncoder.java:200)<br>
___ at
org.apache.directory.shared.ldap.message.MessageEncoder.encode(MessageEncoder.java:131)<br>
___ at
org.apache.mina.filter.codec.asn1.Asn1CodecEncoder.encode(Asn1CodecEncoder.java:55)<br>
___ at
org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:228)<br>
___ ... 31 more<br>
<br>
The offending LdapDN (which SearchResultEntry tries to cast to byte[])
is supplied from SearchHandler:282, which in turn, got it from
ServerDirContext.search(Name, ExprNode, SearchControls).<br>
I suppose I've got a version incompatibility somewhere, but I can't see
where. <br>
<br>
My build is based on directory/branches/apacheds/1.0-trunks with the
externals specified therein.<br>
<br>
The resulting classpath for the server SAR is this: <br>
<blockquote>antlr-2.7.2.jar<br>
apacheds-core-1.0-RC4-SNAPSHOT.jar<br>
apacheds-core-shared-1.0-RC4-SNAPSHOT.jar<br>
apacheds-kerberos-shared-1.0-RC4-SNAPSHOT.jar<br>
apacheds-protocol-changepw-1.0-RC4-SNAPSHOT.jar<br>
apacheds-protocol-kerberos-1.0-RC4-SNAPSHOT.jar<br>
apacheds-protocol-ldap-1.0-RC4-SNAPSHOT.jar<br>
apacheds-protocol-ntp-1.0-RC4-SNAPSHOT.jar<br>
apacheds-protocol-shared-1.0-RC4-SNAPSHOT.jar<br>
apacheds-server-jndi-1.0-RC4-SNAPSHOT.jar<br>
apacheds-server-ssl-1.0-RC4-SNAPSHOT.jar<br>
checkstyle-2.2.jar<br>
commons-collections-3.0.jar<br>
commons-daemon-1.0.1.jar<br>
commons-lang-2.0.jar<br>
commons-logging-1.0.4.jar<br>
daemon-bootstrappers-1.0-RC2.jar<br>
jboss-jmx-4.0.2.jar<br>
jdbm-1.0.jar<br>
lcrypto-jdk14-131.jar<br>
mina-core-0.9.5-SNAPSHOT.jar<br>
mina-filter-codec-asn1-0.9.5-SNAPSHOT.jar<br>
mina-filter-ssl-0.9.5-SNAPSHOT.jar<br>
shared-asn1-0.9.5.2-SNAPSHOT.jar<br>
shared-ldap-0.9.5.2-SNAPSHOT.jar<br>
slf4j-log4j12-1.0.jar<br>
spring-beans-1.2.1.jar<br>
spring-context-1.2.1.jar<br>
spring-core-1.2.1.jar<br>
xercesImpl-2.0.2.jar<br>
</blockquote>
Please note the switch to MINA 0.9.5-SNAPSHOT which is necessary
because of the previously lacking broadcast support required by DHCP.<br>
<br>
Thanks<br>
Joerg Henne<br>
</body>
</html>
| |
| Emmanuel Lecharny 2006-07-31, 7:11 am |
| Jörg,
we have to merge all the modification done in optimization-trunks into
1.0-trunk. It will be done really soon now.
I will keep you inform.
If you want the latest version, just check out
branches/1.0/optimization-trunks right now.
Sorry about it 
On 7/31/06, Jörg Henne <j.henne-EfRxLUFLFsSzQB+pC5nmwQ@public.gmane.org> wrote:
>
> Hi all,
>
> sorry to bother you, but I have some problems getting the 1.0 trunk to
> work. I fear there's an embarrassingly simple answer lurking somewhere, but
> double checking the involved revisions, debugging into the code etc. hasn't
> revealed it yet.
>
> First: the symptoms: every search request causes the following CCE:
>
> Caused by: java.lang.ClassCastException:
> org.apache.directory.shared.ldap.name.LdapDN
> at
> org.apache.directory.shared.ldap.codec.search.SearchResultEntry.computeLength
> (SearchResultEntry.java:240)
> at org.apache.directory.shared.ldap.codec.LdapMessage.computeLength(
> LdapMessage.java:530)
> at org.apache.directory.shared.ldap.codec.LdapMessage.encode(
> LdapMessage.java:602)
> at org.apache.directory.shared.ldap.codec.TwixEncoder.encodeBlocking(
> TwixEncoder.java:121)
> at org.apache.directory.shared.ldap.codec.TwixEncoder.encode(
> TwixEncoder.java:200)
> at org.apache.directory.shared.ldap.message.MessageEncoder.encode(
> MessageEncoder.java:131)
> at org.apache.mina.filter.codec.asn1.Asn1CodecEncoder.encode(
> Asn1CodecEncoder.java:55)
> at org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(
> ProtocolCodecFilter.java:228)
> ... 31 more
>
> The offending LdapDN (which SearchResultEntry tries to cast to byte[]) is
> supplied from SearchHandler:282, which in turn, got it from
> ServerDirContext.search(Name, ExprNode, SearchControls).
> I suppose I've got a version incompatibility somewhere, but I can't see
> where.
>
> My build is based on directory/branches/apacheds/1.0-trunks with the
> externals specified therein.
>
> The resulting classpath for the server SAR is this:
>
> antlr-2.7.2.jar
> apacheds-core-1.0-RC4-SNAPSHOT.jar
> apacheds-core-shared-1.0-RC4-SNAPSHOT.jar
> apacheds-kerberos-shared-1.0-RC4-SNAPSHOT.jar
> apacheds-protocol-changepw-1.0-RC4-SNAPSHOT.jar
> apacheds-protocol-kerberos-1.0-RC4-SNAPSHOT.jar
> apacheds-protocol-ldap-1.0-RC4-SNAPSHOT.jar
> apacheds-protocol-ntp-1.0-RC4-SNAPSHOT.jar
> apacheds-protocol-shared-1.0-RC4-SNAPSHOT.jar
> apacheds-server-jndi-1.0-RC4-SNAPSHOT.jar
> apacheds-server-ssl-1.0-RC4-SNAPSHOT.jar
> checkstyle-2.2.jar
> commons-collections-3.0.jar
> commons-daemon-1.0.1.jar
> commons-lang-2.0.jar
> commons-logging-1.0.4.jar
> daemon-bootstrappers-1.0-RC2.jar
> jboss-jmx-4.0.2.jar
> jdbm-1.0.jar
> lcrypto-jdk14-131.jar
> mina-core-0.9.5-SNAPSHOT.jar
> mina-filter-codec-asn1-0.9.5-SNAPSHOT.jar
> mina-filter-ssl-0.9.5-SNAPSHOT.jar
> shared-asn1-0.9.5.2-SNAPSHOT.jar
> shared-ldap-0.9.5.2-SNAPSHOT.jar
> slf4j-log4j12-1.0.jar
> spring-beans-1.2.1.jar
> spring-context-1.2.1.jar
> spring-core-1.2.1.jar
> xercesImpl-2.0.2.jar
>
> Please note the switch to MINA 0.9.5-SNAPSHOT which is necessary because
> of the previously lacking broadcast support required by DHCP.
>
> Thanks
> Joerg Henne
>
--
Cordialement,
Emmanuel Lécharny
| |
| Jörg Henne 2006-08-01, 7:11 am |
| Emmanuel Lecharny schrieb:
> Jörg,
>
> we have to merge all the modification done in optimization-trunks into
> 1.0-trunk. It will be done really soon now.
>
> I will keep you inform.
>
> If you want the latest version, just check out
> branches/1.0/optimization-trunks right now.
>
Unfortunately, I ran into several problems with this branch, too:
- in LdapResult:549 a NPE is thrown due to the field matchedDN being
null. Once I added a conditional to catch this situation (which was
curing the symptoms, not the cause, of couse)
- I got exceptions like these trying to connect using JXplorer:
[11:56:25] DEBUG [org.apache.directory.shared.ldap.codec.TwixEncoder] -
Encoding this LdapMessage : LdapMessage
message Id : 5
Search Result Done
Ldap Result
Result code : (32) noSuchObject
Matched DN : '<null>'
Error message : 'failed on search operation:
SearchRequest
baseDn : ''
filter : '(2.5.4.0=*) '
scope : single level
typesOnly : false
no limit
Time Limit : no limit
Deref Aliases : deref Finding Base Obj
attributes :
:
org.apache.directory.shared.ldap.exception.LdapNameNotFoundException
at
org.apache.directory.server.core.partition.DefaultPartitionNexus.search(DefaultPartitionNexus.java:843)
at
org.apache.directory.server.core.interceptor.InterceptorChain$1.search(InterceptorChain.java:136)
at
org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.search(InterceptorChain.java:1260)
at
org.apache.directory.server.core.interceptor.BaseInterceptor.search(BaseInterceptor.java:199)
....
Joerg Henne
|
|
|
|
|