java.io.IOException: Target VM failed to handshake: unexpected byte #0: -128 (expected:74)

JDK Bug System | Joseph Provino | 4 months ago
  1. 0

    java" "-d64" "-server" "-Xcomp" "-Xcomp" "-XX:MaxRAMFraction=8" "-XX:+CreateCoredumpOnCrash" "-ea" "-esa" "-XX:CompileThreshold=100" "-XX:+UnlockExperimentalVMOptions" "-server" "-XX:-TieredCompilation" "-Xdebug" "-Xrunjdwp:server=n,transport=dt_socket,address=localhost:42831" "nsk.jdwp.ThreadReference.Name.name001a" "-arch=solaris-sparcv9" "-verbose" "-waittime=5" "-debugee.vmkind=java" "-transport.address=dynamic" "-debugee.vmkeys=-d64 -server -Xcomp -Xcomp -XX:MaxRAMFraction=8 -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:-TieredCompilation" "-pipe.port=53902" Debugee> Establishing JDWP socket connection Debugee> Listening from debugee java.io.IOException: Target VM failed to handshake: unexpected byte #0: -128 (expected:74) at nsk.share.jdwp.Transport.handshake(Transport.java:109) at nsk.share.jdwp.Debugee.connect(Debugee.java:153) at nsk.share.jdwp.Binder.bindToDebugee(Binder.java:99) at nsk.jdwp.ThreadReference.Name.name001.runIt(name001.java:103) at nsk.jdwp.ThreadReference.Name.name001.run(name001.java:82) at nsk.jdwp.ThreadReference.Name.name001.main(name001.java:75) # ERROR: TEST FAILED: Caught IOException while establishing JDWP transport connection: # ERROR: java.io.IOException: Target VM failed to handshake: unexpected byte #0: -128 (expected:74) The following stacktrace is for Aurora. Used to create a RULE: nsk.share.TestFailure: TEST FAILED: Caught IOException while establishing JDWP transport connection: java.io.IOException: Target VM failed to handshake: unexpected byte #0: -128 (expected:74) at nsk.share.Log.logExceptionForAurora(Log.java:411) at nsk.share.Log.complain(Log.java:380) at nsk.jdwp.ThreadReference.Name.name001.runIt(name001.java:137) at nsk.jdwp.ThreadReference.Name.name001.run(name001.java:82) at nsk.jdwp.ThreadReference.Name.name001.main(name001.java:75) # ERROR: TEST FAILED # ERROR: Debugee> Debugee VM has not exited correctly: trying to kill it The following stacktrace is for Aurora. Used to create a RULE: nsk.share.TestFailure: Debugee> Debugee VM has not exited correctly: trying to kill it at nsk.share.Log.logExceptionForAurora(Log.java:411) at nsk.share.Log.complain(Log.java:380) at nsk.share.jpda.DebugeeProcess.complain(DebugeeProcess.java:401) at nsk.share.jpda.DebugeeProcess.close(DebugeeProcess.java:381) at nsk.share.jdwp.Debugee.close(Debugee.java:1641) at nsk.share.jpda.DebugeeProcess.finalize(DebugeeProcess.java:410) at nsk.share.FinalizableObject.finalizeAtExit(FinalizableObject.java:34) at nsk.share.Finalizer$FinalizerThread.run(Finalizer.java:107) Killing debugee VM process #> #> SUMMARY: Following errors occured #> during test execution: #> # ERROR: TEST FAILED: Caught IOException while establishing JDWP transport connection: # ERROR: java.io.IOException: Target VM failed to handshake: unexpected byte #0: -128 (expected:74) # ERROR: TEST FAILED # ERROR: Debugee> Debugee VM has not exited correctly: trying to kill it

    JDK Bug System | 4 months ago | Joseph Provino
    java.io.IOException: Target VM failed to handshake: unexpected byte #0: -128 (expected:74)
  2. 0

    Bug ID: JDK-6303969 JDWP: Socket Transport handshake fails rarely on InstancesTest.java

    java.com | 7 months ago
    java.io.IOException: Target VM failed to handshake: too few bytes in reply: 0(expected: 14)
  3. 0

    Change java -Xmx after the VM has already started

    Stack Overflow | 6 years ago | Ken Bloom
    java.io.IOException: Command failed in target VM
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Java mon amour: Garbage Collection Resources

    javamonamour.org | 12 months ago
    java.io.IOException: Command failed in target VM
  6. 0

    Java mon amour: February 2015

    javamonamour.org | 12 months ago
    java.io.IOException: Command failed in target VM

    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.io.IOException

      Target VM failed to handshake: unexpected byte #0: -128 (expected:74)

      at nsk.share.jdwp.Transport.handshake()
    2. nsk.share.jdwp
      Binder.bindToDebugee
      1. nsk.share.jdwp.Transport.handshake(Transport.java:109)
      2. nsk.share.jdwp.Debugee.connect(Debugee.java:153)
      3. nsk.share.jdwp.Binder.bindToDebugee(Binder.java:99)
      3 frames
    3. nsk.jdwp.ThreadReference
      name001.main
      1. nsk.jdwp.ThreadReference.Name.name001.runIt(name001.java:103)
      2. nsk.jdwp.ThreadReference.Name.name001.run(name001.java:82)
      3. nsk.jdwp.ThreadReference.Name.name001.main(name001.java:75)
      3 frames