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 224148 - "Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit." failure when running JUnit test within a NB-RCP module with JRebel enabled
Summary: "Forked Java VM exited abnormally. Please note the time in the report does no...
Status: RESOLVED FIXED
Alias: None
Product: third-party
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@third-party
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-21 19:55 UTC by markiewb
Modified: 2013-06-28 13:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2012-12-21 19:55:29 UTC
[ BUILD # : 201212170919 ]
[ JDK VERSION : 1.7.0_09 ]

Reproduction:
* create a NetBeans module via "New Project" wizard
* create a "Java Hint" via "New File" wizard (NetBeans module development 
is the category) --> a hint class and a test for it is created
* try to run the test WITH enabled JRebel agent (icon in toolbar is checked)

ACTUAL: test cannot be run. It fails with following exception

Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Unrecognized option: -J-javaagent:C:\Users\Bender\AppData\Roaming
\NetBeans\dev\jrebel\jrebel.jar
Testsuite: 
de.markiewb.netbeans.plugins.customhints.JoinDeclarationHintTest
Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

Testcase: 
de.markiewb.netbeans.plugins.customhints.JoinDeclarationHintTest: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 org.netbeans.core.execution.RunClassThread.run
(RunClassThread.java:153)


Test de.markiewb.netbeans.plugins.customhints.JoinDeclarationHintTest 
FAILED (crashed)

----
Product Version: NetBeans IDE Dev (Build 201212170919)
Java: 1.7.0_10; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-b18
System: Windows 7 version 6.1 running on amd64; Cp1252; de_DE (nb)
Comment 1 markiewb 2012-12-21 19:57:57 UTC
FYI: I use the JRebel NetBeans Plugin 1.3.2 (and therefore JR 5.1.2)
Comment 2 markiewb 2013-04-17 21:07:11 UTC
FYI: 
* The test execution works when starting the test via "Test file"
* The test execution doesn't work when starting the test via "Run file"
Comment 3 raydac 2013-06-28 13:29:47 UTC
I have tried such scenario with the pre-release version of JRebel 5.3.1 and its NetBeans plugin under NetBeans 7.3.1 and NetBeans 7.3, I can't get such behavior, it looks like that the NetBeans team has fixed the case.