Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8131029

JShell: recover from VMConnection launch failure

    Details

    • Subcomponent:
    • Resolved In Build:
      b122
    • Verification:
      Verified

      Description

      Problem was widespread on macs @ hackday.
      JShell JDI connection should,
      Try: "localhost" rather than hostname.
      Try: attach?

      Workaround: add hostname to /etc/hosts with 127.0.0.1

      ---- submitted report --


      My OS: Mac OS X Yosemite 10.10.3
      kulla version should be kulla-0.610-20150709005843.

      $ java -version

      java version "1.9.0-ea"

      Java(TM) SE Runtime Environment (build 1.9.0-ea-b72)

      Java HotSpot(TM) 64-Bit Server VM (build 1.9.0-ea-b72, mixed mode)

      $ java -jar kulla-arun.jar

      Exception in thread "main" java.lang.InternalError: Failed remote launch:
      com.sun.jdi.CommandLineLaunch (defaults:
      home=/Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/Contents/Home,
      options=, main=, suspend=true, quote=", vmexec=java) --
      {home=home=/Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/Contents/Home,
      options=options=-classpath kulla-arun.jar ,
      main=main=jdk.internal.jshell.impl.remote.RemoteAgent 49933,
      suspend=suspend=true, quote=quote=", vmexec=vmexec=java}

      at
      jdk.internal.jshell.impl.VMConnection.reportLaunchFail(VMConnection.java:529)

      at jdk.internal.jshell.impl.VMConnection.launchTarget(VMConnection.java:497)

      at jdk.internal.jshell.impl.VMConnection.open(VMConnection.java:319)

      at jdk.internal.jshell.impl.JDIEnv.init(JDIEnv.java:43)

      at jdk.internal.jshell.impl.JDIExecution.jdiGo(JDIExecution.java:254)

      at jdk.internal.jshell.impl.JDIExecution.launch(JDIExecution.java:69)

      at jdk.internal.jshell.impl.JShellImpl.jdiExec(JShellImpl.java:108)

      at jdk.internal.jshell.impl.Eval.load(Eval.java:682)

      at jdk.internal.jshell.impl.Eval.declare(Eval.java:553)

      at jdk.internal.jshell.impl.Eval.declare(Eval.java:457)

      at jdk.internal.jshell.impl.Eval.processMethod(Eval.java:366)

      at jdk.internal.jshell.impl.Eval.eval(Eval.java:138)

      at jdk.internal.jshell.impl.JShellImpl.eval(JShellImpl.java:132)

      at
      jdk.internal.jshell.tool.JShellTool.processCompleteSource(JShellTool.java:1307)

      at jdk.internal.jshell.tool.JShellTool.processSource(JShellTool.java:1296)

      at
      jdk.internal.jshell.tool.JShellTool.processSourceCatchingReset(JShellTool.java:416)

      at jdk.internal.jshell.tool.JShellTool.run(JShellTool.java:402)

      at jdk.internal.jshell.tool.JShellTool.resetState(JShellTool.java:340)

      at jdk.internal.jshell.tool.JShellTool.start(JShellTool.java:204)

      at jdk.internal.jshell.tool.JShellTool.start(JShellTool.java:199)

      at jdk.internal.jshell.tool.JShellTool.main(JShellTool.java:189)

      Caused by: com.sun.jdi.connect.VMStartException: VM initialization failed
      for: /Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/Contents/Home/bin/java
      -classpath kulla-arun.jar -Xdebug
      -Xrunjdwp:transport=dt_socket,address=MacBook-Pro.local:49934,suspend=y
      jdk.internal.jshell.impl.remote.RemoteAgent 49933

      at
      com.sun.tools.jdi.AbstractLauncher$Helper.launchAndAccept(AbstractLauncher.java:193)

      at com.sun.tools.jdi.AbstractLauncher.launch(AbstractLauncher.java:132)

      at
      com.sun.tools.jdi.SunCommandLineLauncher.launch(SunCommandLineLauncher.java:223)

      at jdk.internal.jshell.impl.VMConnection.launchTarget(VMConnection.java:490)

      ... 19 more


      Ben

        Issue Links

          Activity

          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/dev/langtools/rev/648525d5c647
          User: rfield
          Date: 2016-06-02 21:05:27 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/langtools/rev/648525d5c647 User: rfield Date: 2016-06-02 21:05:27 +0000
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/jdk9/langtools/rev/648525d5c647
          User: lana
          Date: 2016-06-08 20:34:53 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/langtools/rev/648525d5c647 User: lana Date: 2016-06-08 20:34:53 +0000

            People

            • Assignee:
              rfield Robert Field
              Reporter:
              rfield Robert Field
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: