Howdy,
I've been using JUnitPerf for a while with no problem on containerless tests. I just started
to try and use it with remote tests to my beans running in JBoss. However, I get an
java.lang.IllegalThreadStateException any time I combine a LoadTest with a JNDI lookup.
I have not found anything on the web regarding this problem, so I'm wondering if anyone has seen it.
Here is the stack:
Exception in thread "main" java.lang.IllegalThreadStateException
at java.lang.ThreadGroup.add(Unknown Source)
at java.lang.Thread.start(Unknown Source)
at java.lang.Shutdown.runHooks(Unknown Source)
at java.lang.Shutdown.sequence(Unknown Source)
at java.lang.Shutdown.exit(Unknown Source)
at java.lang.Runtime.exit(Unknown Source)
at java.lang.System.exit(Unknown Source)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:201)
It looks like java.util.logging.LogManager starts a Cleaner thread and adds it to the ThreadGroup after the group has been destroyed. Of course I am not using java.util.logging. I looks like it is being used by the java.rmi.server.RMIClassLoader.
Any thoughts for resolving this would be appreciated.
Thanks for your time!
John
I've been using JUnitPerf for a while with no problem on containerless tests. I just started
to try and use it with remote tests to my beans running in JBoss. However, I get an
java.lang.IllegalThreadStateException any time I combine a LoadTest with a JNDI lookup.
I have not found anything on the web regarding this problem, so I'm wondering if anyone has seen it.
Here is the stack:
Exception in thread "main" java.lang.IllegalThreadStateException
at java.lang.ThreadGroup.add(Unknown Source)
at java.lang.Thread.start(Unknown Source)
at java.lang.Shutdown.runHooks(Unknown Source)
at java.lang.Shutdown.sequence(Unknown Source)
at java.lang.Shutdown.exit(Unknown Source)
at java.lang.Runtime.exit(Unknown Source)
at java.lang.System.exit(Unknown Source)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:201)
It looks like java.util.logging.LogManager starts a Cleaner thread and adds it to the ThreadGroup after the group has been destroyed. Of course I am not using java.util.logging. I looks like it is being used by the java.rmi.server.RMIClassLoader.
Any thoughts for resolving this would be appreciated.
Thanks for your time!
John