I try to use fop (0.20.1) API
(not by command line)

Library in path:

xsltc.jar;runtime.jar;JLex.jar;java_cup.jar;BCEL.jar;xerces.jar;xalan.jar;fo
p.jar;w3c.jar;rt.jar;batik.jar;jimi-1.0.jar

code:

Driver driver = new Driver(new InputSource(foReader), pdfOutputStream);
            driver.setRenderer(Driver.RENDER_PDF);
            driver.run();

resultat:

FATAL ERROR : null
java.lang.NullPointerException
 at
org.apache.fop.svg.SVGElementMapping.addToBuilder(SVGElementMapping.java,
Compiled Code)
 at org.apache.fop.apps.Driver.addElementMapping(Driver.java:373)
 at org.apache.fop.apps.Driver.addElementMapping(Driver.java:384)
 at org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java, Compiled
Code)
 at org.apache.fop.apps.Driver.<init>(Driver.java:189)
 at org.apache.fop.apps.Driver.<init>(Driver.java:193)

Can someone help me?
thanks


----- Message d'origine -----
De : "COFFMAN Steven" <[EMAIL PROTECTED]>
À : <[EMAIL PROTECTED]>
Envoyé : jeudi 30 août 2001 17:35
Objet : RE: NullPointerException


> So you're using FOP 0.20.1, you've got fop.jar, batik.jar, xerces.jar,
> xalan.jar, and jimi.jar in your classpath, right?
>
> One way to do it, is to embed FOP according to website:
> http://xml.apache.org/fop/embedding.html
>
> Which describes this:
>
> Driver driver = new Driver(new InputSource (args[0]),
>                    new FileOutputStream(args[1]));
> driver.setRenderer(RENDER_PDF);
> driver.run();
>
> However, if you can't do it this way, you need to provide more information
> than what you did for anyone to be able to help.
> -Steve
> -----Original Message-----
> From: Jean-François Selber [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 30, 2001 9:45 AM
> To: [EMAIL PROTECTED]
> Subject: NullPointerException
>
>
> can someone help me?
>
> thanks
>
> >
> >
> > > Driver driver = new Driver();
> > >
> > > java.lang.NullPointerException
> > >  at
> > >
> org.apache.fop.svg.SVGElementMapping.addToBuilder(SVGElementMapping.java,
> > > Compiled Code)
> > >  at org.apache.fop.apps.Driver.addElementMapping(Driver.java:373)
> > >  at org.apache.fop.apps.Driver.addElementMapping(Driver.java:384)
> > >  at org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java,
> Compiled
> > > Code)
> > >  at org.apache.fop.apps.Driver.<init>(Driver.java:189)
> > >
> > > what can I do?
> > >
> > > thanks
> > > jf
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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

Reply via email to