java.lang.IllegalThreadStateException

Sonatype JIRA | John Casey | 7 years ago
  1. 0

    I'm seeing the following intermittently when trying to start a new Nexus instance for running ITs: {noformat} java.lang.IllegalThreadStateException at java.lang.Thread.start(Thread.java:589) at org.sonatype.nexus.test.launcher.ThreadedPlexusAppBooterService.start(ThreadedPlexusAppBooterService.java:89) at org.sonatype.nexus.test.utils.NexusStatusUtil.start(NexusStatusUtil.java:114) at org.sonatype.nexus.test.utils.NexusStatusUtil.doSoftStart(NexusStatusUtil.java:84) at org.sonatype.nexus.integrationtests.AbstractNexusIntegrationTest.startNexus(AbstractNexusIntegrationTest.java:425) at org.sonatype.nexus.integrationtests.AbstractNexusIntegrationTest.oncePerClassSetUp(AbstractNexusIntegrationTest.java:204) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41) at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.ParentRunner.run(ParentRunner.java:220) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165) at org.apache.maven.surefire.Surefire.run(Surefire.java:107) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1005) {noformat}

    Sonatype JIRA | 7 years ago | John Casey
    java.lang.IllegalThreadStateException
  2. 0

    I'm seeing the following intermittently when trying to start a new Nexus instance for running ITs: {noformat} java.lang.IllegalThreadStateException at java.lang.Thread.start(Thread.java:589) at org.sonatype.nexus.test.launcher.ThreadedPlexusAppBooterService.start(ThreadedPlexusAppBooterService.java:89) at org.sonatype.nexus.test.utils.NexusStatusUtil.start(NexusStatusUtil.java:114) at org.sonatype.nexus.test.utils.NexusStatusUtil.doSoftStart(NexusStatusUtil.java:84) at org.sonatype.nexus.integrationtests.AbstractNexusIntegrationTest.startNexus(AbstractNexusIntegrationTest.java:425) at org.sonatype.nexus.integrationtests.AbstractNexusIntegrationTest.oncePerClassSetUp(AbstractNexusIntegrationTest.java:204) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41) at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.ParentRunner.run(ParentRunner.java:220) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165) at org.apache.maven.surefire.Surefire.run(Surefire.java:107) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1005) {noformat}

    Sonatype JIRA | 7 years ago | John Casey
    java.lang.IllegalThreadStateException
  3. 0

    Now that we kill the launcherThread if it isn't shut down properly, seems some ports still stay in use causing thread not to start again in future, so get java.lang.IllegalThreadStateException at java.lang.Thread.start(Thread.java:595) at org.sonatype.nexus.test.launcher.ThreadedPlexusAppBooterService.start(ThreadedPlexusAppBooterService.java:89) at org.sonatype.nexus.test.utils.NexusStatusUtil.start(NexusStatusUtil.java:112) at org.sonatype.nexus.test.utils.NexusStatusUtil.doSoftStart(NexusStatusUtil.java:82) at org.sonatype.nexus.integrationtests.AbstractNexusIntegrationTest.startNexus(AbstractNexusIntegrationTest.java:554) at org.sonatype.nexus.integrationtests.AbstractNexusIntegrationTest.oncePerClassSetUp(AbstractNexusIntegrationTest.java:206) at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41) at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.ParentRunner.run(ParentRunner.java:220) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

    Sonatype JIRA | 7 years ago
    java.lang.IllegalThreadStateException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    River stops Elasticsearch ingestion

    GitHub | 3 years ago | golspe
    java.lang.IllegalThreadStateException
  6. 0

    Failed when reopen video using WebcamPanel

    GitHub | 3 years ago | germanchaparro
    java.lang.IllegalThreadStateException

  1. Lukasmcd14 2 times, last 3 months ago
1 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalThreadStateException

    No message provided

    at java.lang.Thread.start()
  2. Java RT
    Thread.start
    1. java.lang.Thread.start(Thread.java:589)
    1 frame
  3. org.sonatype.nexus
    AbstractNexusIntegrationTest.oncePerClassSetUp
    1. org.sonatype.nexus.test.launcher.ThreadedPlexusAppBooterService.start(ThreadedPlexusAppBooterService.java:89)
    2. org.sonatype.nexus.test.utils.NexusStatusUtil.start(NexusStatusUtil.java:114)
    3. org.sonatype.nexus.test.utils.NexusStatusUtil.doSoftStart(NexusStatusUtil.java:84)
    4. org.sonatype.nexus.integrationtests.AbstractNexusIntegrationTest.startNexus(AbstractNexusIntegrationTest.java:425)
    5. org.sonatype.nexus.integrationtests.AbstractNexusIntegrationTest.oncePerClassSetUp(AbstractNexusIntegrationTest.java:204)
    5 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:592)
    4 frames
  5. JUnit
    ParentRunner.run
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    4. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
    5. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    6. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
    7. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
    8. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
    9. org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
    10. org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
    11. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    12. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    13. org.junit.runners.ParentRunner.run(ParentRunner.java:220)
    13 frames
  6. JUnit4 Provider
    JUnit4TestSet.execute
    1. org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
    1 frame
  7. SureFire
    Surefire.run
    1. org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
    2. org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
    3. org.apache.maven.surefire.Surefire.run(Surefire.java:107)
    3 frames
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:592)
    4 frames
  9. SureFire
    SurefireBooter.main
    1. org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)
    2. org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1005)
    2 frames