You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Trustin Lee <tr...@gmail.com> on 2007/08/07 04:50:52 UTC

Re: java.lang.NullPointerException: selector.wakeup();

On 8/7/07, Messi Chan <ch...@gmail.com> wrote:
>
> Hi, all
> I have a server A, which could receive client's request, then connect to
> other server B to fetch informations and return back to the client.
> This problem happened when I tested serverA's performance. I simulated 300
> concurrent client sent requests  constantly, and let server B return 200k
> message to server A, then server A sent it back to client.
> When server B return 100k, everything is ok. But, when server B return 200k,
> I met the problem:
>
> Caused by: java.lang.NullPointerException
>  at
> org.apache.mina.transport.socket.nio.SocketConnector.connect(SocketConnector.java:203)
>  at
> org.apache.mina.transport.socket.nio.SocketConnector.connect(SocketConnector.java:132)
>  at com.ce.common.client.SocketClient.send(Unknown Source)
>  at
> com.ce.communicator.service.impl.TransmitServiceImpl.transmitFromCommunicator2Cinema(Unknown
> Source)
>  at
> com.ce.communicator.handler.CommunicatorMessageConsumer.transmit2Cinema(Unknown
> Source)
>  ... 6 more
>
> BTW, I use Mina1.1.1
> I don't know if this issue is consequent on
> http://issues.apache.org/jira/browse/DIRMINA-416
> http://issues.apache.org/jira/browse/DIRMINA-416
> . This problem has troubled me a long time, anyone could help me?

It should be fixed in the next release.  I have checked in the fix.
Thanks for reporting the problem!

Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Re: java.lang.NullPointerException: selector.wakeup();

Posted by Trustin Lee <tr...@gmail.com>.
On 8/7/07, Messi Chan <ch...@gmail.com> wrote:
>
> Hi, Trustin
> thx for your reply.
> Is Mina1.1.2 already resolved this issue? How could I get Mina1.1.2?
>
> thx a lot! :)

It's not released yet.  You can build the latest snapshot by yourself
meanwhile.  If you can wait a few days, then please wait for the
release announcement.

Otherwise, please refer to our developer guide to find out how to
check out the latest MINA source code and build the snapshot by
yourself:

http://mina.apache.org/developer-guide.html

HTH,
Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Re: java.lang.NullPointerException: selector.wakeup();

Posted by Messi Chan <ch...@gmail.com>.
Hi, Trustin 
thx for your reply.
Is Mina1.1.2 already resolved this issue? How could I get Mina1.1.2?

thx a lot! :)
-- 
View this message in context: http://www.nabble.com/java.lang.NullPointerException%3A--selector.wakeup%28%29--tf4227434s16868.html#a12027713
Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.