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

2010-02-17 Thread Mathieu Malaterre
On Wed, Feb 17, 2010 at 12:51 AM, Daniel Leidert daniel.leid...@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 

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

2010-02-16 Thread Mathieu Malaterre
Package: fop
Version: 1:0.95.dfsg-7
Severity: important


fop currently segfault on a very simple docbook file:

consider the following test.xml file:

?xml version='1.0' encoding='UTF-8'?
!DOCTYPE article PUBLIC -//OASIS//DTD DocBook XML V4.5//EN
http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd; []
article
section
 titletitle/title
 para
   anchor id=myidx xreflabel=mylabel/
   /para
/section
/article

Now run:

$ xsltproc --stringparam fop1.extensions 1 --stringparam ulink.show 0
--xinclude -o out.fo
/usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl ./test.xml

$ fop -fo out.fo -pdf out.pdf

You should get:


[warning] /usr/bin/fop: Unable to locate xml-apis in /usr/share/java
Feb 16, 2010 2:17:27 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'Symbol,normal,700' not found. Substituting with 
'Symbol,normal,400'.
Feb 16, 2010 2:17:27 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with 
'ZapfDingbats,normal,400'.
Feb 16, 2010 2:17:27 PM 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.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.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1102)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)
at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source)
at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(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:485)
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

-- System Information:
Debian Release: 5.0.4
  APT prefers stable
  APT policy: (500, 'stable'), (200, 'testing'), (100, 'unstable')
Architecture: 

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

2010-02-16 Thread Mathieu Malaterre
I can reproduce it also in my sid chroot system:


# xmlto pdf test.xml
Making portrait pages on a4 paper (210mmx297mm)
PassiveTeX is needed for this format, but it is not installed. Please install
the passivetex package.
gotlib# xmlto --with-fop pdf test.xml
Making portrait pages on a4 paper (210mmx297mm)
[warning] /usr/bin/fop: Unable to locate servlet-api in /usr/share/java
Feb 16, 2010 1:26:01 PM
org.apache.fop.fo.properties.CommonBorderPaddingBackground init
SEVERE: Background image not available: images/draft.png
Feb 16, 2010 1:26:01 PM
org.apache.fop.fo.properties.CommonBorderPaddingBackground init
SEVERE: Background image not available: images/draft.png
Feb 16, 2010 1:26:01 PM
org.apache.fop.fo.properties.CommonBorderPaddingBackground init
SEVERE: Background image not available: images/draft.png
Feb 16, 2010 1:26:01 PM
org.apache.fop.fo.properties.CommonBorderPaddingBackground init
SEVERE: Background image not available: images/draft.png
Feb 16, 2010 1:26:01 PM
org.apache.fop.fo.properties.CommonBorderPaddingBackground init
SEVERE: Background image not available: images/draft.png
Feb 16, 2010 1:26:01 PM
org.apache.fop.fo.properties.CommonBorderPaddingBackground init
SEVERE: Background image not available: images/draft.png
Feb 16, 2010 1:26:01 PM
org.apache.fop.fo.properties.CommonBorderPaddingBackground init
SEVERE: Background image not available: images/draft.png
Feb 16, 2010 1:26:01 PM
org.apache.fop.fo.properties.CommonBorderPaddingBackground init
SEVERE: Background image not available: images/draft.png
Feb 16, 2010 1:26:01 PM
org.apache.fop.fo.properties.CommonBorderPaddingBackground init
SEVERE: Background image not available: images/draft.png
Feb 16, 2010 1:26:01 PM
org.apache.fop.fo.properties.CommonBorderPaddingBackground init
SEVERE: Background image not available: images/draft.png
Feb 16, 2010 1:26:01 PM
org.apache.fop.fo.properties.CommonBorderPaddingBackground init
SEVERE: Background image not available: images/draft.png
Feb 16, 2010 1:26:01 PM
org.apache.fop.fo.properties.CommonBorderPaddingBackground init
SEVERE: Background image not available: images/draft.png
Feb 16, 2010 1:26:01 PM
org.apache.fop.fo.properties.CommonBorderPaddingBackground init
SEVERE: Background image not available: images/draft.png
Feb 16, 2010 1:26:01 PM
org.apache.fop.fo.properties.CommonBorderPaddingBackground init
SEVERE: Background image not available: images/draft.png
Feb 16, 2010 1:26:01 PM
org.apache.fop.fo.properties.CommonBorderPaddingBackground init
SEVERE: Background image not available: images/draft.png
Feb 16, 2010 1:26:01 PM
org.apache.fop.fo.properties.CommonBorderPaddingBackground init
SEVERE: Background image not available: images/draft.png
Feb 16, 2010 1:26:01 PM
org.apache.fop.fo.properties.CommonBorderPaddingBackground init
SEVERE: Background image not available: images/draft.png
Feb 16, 2010 1:26:01 PM
org.apache.fop.fo.properties.CommonBorderPaddingBackground init
SEVERE: Background image not available: images/draft.png
Feb 16, 2010 1:26:01 PM
org.apache.fop.fo.properties.CommonBorderPaddingBackground init
SEVERE: Background image not available: images/draft.png
Feb 16, 2010 1:26:02 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'Symbol,normal,700' not found. Substituting with
'Symbol,normal,400'.
Feb 16, 2010 1:26:02 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with
'ZapfDingbats,normal,400'.
Feb 16, 2010 1:26:02 PM org.apache.fop.hyphenation.Hyphenator getHyphenationTree
SEVERE: Couldn't find hyphenation pattern en
Feb 16, 2010 1:26:02 PM 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.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 

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

2010-02-16 Thread Daniel Leidert
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?

Regards, Daniel




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1266364260.4845.10.ca...@haktar.wgdd.de