Bug#570095: java.lang.NullPointerException: at org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350)

Mathieu Malaterre mathieu.malaterre at gmail.com
Wed Feb 17 08:22:52 UTC 2010


On Wed, Feb 17, 2010 at 12:51 AM, Daniel Leidert <daniel.leidert at wgdd.de> wrote:
> Am Dienstag, den 16.02.2010, 14:21 +0100 schrieb Mathieu Malaterre:
>
> [..]
>> [warning] /usr/bin/fop: Unable to locate xml-apis in /usr/share/java
>                                           ^^^^^^^^
>
> Missing (a dependency on) libjaxp1.3-java?

Ah ! Thanks for the info, it does not change anything to the output
but now my testing env is equivalent to my sid-chroot.

How about this one:

# fop -fo out.fo -pdf out.pdf
[warning] /usr/bin/fop: Unable to locate servlet-api in /usr/share/java


In one shot within a sid-chroot system:

# fop -xml test.xml -xsl
/usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl  -pdf out.pdf
[warning] /usr/bin/fop: Unable to locate servlet-api in /usr/share/java
Feb 17, 2010 8:20:09 AM org.apache.fop.cli.InputHandler warning
WARNING: Making portrait pages on USletter paper (8.5inx11in)
Feb 17, 2010 8:20:09 AM
org.apache.fop.fo.properties.CommonBorderPaddingBackground <init>
SEVERE: Background image not available: images/draft.png
Feb 17, 2010 8:20:09 AM
org.apache.fop.fo.properties.CommonBorderPaddingBackground <init>
SEVERE: Background image not available: images/draft.png
Feb 17, 2010 8:20:09 AM
org.apache.fop.fo.properties.CommonBorderPaddingBackground <init>
SEVERE: Background image not available: images/draft.png
Feb 17, 2010 8:20:09 AM
org.apache.fop.fo.properties.CommonBorderPaddingBackground <init>
SEVERE: Background image not available: images/draft.png
Feb 17, 2010 8:20:09 AM
org.apache.fop.fo.properties.CommonBorderPaddingBackground <init>
SEVERE: Background image not available: images/draft.png
Feb 17, 2010 8:20:09 AM
org.apache.fop.fo.properties.CommonBorderPaddingBackground <init>
SEVERE: Background image not available: images/draft.png
Feb 17, 2010 8:20:09 AM
org.apache.fop.fo.properties.CommonBorderPaddingBackground <init>
SEVERE: Background image not available: images/draft.png
Feb 17, 2010 8:20:09 AM
org.apache.fop.fo.properties.CommonBorderPaddingBackground <init>
SEVERE: Background image not available: images/draft.png
Feb 17, 2010 8:20:09 AM
org.apache.fop.fo.properties.CommonBorderPaddingBackground <init>
SEVERE: Background image not available: images/draft.png
Feb 17, 2010 8:20:09 AM
org.apache.fop.fo.properties.CommonBorderPaddingBackground <init>
SEVERE: Background image not available: images/draft.png
Feb 17, 2010 8:20:09 AM
org.apache.fop.fo.properties.CommonBorderPaddingBackground <init>
SEVERE: Background image not available: images/draft.png
Feb 17, 2010 8:20:09 AM
org.apache.fop.fo.properties.CommonBorderPaddingBackground <init>
SEVERE: Background image not available: images/draft.png
Feb 17, 2010 8:20:09 AM
org.apache.fop.fo.properties.CommonBorderPaddingBackground <init>
SEVERE: Background image not available: images/draft.png
Feb 17, 2010 8:20:09 AM
org.apache.fop.fo.properties.CommonBorderPaddingBackground <init>
SEVERE: Background image not available: images/draft.png
Feb 17, 2010 8:20:09 AM
org.apache.fop.fo.properties.CommonBorderPaddingBackground <init>
SEVERE: Background image not available: images/draft.png
Feb 17, 2010 8:20:09 AM
org.apache.fop.fo.properties.CommonBorderPaddingBackground <init>
SEVERE: Background image not available: images/draft.png
Feb 17, 2010 8:20:09 AM
org.apache.fop.fo.properties.CommonBorderPaddingBackground <init>
SEVERE: Background image not available: images/draft.png
Feb 17, 2010 8:20:09 AM
org.apache.fop.fo.properties.CommonBorderPaddingBackground <init>
SEVERE: Background image not available: images/draft.png
Feb 17, 2010 8:20:09 AM
org.apache.fop.fo.properties.CommonBorderPaddingBackground <init>
SEVERE: Background image not available: images/draft.png
Feb 17, 2010 8:20:10 AM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'Symbol,normal,700' not found. Substituting with
'Symbol,normal,400'.
Feb 17, 2010 8:20:10 AM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with
'ZapfDingbats,normal,400'.
Feb 17, 2010 8:20:10 AM org.apache.fop.hyphenation.Hyphenator getHyphenationTree
SEVERE: Couldn't find hyphenation pattern en
Feb 17, 2010 8:20:10 AM org.apache.fop.fo.FOTreeBuilder fatalError
SEVERE: javax.xml.transform.TransformerException: java.lang.NullPointerException
Feb 17, 2010 8:20:10 AM org.apache.fop.cli.Main startFOP
SEVERE: Exception
javax.xml.transform.TransformerException: 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)

---------

; SystemID: file:/usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl;
Line#: 311; Column#: 54
javax.xml.transform.TransformerException: java.lang.NullPointerException
	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2405)
	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
	at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
	at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178)
	at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
	at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178)
	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
	at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:162)
	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
	at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:141)
	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
	at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:141)
	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
	at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:141)
	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
	at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2270)
	at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1356)
	at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:709)
	at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1273)
	at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1251)
	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)
Caused by: java.lang.NullPointerException
	at org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350)
	at org.apache.fop.layoutmgr.inline.LineLayoutManager.findHyphenationPoints(LineLayoutManager.java:1480)
	at org.apache.fop.layoutmgr.inline.LineLayoutManager.findOptimalBreakingPoints(LineLayoutManager.java:950)
	at org.apache.fop.layoutmgr.inline.LineLayoutManager.createLineBreaks(LineLayoutManager.java:917)
	at org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:607)
	at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294)
	at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116)
	at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294)
	at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116)
	at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:107)
	at org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:145)
	at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:552)
	at org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:137)
	at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:302)
	at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:264)
	at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:106)
	at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:234)
	at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:123)
	at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:340)
	at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:169)
	at org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:263)
	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1401)
	at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
	at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178)
	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
	... 23 more
---------
java.lang.NullPointerException
	at org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350)
	at org.apache.fop.layoutmgr.inline.LineLayoutManager.findHyphenationPoints(LineLayoutManager.java:1480)
	at org.apache.fop.layoutmgr.inline.LineLayoutManager.findOptimalBreakingPoints(LineLayoutManager.java:950)
	at org.apache.fop.layoutmgr.inline.LineLayoutManager.createLineBreaks(LineLayoutManager.java:917)
	at org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:607)
	at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294)
	at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116)
	at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294)
	at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116)
	at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:107)
	at org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:145)
	at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:552)
	at org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:137)
	at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:302)
	at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:264)
	at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:106)
	at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:234)
	at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:123)
	at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:340)
	at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:169)
	at org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:263)
	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1401)
	at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
	at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178)
	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
	at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
	at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178)
	at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
	at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178)
	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
	at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:162)
	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
	at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:141)
	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
	at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:141)
	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
	at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:141)
	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
	at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2270)
	at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1356)
	at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:709)
	at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1273)
	at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1251)
	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)


Thanks !
-- 
Mathieu





More information about the pkg-java-maintainers mailing list