FAQ
I am trying to build some java files to a new directory called Try on
AIX using IBM JDK1.2.2. The Ant1.3alpha, that comes with Tomcat 3.2 is
complaining with the following output. Can anybody please share his/her
clue on how to overcome this ? Have alreday included Tools.jar in the
CLASSPATH.

Output :

Buildfile: build.xml
[property] Error in class org.apache.tools.ant.taskdefs.Property

BUILD FAILED

/data7/tom32/adminPages/build.xml:13:
java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException:
java.lang.NullPointerException
at org.apache.tools.ant.taskdefs.Property.execute(Property.java:150)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:82)
at
org.apache.tools.ant.ProjectHelper$TaskHandler.init(ProjectHelper.java:419)

at
org.apache.tools.ant.ProjectHelper$ProjectHandler.handleProperty(ProjectHelper.java:298)

at
org.apache.tools.ant.ProjectHelper$ProjectHandler.startElement(ProjectHelper.java:283)

at com.sun.xml.parser.Parser.maybeElement(Parser.java:1391)
at com.sun.xml.parser.Parser.content(Parser.java:1499)
at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
at com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
at com.sun.xml.parser.Parser.parse(Parser.java:284)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:126)
at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:104)
at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:85)

at org.apache.tools.ant.Main.runBuild(Main.java:403)
at org.apache.tools.ant.Main.main(Main.java:149)

Total time: 1 second
------------------
Thanks in advance,
Ashish

Search Discussions

  • Stefan Bodewig at Dec 13, 2000 at 8:15 am

    Ashish Kundu wrote:

    The Ant1.3alpha, that comes with Tomcat 3.2 is complaining with the
    following output.
    Tomcat 3.2 ships with an alpha version of Ant? Strange.
    java.lang.reflect.InvocationTargetException:
    java.lang.NullPointerException at
    org.apache.tools.ant.taskdefs.Property.execute(Property.java:150) at
    java.lang.reflect.Method.invoke(Native Method) at
    org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:82) at
    This is extremely strange as well. Line 150 is a blank line in my
    version of Property.java. Which date has the version of Ant been
    compiled on?

    What's really strange here is that Ant thinks Property would not be a
    subclass of Task - this is indicated by the TaskAdapter line above. It
    seems as if org.apache.tools.ant.taskdefs.Property and
    org.apache.tools.ant.taskdefs.Task have been loaded by different
    classloaders.

    Is this a stand alone invocation of Ant or are you running Ant inside
    another application (like Tomcat)?

    Stefan
  • Kashish at Dec 13, 2000 at 9:08 am

    This is extremely strange as well. Line 150 is a blank line in my
    version of Property.java. Which date has the version of Ant been
    compiled on?
    I found that Ant is compiled on 29 Nov. 2000.
    What's really strange here is that Ant thinks Property would not be a
    subclass of Task - this is indicated by the TaskAdapter line above. It
    seems as if org.apache.tools.ant.taskdefs.Property and
    org.apache.tools.ant.taskdefs.Task have been loaded by different
    classloaders.
    Is this a stand alone invocation of Ant or are you running Ant inside
    another application (like Tomcat)?
    This is a stand alone invocation of Ant. But I am using the ant.jar and
    ant/antRun shipped by Tomcat 3.2. Basically I am trying to invoke ant to
    build a tree of java source...
    Stefan
    Thanks in advance,
    Ashish
  • Stefan Bodewig at Dec 13, 2000 at 9:26 am

    wrote:

    This is extremely strange as well. Line 150 is a blank line in my
    version of Property.java. Which date has the version of Ant been
    compiled on?
    I found that Ant is compiled on 29 Nov. 2000.
    which means it is the same version of Property that was in Ant 1.2,
    ok. Let's see. Line 150 is

    throw new BuildException(e, location);

    This is going to throw a NullPointerException in your case as your
    version of Ant did not realize Property was a Task (and thus did not
    set the location property).

    I'm going to download Tomcat 3.2.1 and see what is going on there -
    don't hold your breath though.

    Stefan

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupuser @
categoriesant
postedDec 12, '00 at 2:35p
activeDec 13, '00 at 9:26a
posts4
users2
websiteant.apache.org

2 users in discussion

Kashish: 2 posts Stefan Bodewig: 2 posts

People

Translate

site design / logo © 2022 Grokbase