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 166856 - Forked Java VM exited abnormally
Summary: Forked Java VM exited abnormally
Status: RESOLVED DUPLICATE of bug 166379
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 6.x
Hardware: Macintosh (x86) Mac OS X
: P3 blocker (vote)
Assignee: Victor Vasilyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-10 13:45 UTC by eivinn
Modified: 2009-07-03 12:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of the test run (223.34 KB, image/png)
2009-06-10 13:50 UTC, eivinn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description eivinn 2009-06-10 13:45:26 UTC
When I'm trying to run a junit test doing som Hex-encoding using Apache Commons I get the error described in the summary. The project is setup using 
multiple maven modules. There is nothing in messages.log in the NetBeans 6.7rc2 user directory. Is there some way of finding this information in the logs?
Comment 1 eivinn 2009-06-10 13:50:15 UTC
Created attachment 83403 [details]
Screenshot of the test run
Comment 2 eivinn 2009-06-10 14:46:24 UTC
Found the text below in a hidden output tab:

WARNING: multiple versions of ant detected in path for junit 
         jar:file:/Applications/NetBeans/NetBeans%206.7%20RC2.app/Contents/Resources/NetBeans/java2/ant/lib/ant.jar!/org/apache/tools/ant/Project.class
     and jar:file:/Users/eivinn/.m2/repository/ant/ant/1.5/ant-1.5.jar!/org/apache/tools/ant/Project.class
Testsuite: com.mobiletech.dextella.msggw.common.sms.SmsMessageTranslatorTest
Tests run: 7, Failures: 0, Errors: 0, Time elapsed: 0.573 sec

Exception in thread "main" java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close(Ljava/io/Writer;)V
        at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.endTestSuite(XMLJUnitResultFormatter.java:177)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.fireEndTestSuite(JUnitTestRunner.java:714)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:547)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1031)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:888)
Test com.mobiletech.dextella.msggw.common.sms.SmsMessageTranslatorTest FAILED (crashed)
test:
BUILD SUCCESSFUL (total time: 3 seconds)
Comment 3 Milan Kubec 2009-07-03 12:10:53 UTC

*** This issue has been marked as a duplicate of 166379 ***