ahww520 / xmemcached

Automatically exported from code.google.com/p/xmemcached
Apache License 2.0
0 stars 0 forks source link

XMemcached network layout exception (SEVERE: java.lang.NullPointerException) #149

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Occurs when i redeploy the web application on glassfish 3.1.1 server.

What is the expected output? What do you see instead?

SEVERE: 421833 [Xmemcached-Reactor-3] null 
net.rubyeye.xmemcached.impl.MemcachedHandler - XMemcached network layout 
exception

SEVERE: java.lang.NullPointerException
    at com.google.code.yanf4j.buffer.IoBuffer.wrap(IoBuffer.java:242)
    at net.rubyeye.xmemcached.command.text.TextVersionCommand.encode(TextVersionCommand.java:79)
    at net.rubyeye.xmemcached.impl.MemcachedTCPSession.wrapMessage(MemcachedTCPSession.java:173)
    at com.google.code.yanf4j.core.impl.AbstractSession.write(AbstractSession.java:381)
    at net.rubyeye.xmemcached.impl.MemcachedHandler.onSessionIdle(MemcachedHandler.java:168)
    at com.google.code.yanf4j.core.impl.AbstractSession.onIdle(AbstractSession.java:193)
    at com.google.code.yanf4j.nio.impl.AbstractNioSession.onEvent(AbstractNioSession.java:352)
    at com.google.code.yanf4j.nio.impl.Reactor.checkIdle(Reactor.java:473)
    at com.google.code.yanf4j.nio.impl.Reactor.checkExpiredIdle(Reactor.java:464)
    at com.google.code.yanf4j.nio.impl.Reactor.checkSessionTimeout(Reactor.java:364)
    at com.google.code.yanf4j.nio.impl.Reactor.run(Reactor.java:121)

What version of the product are you using? On what operating system?
I'm running the application on Fedora 15, memcached 1.4.2 and JDK1.6.26.

Please provide any additional information below.

Original issue reported on code.google.com by vinicius...@gmail.com on 2 Sep 2011 at 11:48

GoogleCodeExporter commented 8 years ago
It 's very strange,did you configure IoBufferAllocator?

Original comment by killme2...@gmail.com on 5 Sep 2011 at 1:10

GoogleCodeExporter commented 8 years ago
Follow my startup:

XMemcachedClientBuilder builder = new 
XMemcachedClientBuilder(AddrUtil.getAddresses(url));
builder.setConnectionPoolSize(5);
MemcachedClient memcached = builder.build();

This is the only configuration i do...

Original comment by vinicius...@gmail.com on 6 Sep 2011 at 1:37

GoogleCodeExporter commented 8 years ago
I am sorry,i don't know how glasshfish use classloader to load classes,it seems 
that glasshfish didn't load IoBufferAllocator when redeploy the application.

Original comment by killme2...@gmail.com on 19 Sep 2011 at 3:16

GoogleCodeExporter commented 8 years ago
I solved my problem invoking the method shutdown when the glassfish redeploy.

Original comment by vinicius...@gmail.com on 22 Sep 2011 at 1:00

GoogleCodeExporter commented 8 years ago
Thanks,i closed this issue.

Original comment by killme2...@gmail.com on 26 Mar 2012 at 10:34