Hi Emmanuel, thanks for the quick reply! The only binary objects I know of in our schema are user password attributes. I'll have a look how they get in and wether they might be inserted as null values. However, a fix that would prevent the NPE from happening would be just great.
Best Regards, Ulrich > -----Original Message----- > From: Emmanuel Lecharny [mailto:[EMAIL PROTECTED] > Sent: Mittwoch, 20. August 2008 13:05 > To: [email protected] > Subject: Re: NPE during directory search > > Ulrich Knecht wrote: > > Hi, > > > > we frequently encounter interrupted LDAP searches with our ApacheDS > > 1.5.3 instance under Windows XP. When looking at the wrapper.log, we > > find NullPointerException like shown below (in > > SearchResultEntry.computeLength). > > All further queries to the server then encounter the same error. > > > > Did anyone encounter a similar error before? Any help greatly > > appreciated! > > > Seems that you have entries with some binary value which is null... : > > ... > byte[] binaryValue = ( byte[] ) value; > localValuesLength += 1 + TLV.getNbBytes( > binaryValue.length ) > + binaryValue.length; ... > > If the value is null, you'll get a NPE, straight. > > I gonna fix that. Now, the question is how you successfully injected entries > with a null value, and how the server has > accepted them. I will try to > reproduce the error. > > Thanks for the report ! > > -- > -- > cordialement, regards, > Emmanuel Lécharny > www.iktek.com > directory.apache.org
