Hmm, can you call ant with the "-d" argument so we get the full stack
trace? "26" refers to the line number in build.xml.

I've just rechecked the Ant trask from FOP Trunk and it works for me.

On 31.08.2006 20:09:46 Rick Roen wrote:
> I'm trying to create an ant task to convert an fo file to pdf.
>  
> I can call the same fo file from the fop batch file and convert it
> successfully to a pdf.
>  
> I am using fop trunk.
>  
> When I call this via ant I get "C:\PROGRA~1\Ant\build.xml:26:
> java.lang.NullPointerException"
>  
> I'm not sure if the "26" in the exception refers to the offending line
> number in the build.xml, however this is the <fop> tag.  As far as I can see
> everything is ok in this line.
>  
> Can anyone see what is the problem or tell me how to get more information
> from Ant?
>  
> Regards,
>  
> Rick
>  
> Here is my build.xml:
>  
> <?xml version="1.0" encoding="UTF-8"?>
> <project basedir="." name="fop-gen" default="generate-pdf">
>             <property name="fop.dir"
> value="c:\delphi~1\lvspro~1\seedpa~1\fop"/>
>             <taskdef name="fop"
> classname="org.apache.fop.tools.anttasks.Fop">
>                         <classpath>
>                                     <pathelement
> location="${fop.dir}\build\fop.jar"/>
>                                     <pathelement
> location="${fop.dir}\build\fop-sandbox.jar"/>
>                                     <pathelement
> location="${fop.dir}\lib\fop-hyph.jar"/>
>                                     <pathelement
> location="${fop.dir}\lib\xml-apis-1.3.02.jar"/>
>                                     <pathelement
> location="${fop.dir}\lib\xercesImpl-2.7.1.jar"/>
>                                     <pathelement
> location="${fop.dir}\lib\xalan-2.7.0.jar"/>
>                                     <pathelement
> location="${fop.dir}\lib\saxon8.jar"/>
>                                     <pathelement
> location="${fop.dir}\lib\saxon8-dom.jar"/>
>                                     <pathelement
> location="${fop.dir}\lib\batik-all-1.6.jar"/>
>                                     <pathelement
> location="${fop.dir}\lib\xmlgraphics-commons-1.0.jar"/>
>                                     <pathelement
> location="${fop.dir}\lib\avalon-framework-4.2.0.jar"/>
>                                     <pathelement
> location="${fop.dir}\lib\commons-io-1.1.jar"/>
>                                     <pathelement
> location="${fop.dir}\lib\commons-logging-1.0.4.jar"/>
>                                     <pathelement
> location="${fop.dir}\lib\jimi-1.0.jar"/>
>                                     <pathelement
> location="${fop.dir}\lib\jai_core.jar"/>
>                                     <pathelement
> location="${fop.dir}\lib\jai_codec.jar"/>
>                                     <pathelement
> location="${fop.dir}\lib\barcode4j-fop-ext-trunk-complete.jar"/>
>                         </classpath>
>             </taskdef>
>             <target name="generate-pdf" description="Generates a single PDF
> file">
>                         <fop format="application/pdf"
> fofile="c:\temp\_Invoice.fo" outfile="c:\temp\_Invoice.pdf"
> messagelevel="verbose"/>
>             </target>
> </project>



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to