directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Karasulu (JIRA)" <directory-...@incubator.apache.org>
Subject [jira] Commented: (DIRLDAP-23) DnParser throws IOException in Java 5
Date Sun, 28 Aug 2005 17:07:05 GMT
    [ http://issues.apache.org/jira/browse/DIRLDAP-23?page=comments#action_12320359 ] 

Alex Karasulu commented on DIRLDAP-23:
--------------------------------------

Ersin feel free to modify the piped implementation to use the better technique you have discovered.
 I will gladly accept the patch.  Thanks,

> DnParser throws IOException in Java 5
> -------------------------------------
>
>          Key: DIRLDAP-23
>          URL: http://issues.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
>     Assignee: Trustin Lee
>      Fix For: 0.9.2
>  Attachments: random search bug.txt
>
> 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://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message