We're updating the issue view to help you get more done. 

NPE in MINAStatCollector

Description

This appears to be a race condition where the removeSession() method gets invoked before the addSession() is completed.

Environment

None

Acceptance Test - Entry

None

Activity

Show:
Tom Evans
February 4, 2015, 9:43 PM

2015.02.04 09:57:59 org.apache.mina.util.DefaultExceptionMonitor - Unexpected exception.
java.lang.NullPointerException
at org.apache.mina.management.MINAStatCollector.removeSession(MINAStatCollector.ja va:212)
at org.apache.mina.management.MINAStatCollector.access$100(MINAStatCollector.java: 39)
at org.apache.mina.management.MINAStatCollector$1.sessionDestroyed(MINAStatCollect or.java:76)
at org.apache.mina.core.service.IoServiceListenerSupport.fireSessionDestroyed(IoSe rviceListenerSupport.java:250)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.removeNow(AbstractPolli ngIoProcessor.java:604)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.removeSessions(Abstract PollingIoProcessor.java:564)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$12(AbstractPolli ngIoProcessor.java:554)
at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractP ollingIoProcessor.java:1129)
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)

Tom Evans
February 4, 2015, 9:58 PM

PR #173

Assignee

Tom Evans

Reporter

Tom Evans

Labels

None

Expected Effort

None

Ignite Forum URL

None

Fix versions

Affects versions

Priority

Trivial
Configure