Memcached IO throwing NullPointerException

461 views
Skip to first unread message

J Higgins

unread,
Mar 28, 2013, 11:20:08 AM3/28/13
to spymem...@googlegroups.com
Hi,

I have a web application using version 2.1.7 of Spymemcached client.

Today while testing, I noticed the following in my application log:

Exception in thread "Memcached IO over {MemcachedConnection to /:11211 /:11211}" java.lang.NullPointerException
	at net.spy.memcached.MemcachedClient$8.receivedStatus(MemcachedClient.java:1317)
	at net.spy.memcached.ops.MultiOperationCallback.complete(MultiOperationCallback.java:32)
	at net.spy.memcached.protocol.BaseOperationImpl.transitionState(BaseOperationImpl.java:115)
	at net.spy.memcached.protocol.BaseOperationImpl.isTimedOut(BaseOperationImpl.java:176)
	at net.spy.memcached.protocol.TCPMemcachedNodeImpl.fillWriteBuffer(TCPMemcachedNodeImpl.java:166)
	at net.spy.memcached.MemcachedConnection.handleWrites(MemcachedConnection.java:459)
	at net.spy.memcached.MemcachedConnection.handleInputQueue(MemcachedConnection.java:348)
	at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:238)
	at net.spy.memcached.MemcachedClient.run(MemcachedClient.java:2030)

Once this happens my application is unresponsive to further requests.

I've updated the client version to 2.8.4 and I'm not seeing this issue anymore. 

Does anyone know what might be causing the above NPE ? The application was under load at the time of the NPE. 

Thanks,
J. 

Matt Ingenthron

unread,
Mar 29, 2013, 10:00:37 PM3/29/13
to spymem...@googlegroups.com
It's a bit hard without going back to look at that very old code (something not super hard to do, but...)

Just a general description though is that it was going to set the status on a multi-operation, something that happens in the case of optimization.  This area of code has changed a bit since then, but it also has recently been disabled (by default) because there were some areas where it would end up like this or worse when there was a dropped connection during such an op.

Hope that helps some... if you need specifics I'd recommend cloning the git repo and then doing a "git reset --hard 2.1.7" to see what is happening at MemcachedClient.java:1317.


--
You received this message because you are subscribed to the Google Groups "spymemcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spymemcached...@googlegroups.com.
To post to this group, send email to spymem...@googlegroups.com.
Visit this group at http://groups.google.com/group/spymemcached?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages