maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@codehaus.org
Subject [jira] Closed: (MAVEN-1403) NPE in Maven when running tests
Date Thu, 04 Nov 2004 11:16:47 GMT
Message:

   The following issue has been closed.

   Resolver: Brett Porter
       Date: Thu, 4 Nov 2004 6:15 AM

need the entire stack trace as the actual exception appears at the bottom.

Re-file under 1.0.1 as the exception handling should be improved in this area.
---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MAVEN-1403

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1403
    Summary: NPE in Maven when running tests
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: CANNOT REPRODUCE

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
   Fix Fors:
             1.0.1
   Versions:
             1.0

   Assignee: 
   Reporter: Nick Lothian

    Created: Mon, 26 Jul 2004 1:59 AM
    Updated: Thu, 4 Nov 2004 6:15 AM
Environment: Windows 2000, Maven 1.0, JDK 1.4

Description:
I have some test cases that start up a Jetty webserver and run some JUnit tests against it.

When these tests are run from Maven they complete correctly but then Maven gives a NPE and
claimes the build fails. Output of mave --debug follows:

15:26:31.125 EVENT  Stopped HttpContext[/rome]
15:26:31.125 EVENT  Stopped org.mortbay.http.HttpServer@1fac852
    [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 1.079 secnull

BUILD FAILED
File...... C:\Documents and Settings\nl\.maven\cache\maven-test-plugin-1.6.2\plu
gin.jelly
Element... junit
Line...... 133
Column.... 35
java.lang.NullPointerException
com.werken.werkz.UnattainableGoalException: Unable to obtain goal [dobuild] -- C
:\Documents and Settings\nl\.maven\cache\maven-test-plugin-1.6.2\plugin.jelly:13
3:35: <junit> java.lang.NullPointerException
        at com.werken.werkz.Goal.fire(Goal.java:646)
        at com.werken.werkz.Goal.attain(Goal.java:575)
        at com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
        at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
634)
        at org.apache.maven.MavenSession.attainGoals(MavenSession.java:266)
        at org.apache.maven.cli.App.doMain(App.java:486)
        at org.apache.maven.cli.App.main(App.java:1215)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at com.werken.forehead.Forehead.run(Forehead.java:551)
        at com.werken.forehead.Forehead.main(Forehead.java:581)
org.apache.commons.jelly.JellyTagException: C:\Documents and Settings\nl\.maven\
cache\maven-test-plugin-1.6.2\plugin.jelly:133:35: <junit> java.lang.NullPointer
Exception
        at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.jav
a:683)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:288)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
        at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
        at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTa
g.java:79)
        at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.perfor
mAction(MavenGoalTag.java:110)
        at com.werken.werkz.Goal.fire(Goal.java:639)
        at com.werken.werkz.Goal.attain(Goal.java:575)
        at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
        at com.werken.werkz.Goal.attain(Goal.java:573)
        at com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
        at org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttai
nGoalTag.java:127)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
        at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:1
45)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
        at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTa
g.java:79)
        at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.perfor
mAction(MavenGoalTag.java:110)
        at com.werken.werkz.Goal.fire(Goal.java:639)
        at com.werken.werkz.Goal.attain(Goal.java:575)
        at com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
        at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
634)
        at org.apache.maven.MavenSession.attainGoals(MavenSession.java:266)
        at org.apache.maven.cli.App.doMain(App.java:486)
        at org.apache.maven.cli.App.main(App.java:1215)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
....



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message