[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - ClientSessionFactoryImpl eventually NPE under multi-thread l
clebert.suconic@jboss.com
do-not-reply at jboss.com
Wed May 6 18:10:23 EDT 2009
just saw this failure:
http://hudson.qa.jboss.com/hudson/job/JBM2-stress/lastBuild/testReport/org.jboss.messaging.tests.stress.remote/PingStressTest/testMultiThreadOpenAndCloses/
| java.lang.Exception: Test Failed
| at org.jboss.messaging.tests.stress.remote.PingStressTest.internalTest(PingStressTest.java:227)
| at org.jboss.messaging.tests.stress.remote.PingStressTest.testMultiThreadOpenAndCloses(PingStressTest.java:101)
| Caused by: java.lang.NullPointerException
| at org.jboss.messaging.core.client.impl.ClientSessionFactoryImpl.createSessionInternal(ClientSessionFactoryImpl.java:915)
| at org.jboss.messaging.core.client.impl.ClientSessionFactoryImpl.createSession(ClientSessionFactoryImpl.java:715)
| at org.jboss.messaging.tests.stress.remote.PingStressTest$1LocalThread.run(PingStressTest.java:184)
|
connectionManagerArray is set outside of the synchornized block, while it's (ClientSessionFactoryImpl.java:915) is inside a synchronized block.
I've tried to write a multi-thread test. and I didn't have any success. I will spend more time on it tomorrow.
Maybe connectionManagerArray and readOnly attributes should be volatile?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4229204#4229204
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4229204
More information about the jboss-dev-forums
mailing list