Hello Emmanuel,

I ended up using Ldiff Entry and it works like a charm! Now the issue is with a jabber server I have connecting to ApacheDS. I am getting a lot of this in the logs

10:04:12,027 WARN [SearchingOperationContext] Requested attribute dn does not exist in the schema, it will be ignored

In response to this request from the Jabber server

2009-02-23 10:04:12,074 DEBUG [org.apache.directory.shared.ldap.codec.TwixDecoder] Decoded LdapMessage : LdapMessage
   message Id : 13
   Search Request
       Base Object : ''
       Scope : base object
       Deref Aliases : never Deref Aliases
       Size Limit : no limit
       Time Limit : no limit
       Types Only : true
       Filter : '(objectclass=*)'
       Attributes : dn

I googled around for this but could not find a satisfactory answer, anyone have any ideas?

Thank you,
Yiannis

Emmanuel Lecharny wrote:
On Fri, Feb 20, 2009 at 5:04 PM, Yiannis Mavroukakis
<[email protected]> wrote:
Hello Emmanuel,

I tried the procedure you described (getEntry() ) but read/writeExternal are
both setup to throw exceptions, and the messaging layer
I am using is using those methods to marshall and unmarshall the objects. I
did see that DefaultServerEntry has serialize/deserialize methods
but because it's final, I cannot subclass it, and call these methods from
within my subclass' read/writeExternal....

You have the ServerEntrySerializer class, which is way better as it
serializes/deserializes the Entry the best possible way, using an
internal serialization, instead of the default Java serialization.

Give it a try.

( you can check the ServerEntrySerializerTest for an exemple on how to use it).

Reply via email to