xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colin Chambers <colin.chamb...@harcotechnology.com>
Subject Rasterizer build problem
Date Thu, 04 May 2006 18:02:01 GMT
Hi

I saw Jason Lane's message of 7-Apr on the this mailing list.  I'm 
getting the same problem.  I looked for but didn't spot any reply to 
Jason's message.  Does anyone have a solution to this problem?

Details of my experience follow...

Windows XP 5.1 (build 2600 service pack 2)
Java 1.5.0_01
Ant 1.6.5

I built Batik from the latest sources (batik-src-06-04-29.zip) and then 
built the RasterizerTask.  Then defined the task in the Ant build.xml. I 
get the following error (using "ant -debug") on the build.xml line which 
runs the rasterizer task:

BUILD FAILED
C:\projects\xdbschema\test\build.xml:107: java.lang.NullPointerException
    at org.apache.tools.ant.Task.perform(Task.java:373)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.Main.runBuild(Main.java:668)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: java.lang.NullPointerException
    at 
org.apache.tools.ant.taskdefs.optional.RasterizerTask.getParserClassName(Unknown 
Source)
    at 
org.apache.tools.ant.taskdefs.optional.RasterizerTask.execute(Unknown 
Source)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    ... 10 more
--- Nested Exception ---
java.lang.NullPointerException
    at 
org.apache.tools.ant.taskdefs.optional.RasterizerTask.getParserClassName(Unknown 
Source)
    at 
org.apache.tools.ant.taskdefs.optional.RasterizerTask.execute(Unknown 
Source)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.Main.runBuild(Main.java:668)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

Total time: 1 second

Relevant lines in build.xml are:

  <taskdef name="rasterize"
           
classname="org.apache.tools.ant.taskdefs.optional.RasterizerTask">
    <classpath>
      <pathelement
        location="${batik.lib.dir}/batik-all.jar"/>
      <pathelement
        
location="${batik.rasterizertask.dir}/build/lib/RasterizerTask.jar"/>
    </classpath>
  </taskdef>

  <target name="pngs" depends="docs">
    <rasterize
      result="image/png"
      dpi="96"
      src="test-schema-diagram.svg"
      dest="test-schema-diagram.png"/>    <!-- This is line 107 giving 
the exception. -->
  </target>

Thank you

Colin Chambers





---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message