directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Henne <j.he...@levigo.de>
Subject Can't get 1.0-trunks to work
Date Mon, 31 Jul 2006 10:39:36 GMT
<!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>

Mime
View raw message