• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

openLDAP deserializeObject hell

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 '127.0.0.1:4478' 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,

Rowan.
 
How do they get the deer to cross at the signs? Or to read this tiny ad?
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic