java.lang.IllegalThreadStateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • FULL PRODUCT VERSION : java version "1.8.0_05" Java(TM) SE Runtime Environment (build 1.8.0_05-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode) ADDITIONAL OS VERSION INFORMATION : Windows All JDK 7 and JDK 8 A DESCRIPTION OF THE PROBLEM : Use Runtime.getTime() to create a subprocess and the exit value of the subprocess is 0x103(259) will cause an IllegalThreadStateException. ADDITIONAL REGRESSION INFORMATION: java version "1.8.0_05" Java(TM) SE Runtime Environment (build 1.8.0_05-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode) EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - no result ACTUAL - Exception in thread "main" java.lang.IllegalThreadStateException: process has not exited at java.lang.ProcessImpl.exitValue(ProcessImpl.java:442) at java.lang.ProcessImpl.waitFor(ProcessImpl.java:451) at com.ys168.zhanhb.commons.io.TestExit0x103.main(Exit0x103.java:21) Java Result: 1 ERROR MESSAGES/STACK TRACES THAT OCCUR : no message REPRODUCIBILITY : This bug can be reproduced always. ---------- BEGIN SOURCE ---------- package com.ys168.zhanhb.commons.io; import java.io.IOException; public class Exit0x103 { public static void main(String[] args) { System.exit(0x103); } } class TestExit0x103 { public static void main(String[] args) throws IOException, InterruptedException { Runtime.getRuntime().exec(new String[]{ System.getProperty("java.home") + "/bin/java", "-cp", System.getProperty("java.class.path"), Exit0x103.class.getName() }).waitFor(); } } ---------- END SOURCE ----------
    via by Webbug Group,
  • TopCoder Forums
    via by Unknown author,
  • GitHub comment 76#14383243
    via GitHub by eebyak
    ,
  • Executing a .bat file using Java
    via by Santosh Ghule,
  • Exe file not producing the output files
    via by 807599,
    • java.lang.IllegalThreadStateException: process has not exited at java.lang.ProcessImpl.exitValue(ProcessImpl.java:442) at java.lang.ProcessImpl.waitFor(ProcessImpl.java:451) at com.ys168.zhanhb.commons.io.TestExit0x103.main(Exit0x103.java:21)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,