java.lang.IllegalThreadStateException: process has not exited

JDK Bug System | Webbug Group | 3 years ago
  1. 0

    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 ----------

    JDK Bug System | 3 years ago | Webbug Group
    java.lang.IllegalThreadStateException: process has not exited
  2. 0

    Java 基礎程式設計 - 學習筆記本 - V1.1 (2010/01/06)

    tobala.net | 4 months ago
    java.lang.IllegalThreadStateException: process has not exited
  3. 0

    FitNesse Error while executing Sikuli code

    Stack Overflow | 3 years ago | Muralee Chavali
    java.lang.IllegalThreadStateException: process has not exited
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When Runtime.exec() won't | JavaWorld

    javaworld.com | 3 months ago
    java.lang.IllegalThreadStateException: process has not exited
  6. 0

    Executing a .bat file using Java

    Coderanch | 6 years ago | Santosh Ghule
    java.lang.IllegalThreadStateException: process has not exited

    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

      process has not exited

      at java.lang.ProcessImpl.exitValue()
    2. Java RT
      ProcessImpl.waitFor
      1. java.lang.ProcessImpl.exitValue(ProcessImpl.java:442)
      2. java.lang.ProcessImpl.waitFor(ProcessImpl.java:451)
      2 frames
    3. com.ys168.zhanhb
      TestExit0x103.main
      1. com.ys168.zhanhb.commons.io.TestExit0x103.main(Exit0x103.java:21)
      1 frame