java.io.IOException: Bad file number

JDK Bug System | Boris Molodenkov | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    jstack sometimes fails with Bad file number

    Oracle Community | 8 years ago | 843798
    java.io.IOException: Bad file number

    Root Cause Analysis

    1. java.io.IOException

      Bad file number

      at sun.tools.attach.SolarisVirtualMachine.enqueue()
    2. Java Tools
      JStack.main
      1. sun.tools.attach.SolarisVirtualMachine.enqueue(Native Method)
      2. sun.tools.attach.SolarisVirtualMachine.execute(SolarisVirtualMachine.java:131)
      3. sun.tools.attach.HotSpotVirtualMachine.executeCommand(HotSpotVirtualMachine.java:217)
      4. sun.tools.attach.HotSpotVirtualMachine.remoteDataDump(HotSpotVirtualMachine.java:174)
      5. sun.tools.jstack.JStack.runThreadDump(JStack.java:177)
      6. sun.tools.jstack.JStack.main(JStack.java:112)
      6 frames