Search the web
Sign In
New User? Sign Up
junitperf
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Getting java.lang.IllegalThreadStateException when using JUnitPerf   Message List  
Reply | Forward Message #84 of 94 |
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




Thu Oct 5, 2006 7:36 pm

jgilbert01
Offline Offline
Send Email Send Email

Forward
Message #84 of 94 |
Expand Messages Author Sort by Date

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...
John Gilbert
jgilbert01
Offline Send Email
Oct 5, 2006
7:38 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help