You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Manikantan Narender Nath (JIRA)" <ji...@apache.org> on 2018/04/05 05:02:00 UTC

[jira] [Created] (NETBEANS-598) Cannot test webapplication project

Manikantan Narender Nath created NETBEANS-598:
-------------------------------------------------

             Summary: Cannot test webapplication project 
                 Key: NETBEANS-598
                 URL: https://issues.apache.org/jira/browse/NETBEANS-598
             Project: NetBeans
          Issue Type: Bug
          Components: java - JUnit, javaee - Web Project
    Affects Versions: 9.0
            Reporter: Manikantan Narender Nath


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
{code:java}
 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)
{code}
 Running Test on whole project
{code:java}
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)
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists