• Post Reply Bookmark Topic Watch Topic
  • New Topic

openLDAP deserializeObject hell  RSS feed

Rowan Chattaway
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I�ve installed openldap-2.3.7.tgz on a separate Unix box and I�m attempting to interrogate it from my windows development machine.

Although I can successfully bind objects to the tree, I cannot read them back. Using an ldapsearch command I can see that my objects had been successfully bound.

However, when attempting to read them out using:

Object obj = jndiTest.lookup("cn=myRandomInt");

I got the following error:

javax.naming.NamingException [Root exception is java.io.EOFException]; remaining name 'cn=myRandomInt'

at com.sun.jndi.ldap.Obj.deserializeObject(Obj.java:520)

at com.sun.jndi.ldap.Obj.decodeObject(Obj.java:217)

at com.sun.jndi.ldap.LdapCtx.c_lookup(LdapCtx.java:1016)

at com.sun.jndi.toolkit.ctx.ComponentContext.p_lookup(ComponentContext.java:526)

at com.sun.jndi.toolkit.ctx.PartialCompositeContext.lookup(PartialCompositeContext.java:155)

at com.sun.jndi.toolkit.ctx.PartialCompositeContext.lookup(PartialCompositeContext.java:144)

at imagenet.scratchPads.Rowan.testLDAP(Rowan.java:573)

at imagenet.scratchPads.Rowan.main(Rowan.java:467)

Caused by: java.io.EOFException

at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2165)

at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2631)

at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:734)

at java.io.ObjectInputStream.<init>(ObjectInputStream.java:253)

at com.sun.jndi.ldap.Obj$LoaderInputStream.<init>(Obj.java:592)

at com.sun.jndi.ldap.Obj.deserializeObject(Obj.java:506)

... 7 more

Disconnected from the target VM at '' using socket transport.

Anyone got any ideas about this?

It seems that it finds the object, but when attempting to de-serialise it, it goes nuts.

Any help would be much appreciated,

Many thanks,

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!