Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

openLDAP deserializeObject hell

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]; remaining name 'cn=myRandomInt'

at com.sun.jndi.ldap.Obj.deserializeObject(

at com.sun.jndi.ldap.Obj.decodeObject(

at com.sun.jndi.ldap.LdapCtx.c_lookup(

at com.sun.jndi.toolkit.ctx.ComponentContext.p_lookup(

at com.sun.jndi.toolkit.ctx.PartialCompositeContext.lookup(

at com.sun.jndi.toolkit.ctx.PartialCompositeContext.lookup(

at imagenet.scratchPads.Rowan.testLDAP(

at imagenet.scratchPads.Rowan.main(

Caused by:





at com.sun.jndi.ldap.Obj$LoaderInputStream.<init>(

at com.sun.jndi.ldap.Obj.deserializeObject(

... 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