xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Cumiskey <adrian.cumis...@gmail.com>
Subject Re: Problem upgrading from 0.94 to 0.95
Date Wed, 05 Nov 2008 11:21:20 GMT
Paul,

I think you may have a classpath problem as the PreloaderMathML class now resides in 
org.apache.fop.mathml package (as part of FOP 0.95), not net.sourceforge.jeuclid.xmlgraphics
anymore 
- you may need to upgrade your JEuclid too.

Adrian.

Adrian Cumiskey wrote:
> Hi Paul,
> 
> The NullPointerException is coming from the ImageInputStream being 
> null.  This looks like one for Max as I suspect it may be a problem with 
> the JEuclid PreloaderMathML class when it constructs its 
> ImageInputStreamAdapter.  Could you host your source document somewhere 
> and I'll take a look at it.
> 
> Adrian.
> 
> Nobble wrote:
>> I have upgraded from fop 0.94 to 0.95. However, when I try to compile my
>> document I now get:
>>
>> Making portrait pages on A4 paper (210mmx297mm)
>> 05-Nov-2008 10:24:54 org.apache.fop.cli.Main startFOP
>> SEVERE: Exception
>> java.lang.NullPointerException
>>         at
>> org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217)
>>         at 
>> org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125)
>>         at org.apache.fop.cli.Main.startFOP(Main.java:166)
>>         at org.apache.fop.cli.Main.main(Main.java:197)
>>
>> ---------
>>
>> java.lang.NullPointerException
>>         at
>> org.apache.xmlgraphics.image.loader.util.ImageInputStreamAdapter.mark(ImageInputStreamAdapter.java:77)

>>
>>         at java.io.FilterInputStream.mark(FilterInputStream.java:175)
>>         at
>> net.sourceforge.jeuclid.xmlgraphics.PreloaderMathML.parseSource(PreloaderMathML.java:119)

>>
>>         at
>> net.sourceforge.jeuclid.xmlgraphics.PreloaderMathML.preloadImage(PreloaderMathML.java:76)

>>
>>         at
>> org.apache.xmlgraphics.image.loader.ImageManager.preloadImage(ImageManager.java:165)

>>
>>         at
>> org.apache.xmlgraphics.image.loader.cache.ImageCache.needImageInfo(ImageCache.java:96)

>>
>>         at
>> org.apache.xmlgraphics.image.loader.ImageManager.getImageInfo(ImageManager.java:112)

>>
>>         at
>> org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:79)
>>         at org.apache.fop.fo.FObj.processNode(FObj.java:126)
>>         at
>> org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:286)

>>
>>         at
>> org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:163)
>>         at
>> org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1072)

>>
>>         at 
>> org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
>> Source)
>>         at
>> org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
>> Source)
>>         at 
>> org.apache.xerces.xinclude.XIncludeHandler.emptyElement(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
>> org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)

>>
>>         at
>> org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:214)
>>         at 
>> org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125)
>>         at org.apache.fop.cli.Main.startFOP(Main.java:166)
>>         at org.apache.fop.cli.Main.main(Main.java:197)
>>
>> I this a bug or something I have done wrong? I am not sure how to go 
>> about
>> debugging it. Any help gratefully received. Thanks.
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message