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)
I couldn't replicate this even with 1000 iterations (maybe I don't have enough cores?)
But I put the set of the connection manager array in a sync block anyway.