directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRSERVER-1908) Connection lost when use persistent search and move entry in ApacheDS
Date Mon, 28 Oct 2013 12:52:32 GMT

    [ https://issues.apache.org/jira/browse/DIRSERVER-1908?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13806737#comment-13806737
] 

Emmanuel Lecharny commented on DIRSERVER-1908:
----------------------------------------------

There is obviously something wrong in the server. Getting a NPE in the encoder is not normal.

Here, what we also need, beside what Kiran requires (ie the code of com.tibco.ldap.core.AdLDAPChangedEntry;
 com.tibco.ldap.core.IResult and com.tibco.ldap.core.OperationConstants classes, and all the
dependences), is the entry that is being added when the persistent search fails.

It's likely we have some weird attribute's value that cause the NPE (for instance, an attribute
with no value).

Thanks !


> Connection lost when use persistent search and move entry in ApacheDS
> ---------------------------------------------------------------------
>
>                 Key: DIRSERVER-1908
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1908
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 2.0.0-M14
>         Environment: Windows 7 Professional 32-bit, Inter Core i3-2310,4GB Memory
>            Reporter: Robert Hou
>         Attachments: TestPersistenterSearch.java
>
>
> Step:
> 1.Do persistent search with ApacheDS.
> 2.Move one entry(InetorgPerson) from one ou to another ou in ApacheDS.
> Actual Result(from Apache Console):
> [10:17:10] WARN [org.apache.directory.server.ldap.LdapProtocolHandler] - Unexpected exception
forcing session to close: sending disconnect notice to client.
> org.apache.mina.filter.codec.ProtocolEncoderException: java.lang.NullPointerException
> 	at org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:339)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:482)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1400(DefaultIoFilterChain.java:47)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterWrite(DefaultIoFilterChain.java:775)
> 	at org.apache.mina.filter.executor.ExecutorFilter.filterWrite(ExecutorFilter.java:614)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:482)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1400(DefaultIoFilterChain.java:47)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterWrite(DefaultIoFilterChain.java:775)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.filterWrite(DefaultIoFilterChain.java:705)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:482)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireFilterWrite(DefaultIoFilterChain.java:475)
> 	at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:494)
> 	at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:439)
> 	at org.apache.directory.server.ldap.handlers.PersistentSearchListener.entryMoved(PersistentSearchListener.java:194)
> 	at org.apache.directory.server.core.event.EventInterceptor$4.run(EventInterceptor.java:171)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> 	at java.lang.Thread.run(Unknown Source)
> Caused by: java.lang.NullPointerException
> 	at org.apache.directory.api.ldap.codec.decorators.SearchResultEntryDecorator.computeLength(SearchResultEntryDecorator.java:308)
> 	at org.apache.directory.api.ldap.codec.api.LdapEncoder.computeMessageLength(LdapEncoder.java:247)
> 	at org.apache.directory.api.ldap.codec.api.LdapEncoder.encodeMessage(LdapEncoder.java:159)
> 	at org.apache.directory.api.ldap.codec.protocol.mina.LdapProtocolEncoder.encode(LdapProtocolEncoder.java:71)
> 	at org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:308)
> 	... 17 more



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message