commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@octo.com>
Subject [Jelly] NPE with Thread and AttainGoal
Date Sun, 27 Oct 2002 17:15:05 GMT
Hi,

When running the following code snippet in Maven:

        <j:thread>
          <attainGoal name="cactus:start-tomcat-4x"/>
        </j:thread>

I get the following error:

cactus:tomcat-4x-run:
    [waitfor] [ERROR] org.apache.commons.jelly.JellyException:
java.lang.NullPointerException File:
file:/E:/Vma/Projets/Encours/ICOM/Icom/environment/tools/maven/plugins/m
aven-cactus-plugin-1.0-SNAPSHOT/scripts/tomcat.4x.jelly At tag
<attainGoal>: line: 57 column: 54
    [waitfor] [ERROR]   at
org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:6
0
4)
    [waitfor] [ERROR]   at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:281)
    [waitfor] [ERROR]   at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:134)
    [waitfor] [ERROR]   at
org.apache.commons.jelly.tags.core.ThreadTag$1.run(ThreadTag.java:98)
    [waitfor] [ERROR]   at java.lang.Thread.run(Thread.java:479)

The NPE comes from Jelly. Even though it may not be a Jelly problem, I
think there should be some checks in Jelly so that the error sent back
is not an NPE.

The problem is that in run() there is a big try/catch and I have no clue
where the NPE can come from...

Can anyone help?

Thanks
-Vincent


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message