You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Jean-François Selber <jf...@oxymel.com> on 2001/09/06 15:10:17 UTC

NullPointerException. Can someone help me?

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" <SC...@COVANSYS.com>
À : <fo...@xml.apache.org>
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:jfselber@oxymel.com]
> Sent: Thursday, August 30, 2001 9:45 AM
> To: fop-dev@xml.apache.org
> 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: fop-dev-unsubscribe@xml.apache.org
> > For additional commands, email: fop-dev-help@xml.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: NullPointerException. Can someone help me?

Posted by Jean-François Selber <jf...@oxymel.com>.
I have found the solution
thanks to all

----- Message d'origine -----
De : "Jean-François Selber" <jf...@oxymel.com>
À : <fo...@xml.apache.org>
Envoyé : jeudi 6 septembre 2001 15:10
Objet : NullPointerException. Can someone help me?


> 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" <SC...@COVANSYS.com>
> À : <fo...@xml.apache.org>
> 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:jfselber@oxymel.com]
> > Sent: Thursday, August 30, 2001 9:45 AM
> > To: fop-dev@xml.apache.org
> > 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: fop-dev-unsubscribe@xml.apache.org
> > > For additional commands, email: fop-dev-help@xml.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> > For additional commands, email: fop-dev-help@xml.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> > For additional commands, email: fop-dev-help@xml.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org