You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Alex Karasulu <ao...@bellsouth.net> on 2005/11/04 20:48:53 UTC

[ApacheDS] [MINA] Switch to 0.9.0-SNAPSHOT in trunks causes server to hang

Got a serious problem here.  The server hangs now that we upgraded the 
LDAP protocol provider to 0.9.0-SNAPSHOT in the network trunk. 

Any ideas?  All unit tests that go through the LDAP wire protocol hang 
now.  These tests are in server-unit.  I'll keep debugging.

Alex


Re: [ApacheDS] [MINA] Switch to 0.9.0-SNAPSHOT in trunks causes server to hang

Posted by Trustin Lee <tr...@gmail.com>.
I'm sorry. I made a serious mistake here. Now I fixed it.

Trustin

2005/11/5, Alex Karasulu <ao...@bellsouth.net>:
>
> Alex Karasulu wrote:
>
> > Got a serious problem here. The server hangs now that we upgraded the
> > LDAP protocol provider to 0.9.0-SNAPSHOT in the network trunk.
> > Any ideas? All unit tests that go through the LDAP wire protocol hang
> > now. These tests are in server-unit. I'll keep debugging.
>
> More info:
>
> Looks like the DemuxingIoHandler is sending a ByteBuffer to the
> LdapIoHandler in the LDAP protocol provider. Perhaps the decoders are
> getting bypassed. The result is an UnknownMessageTypeException when the
> Demux handler cannot find a handler for the ByteBuffer. Below is a
> stack trace showing this:
>
> org.apache.mina.handler.UnknownMessageTypeException: No message handler
> found for message: java.nio.DirectByteBuffer[pos=0 lim=39 cap=64] (30 25
> 02 01 01 60 20 02 01 03 04 13 75 69 64 3D 61 64 6D 69 6E 2C 6F 75 3D 73 79
> 73 74 65 6D 80 06 73 65 63 72 65 74)
> at org.apache.mina.handler.DemuxingIoHandler.messageReceived(
> DemuxingIoHandler.java:99)
> at org.apache.mina.common.support.AbstractIoFilterChain$2.messageReceived(
> AbstractIoFilterChain.java:208)
> at
> org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived
> (AbstractIoFilterChain.java:516)
> at org.apache.mina.common.support.AbstractIoFilterChain.access$1200(
> AbstractIoFilterChain.java:52)
> at
> org.apache.mina.common.support.AbstractIoFilterChain$Entry$1.messageReceived
> (AbstractIoFilterChain.java:709)
> at org.apache.mina.common.support.AbstractIoFilterChain$1.messageReceived(
> AbstractIoFilterChain.java:122)
> at
> org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived
> (AbstractIoFilterChain.java:516)
> at org.apache.mina.common.support.AbstractIoFilterChain.messageReceived(
> AbstractIoFilterChain.java:507)
> at
> org.apache.mina.common.support.IoSessionManagerFilterChain$1.messageReceived
> (IoSessionManagerFilterChain.java:92)
> at
> org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived
> (AbstractIoFilterChain.java:516)
> at org.apache.mina.common.support.AbstractIoFilterChain.access$1200(
> AbstractIoFilterChain.java:52)
> at
> org.apache.mina.common.support.AbstractIoFilterChain$Entry$1.messageReceived
> (AbstractIoFilterChain.java:709)
> at org.apache.mina.filter.ThreadPoolFilter.processEvent(
> ThreadPoolFilter.java:617)
> at org.apache.mina.filter.ThreadPoolFilter$Worker.processEvents(
> ThreadPoolFilter.java:369)
> at org.apache.mina.filter.ThreadPoolFilter$Worker.run(
> ThreadPoolFilter.java:319)
> ^C^C[15:09:28] INFO [org.apache.ldap.server.jndi.ServerContextFactory] -
> Unbind of LDAP Service complete: (SOCKET, ldap, 0.0.0.0/0.0.0.0:10389<http://0.0.0.0/0.0.0.0:10389>
> )
>
> Alex
>



--
what we call human nature is actually human habit
--
http://gleamynode.net/

Re: [ApacheDS] [MINA] Switch to 0.9.0-SNAPSHOT in trunks causes server to hang

Posted by Alex Karasulu <ao...@bellsouth.net>.
Alex Karasulu wrote:

> Got a serious problem here.  The server hangs now that we upgraded the 
> LDAP protocol provider to 0.9.0-SNAPSHOT in the network trunk.
> Any ideas?  All unit tests that go through the LDAP wire protocol hang 
> now.  These tests are in server-unit.  I'll keep debugging.

More info:

Looks like the DemuxingIoHandler is sending a ByteBuffer to the 
LdapIoHandler in the LDAP protocol provider.   Perhaps the decoders are 
getting bypassed.  The result is an UnknownMessageTypeException when the 
Demux handler cannot find a handler for the ByteBuffer.  Below is a 
stack trace showing this:

org.apache.mina.handler.UnknownMessageTypeException: No message handler found for message: java.nio.DirectByteBuffer[pos=0 lim=39 cap=64] (30 25 02 01 01 60 20 02 01 03 04 13 75 69 64 3D 61 64 6D 69 6E 2C 6F 75 3D 73 79 73 74 65 6D 80 06 73 65 63 72 65 74)
        at org.apache.mina.handler.DemuxingIoHandler.messageReceived(DemuxingIoHandler.java:99)
        at org.apache.mina.common.support.AbstractIoFilterChain$2.messageReceived(AbstractIoFilterChain.java:208)
        at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:516)
        at org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:52)
        at org.apache.mina.common.support.AbstractIoFilterChain$Entry$1.messageReceived(AbstractIoFilterChain.java:709)
        at org.apache.mina.common.support.AbstractIoFilterChain$1.messageReceived(AbstractIoFilterChain.java:122)
        at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:516)
        at org.apache.mina.common.support.AbstractIoFilterChain.messageReceived(AbstractIoFilterChain.java:507)
        at org.apache.mina.common.support.IoSessionManagerFilterChain$1.messageReceived(IoSessionManagerFilterChain.java:92)
        at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:516)
        at org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:52)
        at org.apache.mina.common.support.AbstractIoFilterChain$Entry$1.messageReceived(AbstractIoFilterChain.java:709)
        at org.apache.mina.filter.ThreadPoolFilter.processEvent(ThreadPoolFilter.java:617)
        at org.apache.mina.filter.ThreadPoolFilter$Worker.processEvents(ThreadPoolFilter.java:369)
        at org.apache.mina.filter.ThreadPoolFilter$Worker.run(ThreadPoolFilter.java:319)
^C^C[15:09:28] INFO [org.apache.ldap.server.jndi.ServerContextFactory] - Unbind of LDAP Service complete: (SOCKET, ldap, 0.0.0.0/0.0.0.0:10389)

Alex