NullPointerException when using jlatexmath-fop-0.9.4 and FOP 1.0

classic Classic list List threaded Threaded
3 messages Options
Graeme Kidd Graeme Kidd
Reply | Threaded
Open this post in threaded view
|

NullPointerException when using jlatexmath-fop-0.9.4 and FOP 1.0


Hi

I noticed that while working on FOP 1.0 I get the following NullPointerException (It works fine on FOP 0.95) when I download and use the following JARs
"jlatexmath-embedded-fop-0.9.4.jar"
or
"jlatexmath-fop-0.9.4.jar" and "jlatexmath-0.9.4.jar"
 
When I process a file which includes Latex the following error appears (I think it also appears in your latex_docbook.xml example):
java.lang.NullPointerException
        at org.scilab.forge.jlatexmath.fop.JLaTeXMathElement.processNode(JLaTeXMathElement.java:85)
        at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:282)
        at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:171)
        at net.sf.saxon.event.ContentHandlerProxy.startContent(ContentHandlerProxy.java:362)
        at net.sf.saxon.event.NamespaceReducer.startContent(NamespaceReducer.java:197)
        at net.sf.saxon.event.ReceivingContentHandler.startElement(ReceivingContentHandler.java:351)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:400)
        at net.sf.saxon.event.Sender.send(Sender.java:180)
        at net.sf.saxon.IdentityTransformer.transform(IdentityTransformer.java:35)
        at embedding.ExampleXML2PDF.convertFO2PS(ExampleXML2PDF.java:202)
        at embedding.ExampleXML2PDF.main(ExampleXML2PDF.java:353)

After downloading JLaTeXMath and the FOP plugin sources I was able to build my own jlatexmath-fop-0.9.4.jar which worked fine.

Are you sure you built the JARs correctly before you released it?

Thanks,
Graeme
     
Graeme Kidd Graeme Kidd
Reply | Threaded
Open this post in threaded view
|

RE: [jlatexmath] NullPointerException when using jlatexmath-fop-0.9.4 and FOP 1.0


> Yes but not with FOP 1.0 :)
OK but you dont seem to advertise this, on the front page you say:
"Since the version  0.9.4, the fop plugin is compatible with fop 1.0"
 
Then in the download section the Summary for "jlatexmath-fop-0.9.4.jar" says: "JLaTeXMath - plugin for FOP 1.0".
 
Does this mean the source files contain experimental code and JARs don't?
 
Graeme
----------------------------------------

> Subject: Re: [jlatexmath] NullPointerException when using jlatexmath-fop-0.9.4 and FOP 1.0
> From: [hidden email]
> To: [hidden email]
> CC: [hidden email]; [hidden email]
> Date: Tue, 15 Feb 2011 16:04:09 +0100
>
> Le mardi 15 février 2011 à 15:01 +0000, Graeme Kidd a écrit :
> > Hi
> >
> > I noticed that while working on FOP 1.0 I get the following NullPointerException (It works fine on FOP 0.95) when I download and use the following JARs
> > "jlatexmath-embedded-fop-0.9.4.jar"
> > or
> > "jlatexmath-fop-0.9.4.jar" and "jlatexmath-0.9.4.jar"
> >
> > When I process a file which includes Latex the following error appears (I think it also appears in your latex_docbook.xml example):
> [...]
>
> > Are you sure you built the JARs correctly before you released it?
> Yes but not with FOP 1.0 :)
> jlatexmath is not (yet) compatible with this version. For now, 0.95 is
> supported (it is one of the reason why FOP 1.0 is still in
> experimental).
>
> Sylvestre
>
>
     
Calixte Denizet-2 Calixte Denizet-2
Reply | Threaded
Open this post in threaded view
|

RE: [jlatexmath] NullPointerException when using jlatexmath-fop-0.9.4 and FOP 1.0

Le mardi 15 février 2011 à 15:32 +0000, Graeme Kidd a écrit :
> > Yes but not with FOP 1.0 :)
> OK but you dont seem to advertise this, on the front page you say:
> "Since the version  0.9.4, the fop plugin is compatible with fop 1.0"
>  
> Then in the download section the Summary for "jlatexmath-fop-0.9.4.jar" says: "JLaTeXMath - plugin for FOP 1.0".
>  
> Does this mean the source files contain experimental code and JARs don't?

Hi Graeme,

As Sylvestre said, the jar has been built against fop 0.95. So I'll add
a jar for FOP 1.0.

Thanks

Calixte

>  
> Graeme
> ----------------------------------------
> > Subject: Re: [jlatexmath] NullPointerException when using jlatexmath-fop-0.9.4 and FOP 1.0
> > From: [hidden email]
> > To: [hidden email]
> > CC: [hidden email]; [hidden email]
> > Date: Tue, 15 Feb 2011 16:04:09 +0100
> >
> > Le mardi 15 février 2011 à 15:01 +0000, Graeme Kidd a écrit :
> > > Hi
> > >
> > > I noticed that while working on FOP 1.0 I get the following NullPointerException (It works fine on FOP 0.95) when I download and use the following JARs
> > > "jlatexmath-embedded-fop-0.9.4.jar"
> > > or
> > > "jlatexmath-fop-0.9.4.jar" and "jlatexmath-0.9.4.jar"
> > >
> > > When I process a file which includes Latex the following error appears (I think it also appears in your latex_docbook.xml example):
> > [...]
> >
> > > Are you sure you built the JARs correctly before you released it?
> > Yes but not with FOP 1.0 :)
> > jlatexmath is not (yet) compatible with this version. For now, 0.95 is
> > supported (it is one of the reason why FOP 1.0 is still in
> > experimental).
> >
> > Sylvestre
> >
> >
>