This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 270090

Summary: JShell does not start: com.sun.jdi.connect.VMStartException: VM initialization failed
Product: java Reporter: Martin Balin <mbalin>
Component: JShellAssignee: Svata Dedic <sdedic>
Status: RESOLVED FIXED    
Severity: normal CC: akhilesh.swarnkaar
Priority: P1    
Version: Dev   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Jshell error output

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