You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Vincent Massol <vm...@octo.com> on 2002/10/27 18:15:05 UTC

[Jelly] NPE with Thread and AttainGoal

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>