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

JShell: Mac throws exception when called without any options

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: tools
    • Environment:

      Macbook Pro (15 inch mid 2012)
      OS X 10.11.5
      Processor 2.3 GHz Intel Core i7
      Memory: 8 GB 1600 MHz DDR3

      Picked up JDK 9 EA build from internal EA Server. Installation Package MD5: a65687df9906797a11dc0dcda8a89230

    • Subcomponent:
    • Introduced In Build:
      b120
    • CPU:
      x86
    • OS:
      os_x
    • Verification:
      Verified

      Description

      If I try "./jshell --help" it works, "./jshell -version" returns "jshell 9-ea" but if I simply enter "./jshell" without any options I get:

      Exception in thread "main" java.lang.InternalError: Launching execution engine threw: Failed remote launch: com.sun.jdi.CommandLineLaunch (defaults: home=/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home, options=, main=, suspend=true, quote=", vmexec=java) -- {home=home=/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home, options=options=, main=main=jdk.internal.jshell.remote.RemoteAgent 51018, suspend=suspend=true, quote=quote=", vmexec=vmexec=java}
      at jdk.jshell.JShell.executionControl(jdk.jshell@9-ea/JShell.java:714)
      at jdk.jshell.Unit.classesToLoad(jdk.jshell@9-ea/Unit.java:275)
      at jdk.jshell.Eval.lambda$compileAndLoad$15(jdk.jshell@9-ea/Eval.java:580)
      at java.util.stream.ReferencePipeline$7$1.accept(java.base@9-ea/ReferencePipeline.java:269)
      at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(java.base@9-ea/ArrayList.java:1477)
      at java.util.stream.AbstractPipeline.copyInto(java.base@9-ea/AbstractPipeline.java:484)
      at java.util.stream.AbstractPipeline.wrapAndCopyInto(java.base@9-ea/AbstractPipeline.java:474)
      at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(java.base@9-ea/ReduceOps.java:913)
      at java.util.stream.AbstractPipeline.evaluate(java.base@9-ea/AbstractPipeline.java:234)
      at java.util.stream.ReferencePipeline.collect(java.base@9-ea/ReferencePipeline.java:511)
      at jdk.jshell.Eval.compileAndLoad(jdk.jshell@9-ea/Eval.java:581)
      at jdk.jshell.Eval.declare(jdk.jshell@9-ea/Eval.java:441)
      at jdk.jshell.Eval.processMethod(jdk.jshell@9-ea/Eval.java:372)
      at jdk.jshell.Eval.eval(jdk.jshell@9-ea/Eval.java:127)
      at jdk.jshell.JShell.eval(jdk.jshell@9-ea/JShell.java:393)
      at jdk.internal.jshell.tool.JShellTool.processCompleteSource(jdk.jshell@9-ea/JShellTool.java:2106)
      at jdk.internal.jshell.tool.JShellTool.processSource(jdk.jshell@9-ea/JShellTool.java:2094)
      at jdk.internal.jshell.tool.JShellTool.processSourceCatchingReset(jdk.jshell@9-ea/JShellTool.java:781)
      at jdk.internal.jshell.tool.JShellTool.run(jdk.jshell@9-ea/JShellTool.java:761)
      at jdk.internal.jshell.tool.JShellTool.startUpRun(jdk.jshell@9-ea/JShellTool.java:698)
      at jdk.internal.jshell.tool.JShellTool.resetState(jdk.jshell@9-ea/JShellTool.java:659)
      at jdk.internal.jshell.tool.JShellTool.start(jdk.jshell@9-ea/JShellTool.java:479)
      at jdk.internal.jshell.tool.JShellTool.start(jdk.jshell@9-ea/JShellTool.java:458)
      at jdk.internal.jshell.tool.JShellTool.main(jdk.jshell@9-ea/JShellTool.java:448)
      Caused by: java.lang.InternalError: Failed remote launch: com.sun.jdi.CommandLineLaunch (defaults: home=/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home, options=, main=, suspend=true, quote=", vmexec=java) -- {home=home=/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home, options=options=, main=main=jdk.internal.jshell.remote.RemoteAgent 51018, suspend=suspend=true, quote=quote=", vmexec=vmexec=java}
      at jdk.internal.jshell.jdi.JDIConnection.reportLaunchFail(jdk.jshell@9-ea/JDIConnection.java:342)
      at jdk.internal.jshell.jdi.JDIConnection.launchTarget(jdk.jshell@9-ea/JDIConnection.java:308)
      at jdk.internal.jshell.jdi.JDIConnection.open(jdk.jshell@9-ea/JDIConnection.java:119)
      at jdk.internal.jshell.jdi.JDIEnv.init(jdk.jshell@9-ea/JDIEnv.java:49)
      at jdk.internal.jshell.jdi.JDIExecutionControl.jdiGo(jdk.jshell@9-ea/JDIExecutionControl.java:422)
      at jdk.internal.jshell.jdi.JDIExecutionControl.start(jdk.jshell@9-ea/JDIExecutionControl.java:95)
      at jdk.jshell.JShell.executionControl(jdk.jshell@9-ea/JShell.java:712)
      ... 23 more
      Caused by: com.sun.jdi.connect.VMStartException: VM initialization failed for: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/java -Xdebug -Xrunjdwp:transport=dt_socket,address=agarciar-mac:51019,suspend=y jdk.internal.jshell.remote.RemoteAgent 51018
      at com.sun.tools.jdi.AbstractLauncher$Helper.launchAndAccept(jdk.jdi@9-ea/AbstractLauncher.java:193)
      at com.sun.tools.jdi.AbstractLauncher.launch(jdk.jdi@9-ea/AbstractLauncher.java:132)
      at com.sun.tools.jdi.SunCommandLineLauncher.launch(jdk.jdi@9-ea/SunCommandLineLauncher.java:225)
      at jdk.internal.jshell.jdi.JDIConnection.launchTarget(jdk.jshell@9-ea/JDIConnection.java:301)
      ... 28 more

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rfield Robert Field
              Reporter:
              agarciar Aurelio Garcia-Ribeyro
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: