Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
9.0
-
None
-
None
Description
Test specification: http://netbeans-vm.apache.org/synergy/client/app/#/specification/390/v/2
Test suite: http://netbeans-vm.apache.org/synergy/client/app/#/suite/2236/v/1
Test case: http://netbeans-vm.apache.org/synergy/client/app/#/case/6007/suite/2236/v/1
Steps to reproduce
- Start with a clean userdir and cache dir
- Create a webapplication
- Create an empty test in test packages
- Running tests
- Select project and from menubar choose Run|Test project
- Select newly created test and choose from menubar Run|Test file
Expected Result
Tests are run
Actual result
Tests are not run and Output console shows error shown is "could not create Java virtual machine" along wiht stack trace
Output console logs
Running single test output
WARNING: multiple versions of ant detected in path for junit jar:file:/Users/msivasub/dev/NetCat9/netbeans/extide/ant/lib/ant.jar!/org/apache/tools/ant/Project.class and jar:file:/Users/msivasub/dev/NetCat9/gf/glassfish/modules/ant.jar!/org/apache/tools/ant/Project.class -Xbootclasspath/p is no longer a supported option. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. Testsuite: teststorun.NewEmptyJUnitTest Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec Testcase: teststorun.NewEmptyJUnitTest:null: Caused an ERROR Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit. junit.framework.AssertionFailedError: Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:128) Test teststorun.NewEmptyJUnitTest FAILED (crashed) test: Deleting: /var/folders/tv/81xtk0597qq97c2l_x4zym4h0000gp/T/TEST-teststorun.NewEmptyJUnitTest.xml BUILD SUCCESSFUL (total time: 1 second)
Running Test on whole project
ant -f /Users/msivasub/dev/NetCat9/NBProjects/WebApplication2 -Dnb.internal.action.name=test -DforceRedeploy=false -Dnb.wait.for.caches=true -Dbrowser.context=/Users/msivasub/dev/NetCat9/NBProjects/WebApplication2 -Dignore.failing.tests=true test init: deps-module-jar: deps-ear-jar: deps-jar: library-inclusion-in-archive: library-inclusion-in-manifest: compile: compile-test: Created dir: /Users/msivasub/dev/NetCat9/NBProjects/WebApplication2/build/test/results WARNING: multiple versions of ant detected in path for junit jar:file:/Users/msivasub/dev/NetCat9/netbeans/extide/ant/lib/ant.jar!/org/apache/tools/ant/Project.class and jar:file:/Users/msivasub/dev/NetCat9/gf/glassfish/modules/ant.jar!/org/apache/tools/ant/Project.class -Xbootclasspath/p is no longer a supported option. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. Testsuite: teststorun.NewEmptyJUnitTest Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec Testcase: teststorun.NewEmptyJUnitTest:null: Caused an ERROR Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit. junit.framework.AssertionFailedError: Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit. at jdk.internal.reflect.GeneratedMethodAccessor81.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at jdk.internal.reflect.GeneratedMethodAccessor81.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at jdk.internal.reflect.GeneratedMethodAccessor81.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at jdk.internal.reflect.GeneratedMethodAccessor81.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at jdk.internal.reflect.GeneratedMethodAccessor81.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at jdk.internal.reflect.GeneratedMethodAccessor81.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at jdk.internal.reflect.GeneratedMethodAccessor81.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:128) Test teststorun.NewEmptyJUnitTest FAILED (crashed) test-report: test: BUILD SUCCESSFUL (total time: 0 seconds)