Re: NullPointerException. Can someone help me?

2001-09-06 Thread Jean-François Selber

I have found the solution
thanks to all

- Message d'origine -
De : "Jean-François Selber" <[EMAIL PROTECTED]>
À : <[EMAIL PROTECTED]>
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.(Driver.java:189)
>  at org.apache.fop.apps.Driver.(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.(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]


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




RE: NullPointerException

2001-08-30 Thread COFFMAN Steven

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.(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]




Re: nullPointerException

2001-07-18 Thread Kenneth Trio

Hi Gustavo,

This sounds like a CLASSPATH setting issue.  If you're using JDK 1.2 and higher, 
after setting your CLASSPATH, you may also want to try to add 'xalan.jar' and 
'xerces.jar' into the /jre/lib/ext directory of your JDK.

'Hope this helps,
Ken


>X-Unix-From: [EMAIL PROTECTED]  Tue Jul 17 00:47:16 2001
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>list-help: 
>list-unsubscribe: 
>list-post: 
>Delivered-To: mailing list [EMAIL PROTECTED]
>From: "Wolf Gustavo (SGC-EXT)" <[EMAIL PROTECTED]>
>To: "Fop (E-mail)" <[EMAIL PROTECTED]>
>Subject: nullPointerException
>Date: Tue, 17 Jul 2001 09:45:42 +0200
>MIME-Version: 1.0
>X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N
>
>Hi all,
>  I am trying to get an XMLReader object with 
>
> XMLReader parser = inputHandler.getParser(); 
>
>after having done: InputHandler inputHandler = new
>XSLTInputHandler(xmlInputSource,xslInputSource);
>
>and I get the following error (the files xmlInputSource and xslInputSource
>are where they are suppossed to be):
>
>java.lang.NullPointerException
>Caught exception: java.lang.NullPointerException
>java.lang.NullPointerException
>at
>org.apache.fop.apps.InputHandler.createParser(InputHandler.java:58)
>at
>org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:117)
>at TestXSLT.(TestXSLT.java:29)
>
>It seems to me that I am missing some library, but I am using fop, xerces
>and xalan in that order, as I was told others where doing, with a program
>that worked for others. 
>
>Does anyone have an idea of what could be wrong?
>
>Thanks really a lot,
>   Gustavo
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>


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