dcsimg
java.lang.NullPointerException when trying to execute Junit test via Ant
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Igor_Araujo
Posted On:   Wednesday, January 25, 2012 12:41 PM

I'm trying to execute a Junit test via Ant. But I got this error message: C:Usersusuario.hudsonjobsTesteworkspacePortalCeser uild_hudson.xml:117: java.lang.NullPointerException at org.apache.tools.ant.taskdefs.optional.junit.FailureRecorder$TestInfos. (FailureRecorder.java:352) at org.apache.tools.ant.taskdefs.optional.junit.FailureRecorder.addError(FailureRecorder.java:184) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:510) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask.java:1420) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:848) at org.apache.tools.ant.taskdefs.optional.junit.JUni   More>>

I'm trying to execute a Junit test via Ant. But I got this error message:



C:Usersusuario.hudsonjobsTesteworkspacePortalCeser uild_hudson.xml:117: java.lang.NullPointerException
at org.apache.tools.ant.taskdefs.optional.junit.FailureRecorder$TestInfos. (FailureRecorder.java:352)
at org.apache.tools.ant.taskdefs.optional.junit.FailureRecorder.addError(FailureRecorder.java:184)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:510)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask.java:1420)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:848)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(JUnitTask.java:1899)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:800)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:809)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)


Thanks in advance!
Igor

   <<Less

Re: java.lang.NullPointerException when trying to execute Junit test via Ant

Posted By:   jester_g  
Posted On:   Saturday, January 28, 2012 02:53 AM

I also have the same problem. Can anyone help me? Thanks!!

Melissa K. Reulet

acne care
About | Sitemap | Contact