directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trustin Lee (JIRA)" <directory-...@incubator.apache.org>
Subject [jira] Created: (DIRLDAP-23) DnParser throws IOException in Java 5
Date Tue, 21 Dec 2004 06:57:19 GMT
DnParser throws IOException in Java 5
-------------------------------------

         Key: DIRLDAP-23
         URL: http://nagoya.apache.org/jira/browse/DIRLDAP-23
     Project: Directory LDAP
        Type: Bug
  Components: Common  
    Versions: 0.8.0    
 Environment: Sun Java 5 VM in client mode
    Reporter: Trustin Lee
 Assigned to: Alex Karasulu 


I tested with Kerberos single jar server.  It works fine in JDK 1.4.2, but it doesn't work
in JDK 1.5.0.  Here is the output:

C:\Documents and Settings\Trustin Lee\My Documents\workspace\kerberos\main>java
-jar target\kerberos-0.4-SNAPSHOT.jar kerberos.properties
Apache Kerberos: started in 861 milliseconds
Entry ou=Users, dc=example, dc=com from LDIF does not exist.  Creating it ...
Entry uid=akarasulu, ou=Users, dc=example,dc=com from LDIF does not exist.  Crea
ting it ...
Entry uid=erodriguez, ou=Users, dc=example,dc=com from LDIF does not exist.  Cre
ating it ...
org.apache.ldap.common.exception.LdapNamingException: Parser failure on name:
        dc=example,dc=com
Antlr exception trace:
java.io.IOException: Read end dead
        at java.io.PipedInputStream.checkStateForReceive(PipedInputStream.java:1
92)
        at java.io.PipedInputStream.receive(PipedInputStream.java:156)
        at java.io.PipedOutputStream.write(PipedOutputStream.java:129)
        at java.io.OutputStream.write(OutputStream.java:58)
        at org.apache.ldap.common.name.DnParser.parse(DnParser.java:166)
        at org.apache.ldap.common.name.LdapName.<init>(LdapName.java:284)
        at org.apache.eve.jndi.EveContext.<init>(EveContext.java:102)
        at org.apache.eve.jndi.EveDirContext.<init>(EveDirContext.java:72)
        at org.apache.eve.jndi.EveLdapContext.<init>(EveLdapContext.java:58)
        at org.apache.eve.jndi.EveJndiProvider.getLdapContext(EveJndiProvider.ja
va:125)
        at org.apache.eve.jndi.EveContextFactory.getInitialContext(EveContextFac
tory.java:190)
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
67)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247
)
        at javax.naming.InitialContext.init(InitialContext.java:223)
        at javax.naming.InitialContext.<init>(InitialContext.java:197)
        at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.jav
a:82)
        at org.apache.kerberos.KerberosMain.main(KerberosMain.java:143)

        at org.apache.ldap.common.name.DnParser.parse(DnParser.java:195)
        at org.apache.ldap.common.name.LdapName.<init>(LdapName.java:284)
        at org.apache.eve.jndi.EveContext.<init>(EveContext.java:102)
        at org.apache.eve.jndi.EveDirContext.<init>(EveDirContext.java:72)
        at org.apache.eve.jndi.EveLdapContext.<init>(EveLdapContext.java:58)
        at org.apache.eve.jndi.EveJndiProvider.getLdapContext(EveJndiProvider.ja
va:125)
        at org.apache.eve.jndi.EveContextFactory.getInitialContext(EveContextFac
tory.java:190)
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
67)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247
)
        at javax.naming.InitialContext.init(InitialContext.java:223)
        at javax.naming.InitialContext.<init>(InitialContext.java:197)
        at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.jav
a:82)
        at org.apache.kerberos.KerberosMain.main(KerberosMain.java:143)
Exception in thread "main" java.lang.IllegalArgumentException: first argument wa
s not a distinguished name
        at org.apache.ldap.common.schema.DnComparator.compare(DnComparator.java:
97)
        at org.apache.eve.schema.SerializableComparator.compare(SerializableComp
arator.java:92)
        at jdbm.btree.BPage.compare(BPage.java:841)
        at jdbm.btree.BPage.findChildren(BPage.java:682)
        at jdbm.btree.BPage.find(BPage.java:269)
        at jdbm.btree.BTree.find(BTree.java:406)
        at org.apache.eve.db.jdbm.JdbmTable.getRaw(JdbmTable.java:1102)
        at org.apache.eve.db.jdbm.JdbmTable.get(JdbmTable.java:283)
        at org.apache.eve.db.jdbm.JdbmIndex.forwardLookup(JdbmIndex.java:216)
        at org.apache.eve.db.jdbm.JdbmDatabase.getEntryId(JdbmDatabase.java:418)

        at org.apache.eve.AbstractContextPartition.lookup(AbstractContextPartiti
on.java:315)
        at org.apache.eve.RootNexus.lookup(RootNexus.java:350)
        at org.apache.eve.jndi.AuthenticationService.doAuthSimple(Authentication
Service.java:172)
        at org.apache.eve.jndi.AuthenticationService.invoke(AuthenticationServic
e.java:99)
        at org.apache.eve.jndi.FailFastPipeline.invoke(FailFastPipeline.java:62)

        at org.apache.eve.jndi.EveJndiProvider.invoke(EveJndiProvider.java:180)
        at $Proxy0.hasEntry(Unknown Source)
        at org.apache.eve.jndi.EveContext.<init>(EveContext.java:103)
        at org.apache.eve.jndi.EveDirContext.<init>(EveDirContext.java:72)
        at org.apache.eve.jndi.EveLdapContext.<init>(EveLdapContext.java:58)
        at org.apache.eve.jndi.EveJndiProvider.getLdapContext(EveJndiProvider.ja
va:125)
        at org.apache.eve.jndi.EveContextFactory.getInitialContext(EveContextFac
tory.java:190)
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
67)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247
)
        at javax.naming.InitialContext.init(InitialContext.java:223)
        at javax.naming.InitialContext.<init>(InitialContext.java:197)
        at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.jav
a:82)
        at org.apache.kerberos.KerberosMain.main(KerberosMain.java:143)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message