Bug 270090 - JShell does not start: com.sun.jdi.connect.VMStartException: VM initialization failed
JShell does not start: com.sun.jdi.connect.VMStartException: VM initializatio...
Status: RESOLVED FIXED
Product: java
Classification: Unclassified
Component: JShell
Dev
PC Linux
: P1 (vote)
: Dev
Assigned To: Svata Dedic
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-16 12:18 UTC by Martin Balin
Modified: 2017-03-18 02:57 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
:


Attachments
Jshell error output (6.43 KB, text/plain)
2017-03-16 12:20 UTC, Martin Balin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Balin 2017-03-16 12:18:17 UTC
Attempt to start JavaShell for JDK9 project (JDK0 EA b160).
See attachment for full  stack trace
INFO [org.netbeans.modules.jshell.support.ShellSession]: Error in JSHell
com.sun.jdi.connect.VMStartException: VM initialization failed for: /home/martin/jdk-9-b160/bin/java -classpath /home/martin/netbeans/jet-main/nbbuild/netbeans/java/modules/ext/nb-mod-jshell-probe.jar:/home/martin/NetBeansProjects/JavaApplication4/build/classes --add-modules JavaApplication4,jdk.jshell --add-reads jdk.jshell=ALL-UNNAMED --add-exports JavaApplication4/javaapplication4=ALL-UNNAMED --module-path /home/martin/NetBeansProjects/JavaApplication4/build/classes -Xdebug -Xrunjdwp:transport=dt_socket,address=mbalin-ubuntu:44106,suspend=y org.netbeans.lib.jshell.agent.AgentWorker 34024
	at jdk.jdi/com.sun.tools.jdi.AbstractLauncher$Helper.launchAndAccept(AbstractLauncher.java:193)
	at jdk.jdi/com.sun.tools.jdi.AbstractLauncher.launch(AbstractLauncher.java:132)
	at jdk.jdi/com.sun.tools.jdi.SunCommandLineLauncher.launch(SunCommandLineLauncher.java:225)
	at jdk.jshell/jdk.jshell.execution.JdiInitiator.lambda$launchTarget$0(JdiInitiator.java:135)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1161)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:844)
Comment 1 Martin Balin 2017-03-16 12:20:07 UTC
Created attachment 163861 [details]
Jshell error output
Comment 2 Svata Dedic 2017-03-16 14:26:44 UTC
Reproduced under the condition that the application has not been build (its JAR was not produced or was removed during clean)
Comment 3 Svata Dedic 2017-03-16 15:40:06 UTC
JShell starts build and executes jshell after the project successfully builds - so that the project artifacts are in place - implemnted in jet-main#c6e60de6786b
Comment 4 Quality Engineering 2017-03-18 02:57:49 UTC
Integrated into 'main-silver', will be available in build *201703180002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/c6e60de6786b
User: Svata Dedic <sdedic@netbeans.org>
Log: #270090: JShell runs after build project successfully completes


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo