NPE when removing an entry from a Hazelcast Map

45 views
Skip to first unread message

sselvia

unread,
Feb 4, 2013, 3:33:08 PM2/4/13
to haze...@googlegroups.com
I am converting from 1.9.4.3 to 2.5, I have two nodes, one node implements a member listener to remove entries keyed by the member id when one of the childeren nodes is removed either by a normal system exist or simply killing the process.  The code to remove the entry is getting the stacktrace below, when performing the remove method on a map.  I've tried evicting as well as tryremove with a 30 second timeout with the same results.  This same code works perfectly with 1.9.4.3, now that I've implemented 2.5 I'm getting the same results.  I suspect that I would get the same results with any of the recent 2.x versions.
 
 
Feb 4, 2013 1:20:07 PM com.hazelcast.cluster.ClusterService
SEVERE: [192.168.0.181]:5701 [sselvia-960a] error processing messages  processable=MRemove{[681] enqueueCount=1, Request{name='c:NetEffect.MemberID.Engine',CONCURRENT_MAP_REMOVE, redoCount='0', callId='681', timeout='30000', target='Address[192.168.0.181]:5701', lockThreadId='17', lockAddress='Address[192.168.0.181]:5701', local='true'}, target=Address[192.168.0.181]:5701}
java.lang.NullPointerException
 at com.hazelcast.query.MapIndexService.remove(MapIndexService.java:48)
 at com.hazelcast.query.MapIndexService.index(MapIndexService.java:64)
 at com.hazelcast.impl.CMap.updateIndexes(CMap.java:1734)
 at com.hazelcast.impl.CMap.markAsEvicted(CMap.java:1724)
 at com.hazelcast.impl.CMap.markAsRemoved(CMap.java:1705)
 at com.hazelcast.impl.CMap.remove(CMap.java:1624)
 at com.hazelcast.impl.ConcurrentMapManager$RemoveOperationHandler.doOperation(ConcurrentMapManager.java:2647)
 at com.hazelcast.impl.ConcurrentMapManager$RemoveOperationHandler.storeProceed(ConcurrentMapManager.java:2723)
 at com.hazelcast.impl.ConcurrentMapManager$RemoveOperationHandler.handle(ConcurrentMapManager.java:2672)
 at com.hazelcast.impl.BaseManager$TargetAwareOp.doLocalOp(BaseManager.java:928)
 at com.hazelcast.impl.BaseManager$TargetAwareOp.process(BaseManager.java:877)
 at com.hazelcast.impl.ConcurrentMapManager$MBackupAwareOp.process(ConcurrentMapManager.java:2218)
 at com.hazelcast.cluster.ClusterService.processProcessable(ClusterService.java:180)
 at com.hazelcast.cluster.ClusterService.dequeueProcessables(ClusterService.java:245)
 at com.hazelcast.cluster.ClusterService.run(ClusterService.java:191)
 at java.lang.Thread.run(Thread.java:662)
 
Reply all
Reply to author
Forward
0 new messages