DPS 6.3.1.1 fails with err=1 and java.lang.NullPointerException sun.nio.ch.Util.free(Util.java:199) (Doc ID 1360187.1)

Last updated on OCTOBER 11, 2016

Applies to:

Oracle Directory Server Enterprise Edition - Version 6.0 to 11.1.1.5.0 [Release 6.0 to 11gR1]
Information in this document applies to any platform.
***Checked for relevance on 25-Jun-2013***

Symptoms

This issue can occur on any version of DPS 6.x and above.

The following stack trace is observed in the DPS error log

[19/Jul/2011:07:35:59 -0400] - EXCEPTION - INFO - Server Error
Exception thrown from thread Worker Thread 33
java.lang.NullPointerException
sun.nio.ch.Util.free(Util.java:199)
sun.nio.ch.Util.offerFirstTemporaryDirectBuffer(Util.java:176)
sun.nio.ch.IOUtil.write(IOUtil.java:50)
sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
java.nio.channels.Channels.writeFullyImpl(Channels.java:59)
java.nio.channels.Channels.writeFully(Channels.java:81)
java.nio.channels.Channels.access$000(Channels.java:47)
java.nio.channels.Channels$1.write(Channels.java:155)
com.sun.directory.proxy.asn1.ASN1Writer.writeElement(ASN1Writer.java:152)
com.sun.directory.proxy.server.MultiplexedOpConnectionV2.sendRequest(MultiplexedOpConnectionV2.java:171)
com.sun.directory.proxy.server.LDAPServer.processSilentBind(LDAPServer.java:3945)
com.sun.directory.proxy.server.LDAPServer.getConnection(LDAPServer.java:2057)
com.sun.directory.proxy.server.LDAPServer.getReadConnection(LDAPServer.java:1887)
com.sun.directory.proxy.server.BackendServer.getReadConnection(BackendServer.java:211)
com.sun.directory.proxy.extensions.ProportionalLoadBalancingAlgorithm.getSearchConnection(ProportionalLoadBalancingAlgorithm.java:2132)
com.sun.directory.proxy.server.BackendSet.getSearchConnection(BackendSet.java:836)
com.sun.directory.proxy.server.LDAPDataView.getSearchContext(LDAPDataView.java:208)
com.sun.directory.proxy.server.LDAPDataView.getSearchContext(LDAPDataView.java:123)
com.sun.directory.proxy.server.SearchOperation.processOperation(SearchOperation.java:973)
com.sun.directory.proxy.server.WorkerThread.runThread(WorkerThread.java:159)
com.sun.directory.proxy.util.DistributionThread.run(DistributionThread.java:225)

In addition there were frequent reports of err=1 in the DPS access log file.

[19/Jul/2011:07:35:41 -0400] - PROFILE - INFO - conn=2219922 assigned to connection handler cn=default connection handler, cn=connection handlers, cn=config
[19/Jul/2011:07:35:41 -0400] - CONNECT - INFO - conn=2219922 client=XXX.XXX.XXX.XXX:29828 server=dseep1:636 protocol=LDAPS
[19/Jul/2011:07:35:41 -0400] - OPERATION - INFO - conn=2219922 op=0 BIND dn="cn=fl user,ou=directory,ou=infrastructure,ou=systems,dc=example,dc=com" method="SIMPLE" version=3
[19/Jul/2011:07:35:41 -0400] - SERVER_OP - INFO - conn=2219922 op=0 BIND dn="cn=FL User,ou=Directory,ou=Infrastructure,ou=Systems,dc=example,dc=com" method="SIMPLE" version=3 s_msgid=7 s_conn=dsm01:54757
[19/Jul/2011:07:35:41 -0400] - OPERATION - INFO - conn=2219922 op=0 BIND RESPONSE err=1 msg="Server Error." s_conn=dsm1:54757 server=dsm1 Replaying bind operation to s_conn=dsm2:54499 server=dsm2:389/
[19/Jul/2011:07:35:41 -0400] - SERVER_OP - INFO - conn=2219922 op=0 BIND dn="cn=FL User,ou=Directory,ou=Infrastructure,ou=Systems,dc=example,dc=com" method="SIMPLE" version=3 s_msgid=5 s_conn=dsm2:54499
[19/Jul/2011:07:35:41 -0400] - OPERATION - INFO - conn=2219922 op=0 BIND RESPONSE err=1 msg="Server Error." s_conn=dsm2:54499 server=dsm2 Replaying bind operation to s_conn=dsm1:54788 server=dsm1:389/
[19/Jul/2011:07:35:41 -0400] - SERVER_OP - INFO - conn=2219922 op=0 BIND dn="cn=FL User,ou=Directory,ou=Infrastructure,ou=Systems,dc=example,dc=com" method="SIMPLE" version=3 s_msgid=12 s_conn=dsm1:54788
[19/Jul/2011:07:35:41 -0400] - OPERATION - INFO - conn=2219922 op=0 BIND RESPONSE err=1 msg="Server Error." s_conn=dsm1:54788 server=dsm01 Replaying bind operation to s_conn=dsm2:54741 server=dsm2:389/
[19/Jul/2011:07:35:41 -0400] - DISCONNECT - INFO - conn=2219922 reason="other"
[19/Jul/2011:07:35:41 -0400] - OPERATION - INFO - conn=2219922 op=0 BIND RESPONSE err=1 msg="Server Error." etime=0


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms