This test failed in the loom repo (jep-vt branch) with:
Target VM failed to initialize.
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "com.sun.jdi.VirtualMachine.setDebugTraceMode(int)" because "this.vm" is null
at VMConnection.open(VMConnection.java:157)
at TestScaffold.connect(TestScaffold.java:643)
at TestScaffold.startUp(TestScaffold.java:365)
at TestScaffold.startTo(TestScaffold.java:375)
at TestScaffold.startToMain(TestScaffold.java:370)
at DeleteAllBkptsTest.runTests(DeleteAllBkptsTest.java:76)
at TestScaffold.startTests(TestScaffold.java:432)
at DeleteAllBkptsTest.main(DeleteAllBkptsTest.java:65)
Target VM failed to initialize.
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "com.sun.jdi.VirtualMachine.setDebugTraceMode(int)" because "this.vm" is null
at VMConnection.open(VMConnection.java:157)
at TestScaffold.connect(TestScaffold.java:643)
at TestScaffold.startUp(TestScaffold.java:365)
at TestScaffold.startTo(TestScaffold.java:375)
at TestScaffold.startToMain(TestScaffold.java:370)
at DeleteAllBkptsTest.runTests(DeleteAllBkptsTest.java:76)
at TestScaffold.startTests(TestScaffold.java:432)
at DeleteAllBkptsTest.main(DeleteAllBkptsTest.java:65)
- relates to
-
JDK-8282712 VMConnection.open() does not detect if VM failed to be created, resulting in NPE
- Resolved