Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-1908

Connection lost when use persistent search and move entry in ApacheDS

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0-M14
    • Fix Version/s: None
    • Component/s: ldap, persistentSearch
    • Labels:
      None
    • Environment:
      Windows 7 Professional 32-bit, Inter Core i3-2310,4GB Memory

      Description

      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

        Attachments

        1. TestPersistenterSearch.java
          4 kB
          Robert Hou
        2. NetscapeLdapSdk.jar
          1.18 MB
          Robert Hou

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hxbon1y Robert Hou
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: