http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2442
*** shadow/2442 Tue Jul 3 14:16:30 2001 --- shadow/2442.tmp.11133 Tue Jul 3 14:16:30 2001 *************** *** 0 **** --- 1,47 ---- + +============================================================================+ + | Null pointer exception hanging unit tests in XMLJUnitResultFormatter.endTe | + +----------------------------------------------------------------------------+ + | Bug #: 2442 Product: Ant | + | Status: NEW Version: 1.3 | + | Resolution: Platform: Sun | + | Severity: Major OS/Version: Solaris | + | Priority: Other Component: Optional Tasks | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + We're using JUnit tests extensively in our codebase and I recently added the + junitreports functionality to our build file. I get the following errors + periodically. it seems that a NullPointerException causes the JUnit test to + hang in the process of creating an XML results file. + + Java Vesion : Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_02) + Java HotSpot(TM) Client VM (build 1.3.0_02, mixed mode) + + sb + + + [junit] Exception in thread "main" java.lang.NullPointerException + [junit] at + org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.endTest + (XMLJUnitResultFormatter.java:177) + [junit] at + org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.formatError + (XMLJUnitResultFormatter.java:211) + [junit] at + org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.addError + (XMLJUnitResultFormatter.java:206) + [junit] at junit.framework.TestResult.addError(TestResult.java:36) + [junit] at junit.framework.TestResult.runProtected(TestResult.java:133) + [junit] at com.raplix.rolloutexpress.RaplixTestSuite.run + (RaplixTestSuite.java:63) + [junit] at + org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run + (JUnitTestRunner.java:209) + [junit] at + org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main + (JUnitTestRunner.java:342)
