Ant 1.6.1 VersionInfo Task

Discussion in 'Java' started by Daniel, Feb 18, 2004.

  1. Daniel

    Daniel Guest

    Hello

    I have written a Ant Task which increments a version number by
    deserializing an XMLEncoder file and reserializing it after
    incrementing. The task is in com.xmatrix.ant.VersionInfoIncrementor
    and the VersionInfo class in com.xmatrix.update.VersionInfo. They both
    are located in the same JAR! However, Ant (even the newest 1.6.1) does
    not find VersionInfo, however it does successfully find the
    VersionInfoIncrementor task!

    A classpath problem of the strange kind. I would like to understand
    this. Any suggestions are welcome.

    Daniel Frey

    Ant output
    ------------------------
    [cvs] Caught exception: CreateProcess: cvs update
    config/META-INF/VersionI
    nfo.xml error=2
    [versioninfo] java.lang.ClassNotFoundException:
    com.xmatrix.update.VersionInfo
    [versioninfo] Continuing ...
    [versioninfo] java.lang.NullPointerException
    [versioninfo] Continuing ...
    [versioninfo] java.lang.NullPointerException
    [versioninfo] Continuing ...
    [versioninfo] java.lang.NullPointerException
    [versioninfo] Continuing ...
    [versioninfo] java.lang.NullPointerException
    [versioninfo] Continuing ...
    [versioninfo] java.lang.NullPointerException
    [versioninfo] Continuing ...
    [versioninfo] java.lang.NullPointerException
    [versioninfo] Continuing ...
    [versioninfo] java.lang.NullPointerException
    [versioninfo] Continuing ...
    [versioninfo] java.lang.NullPointerException
    [versioninfo] Continuing ...
    [versioninfo] java.lang.NullPointerException
    [versioninfo] Continuing ...
    [versioninfo] java.lang.NullPointerException
    [versioninfo] Continuing ...
    [versioninfo] java.lang.NullPointerException
    [versioninfo] Continuing ...

    BUILD FAILED
    java.lang.NullPointerException: VersionInfo object in file
    E:\Daten\HerbarCD\Ver
    sion2.1\config\META-INF\VersionInfo.xml not deserialized successfully
    at com.xmatrix.ant.VersionInfoIncrementor.doExecute(VersionInfoIncrement
    or.java:56)
    at com.xmatrix.ant.Incrementor.execute(Incrementor.java:85)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:301)
    at org.apache.tools.ant.Target.performTasks(Target.java:328)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)

    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:301)
    at org.apache.tools.ant.Target.performTasks(Target.java:328)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)

    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:301)
    at org.apache.tools.ant.Target.performTasks(Target.java:328)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:301)
    at org.apache.tools.ant.Target.performTasks(Target.java:328)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:301)
    at org.apache.tools.ant.Target.performTasks(Target.java:328)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
    at org.apache.tools.ant.Main.runBuild(Main.java:632)
    at org.apache.tools.ant.Main.startAnt(Main.java:183)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)

    Total time: 3 seconds
    java.lang.NullPointerException: VersionInfo object in file
    E:\Daten\HerbarCD\Ver
    sion2.1\config\META-INF\VersionInfo.xml not deserialized successfully
    at com.xmatrix.ant.VersionInfoIncrementor.doExecute(VersionInfoIncrement
    or.java:56)
    at com.xmatrix.ant.Incrementor.execute(Incrementor.java:85)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:301)
    at org.apache.tools.ant.Target.performTasks(Target.java:328)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)

    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:301)
    at org.apache.tools.ant.Target.performTasks(Target.java:328)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)

    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:301)
    at org.apache.tools.ant.Target.performTasks(Target.java:328)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:301)
    at org.apache.tools.ant.Target.performTasks(Target.java:328)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:301)
    at org.apache.tools.ant.Target.performTasks(Target.java:328)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
    at org.apache.tools.ant.Main.runBuild(Main.java:632)
    at org.apache.tools.ant.Main.startAnt(Main.java:183)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
    VersionInfo object in file
    E:\Daten\HerbarCD\Version2.1\config\META-INF\VersionI
    nfo.xml not deserialized successfully
     
    Daniel, Feb 18, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Daniel

    Ant 1.6.1 VersionInfo Task

    Daniel, Feb 18, 2004, in forum: Java
    Replies:
    0
    Views:
    462
    Daniel
    Feb 18, 2004
  2. Victor
    Replies:
    0
    Views:
    8,905
    Victor
    Sep 1, 2004
  3. Mark
    Replies:
    2
    Views:
    453
    Victor Bazarov
    Jul 15, 2003
  4. krabhi
    Replies:
    1
    Views:
    9,457
    Marco Meschieri
    Aug 9, 2006
  5. teggy
    Replies:
    0
    Views:
    849
    teggy
    May 29, 2007
Loading...

Share This Page