SEVERE: Exception java.lang.NullPointerException

2010-02-15 Thread Mathieu Malaterre
Hi there,

  I am starring at the following fop execption and I am wondering how
I can track it down back to the original XML -culprit- line. Here it
is:

[warning] /usr/bin/fop: Unable to locate xml-apis in /usr/share/java
Feb 15, 2010 4:09:47 PM org.apache.fop.fo.flow.table.TableColumn bind
WARNING: table-layout="fixed" and column-width unspecified => falling
back to proportional-column-width(1)
Feb 15, 2010 4:09:47 PM org.apache.fop.fo.flow.table.TableColumn bind
WARNING: table-layout="fixed" and column-width unspecified => falling
back to proportional-column-width(1)
Feb 15, 2010 4:09:47 PM org.apache.fop.fo.flow.table.TableColumn bind
WARNING: table-layout="fixed" and column-width unspecified => falling
back to proportional-column-width(1)
Feb 15, 2010 4:09:47 PM org.apache.fop.fo.flow.table.TableColumn bind
WARNING: table-layout="fixed" and column-width unspecified => falling
back to proportional-column-width(1)
Feb 15, 2010 4:09:48 PM org.apache.fop.fo.flow.ExternalGraphic bind
SEVERE: Image not found: Protocols/Sketches/ProtocolReconstruction.png
Feb 15, 2010 4:09:48 PM org.apache.fop.fo.flow.ExternalGraphic bind
SEVERE: Image not found: Protocols/Sketches/ProtocolReconstructionGeneral.png
Feb 15, 2010 4:09:48 PM org.apache.fop.fo.flow.ExternalGraphic bind
SEVERE: Image not found: Protocols/Sketches/SimulationResultAnalysis.png
Feb 15, 2010 4:09:48 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'Symbol,normal,700' not found. Substituting with
'Symbol,normal,400'.
Feb 15, 2010 4:09:48 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with
'ZapfDingbats,normal,400'.
Feb 15, 2010 4:09:48 PM
org.apache.fop.layoutmgr.inline.LineLayoutManager$LineBreakingAlgorithm
updateData2
WARNING: Line 1 of a paragraph overflows the available area by more
than 50 points. (fo:block, location: 41/59)
Feb 15, 2010 4:09:48 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'ZapfDingbats,italic,400' not found. Substituting with
'ZapfDingbats,normal,400'.
Feb 15, 2010 4:09:48 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'ZapfDingbats,italic,700' not found. Substituting with
'any,italic,700'.
Feb 15, 2010 4:09:48 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.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$MainF

AW: SEVERE: Exception java.lang.NullPointerException

2010-02-15 Thread Georg Datterl
Hi Mathieu,

Your problem is, you go from xml to pdf in one step. The second step generates 
an error and the exact location of the error gets lost. You can locate the 
error by taking one step after the other. Take your XML file, apply 
transformation. The result is a fo file. This fo file can then generate a pdf 
(or an error, in your case), but fop will tell you the (more or less) exact 
location of the error.

Other possibility: Look somewhere after the second occurrence of an italic text 
in ZapfDingbats font.

Third possibility: check if hyphenation is installed correctly.

Regards,

Georg Datterl

-- Kontakt --

Georg Datterl

Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg

HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20

www.geneon.de

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH:www.irs-nbg.de
Willmy PrintMedia GmbH:www.willmy.de
Willmy Consult & Content GmbH: www.willmycc.de

-Ursprüngliche Nachricht-
Von: Mathieu Malaterre [mailto:mathieu.malate...@gmail.com]
Gesendet: Montag, 15. Februar 2010 16:09
An: fop-users@xmlgraphics.apache.org
Betreff: SEVERE: Exception java.lang.NullPointerException

Hi there,

  I am starring at the following fop execption and I am wondering how
I can track it down back to the original XML -culprit- line. Here it
is:

[warning] /usr/bin/fop: Unable to locate xml-apis in /usr/share/java
Feb 15, 2010 4:09:47 PM org.apache.fop.fo.flow.table.TableColumn bind
WARNING: table-layout="fixed" and column-width unspecified => falling
back to proportional-column-width(1)
Feb 15, 2010 4:09:47 PM org.apache.fop.fo.flow.table.TableColumn bind
WARNING: table-layout="fixed" and column-width unspecified => falling
back to proportional-column-width(1)
Feb 15, 2010 4:09:47 PM org.apache.fop.fo.flow.table.TableColumn bind
WARNING: table-layout="fixed" and column-width unspecified => falling
back to proportional-column-width(1)
Feb 15, 2010 4:09:47 PM org.apache.fop.fo.flow.table.TableColumn bind
WARNING: table-layout="fixed" and column-width unspecified => falling
back to proportional-column-width(1)
Feb 15, 2010 4:09:48 PM org.apache.fop.fo.flow.ExternalGraphic bind
SEVERE: Image not found: Protocols/Sketches/ProtocolReconstruction.png
Feb 15, 2010 4:09:48 PM org.apache.fop.fo.flow.ExternalGraphic bind
SEVERE: Image not found: Protocols/Sketches/ProtocolReconstructionGeneral.png
Feb 15, 2010 4:09:48 PM org.apache.fop.fo.flow.ExternalGraphic bind
SEVERE: Image not found: Protocols/Sketches/SimulationResultAnalysis.png
Feb 15, 2010 4:09:48 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'Symbol,normal,700' not found. Substituting with
'Symbol,normal,400'.
Feb 15, 2010 4:09:48 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with
'ZapfDingbats,normal,400'.
Feb 15, 2010 4:09:48 PM
org.apache.fop.layoutmgr.inline.LineLayoutManager$LineBreakingAlgorithm
updateData2
WARNING: Line 1 of a paragraph overflows the available area by more
than 50 points. (fo:block, location: 41/59)
Feb 15, 2010 4:09:48 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'ZapfDingbats,italic,400' not found. Substituting with
'ZapfDingbats,normal,400'.
Feb 15, 2010 4:09:48 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'ZapfDingbats,italic,700' not found. Substituting with
'any,italic,700'.
Feb 15, 2010 4:09:48 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(Block

Re: SEVERE: Exception java.lang.NullPointerException

2010-02-16 Thread Mathieu Malaterre
Georg,

  This is incorrect I use xsltproc as a first step for doing the
--xinclude step. So the output is exactly what I get running fop
directly on the fo file. I do not see any line number referenced. I
also used the -d option as indicated by the documentation.

$ /usr/bin/xsltproc --stringparam fop1.extensions 1 --stringparam
ulink.show 0 --xinclude -o
/home/mathieu/Projects/csm/Doc/bin/CoSMo/ReferenceGuide/article.fo
/usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl
/home/mathieu/Projects/csm/Doc/CoSMo/ReferenceGuide/article.xml
<...>


$ /usr/bin/fop -d -fo
/home/mathieu/Projects/csm/Doc/bin/CoSMo/ReferenceGuide/article.fo
-pdf /home/mathieu/Projects/csm/Doc/bin/CoSMo/ReferenceGuide/article.pdf
[warning] /usr/bin/fop: Unable to locate xml-apis in /usr/share/java
Feb 16, 2010 1:27:17 PM org.apache.fop.fo.flow.table.TableColumn bind
WARNING: table-layout="fixed" and column-width unspecified => falling
back to proportional-column-width(1)
Feb 16, 2010 1:27:17 PM org.apache.fop.fo.flow.table.TableColumn bind
WARNING: table-layout="fixed" and column-width unspecified => falling
back to proportional-column-width(1)
Feb 16, 2010 1:27:17 PM org.apache.fop.fo.flow.table.TableColumn bind
WARNING: table-layout="fixed" and column-width unspecified => falling
back to proportional-column-width(1)
Feb 16, 2010 1:27:17 PM org.apache.fop.fo.flow.table.TableColumn bind
WARNING: table-layout="fixed" and column-width unspecified => falling
back to proportional-column-width(1)
Feb 16, 2010 1:27:18 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'Symbol,normal,700' not found. Substituting with
'Symbol,normal,400'.
Feb 16, 2010 1:27:18 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with
'ZapfDingbats,normal,400'.
Feb 16, 2010 1:27:19 PM
org.apache.fop.layoutmgr.inline.LineLayoutManager$LineBreakingAlgorithm
updateData2
WARNING: Line 1 of a paragraph overflows the available area by more
than 50 points. (fo:block, location: 41/59)
Feb 16, 2010 1:27:19 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'ZapfDingbats,italic,400' not found. Substituting with
'ZapfDingbats,normal,400'.
Feb 16, 2010 1:27:19 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'ZapfDingbats,italic,700' not found. Substituting with
'any,italic,700'.
Feb 16, 2010 1:27:19 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.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

AW: SEVERE: Exception java.lang.NullPointerException

2010-02-16 Thread Georg Datterl
Hi Mathieu,

Can you shorten the fo file as much as possible and post it?

Regards,

Georg Datterl

-- Kontakt --

Georg Datterl

Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg

HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20

www.geneon.de

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH:www.irs-nbg.de
Willmy PrintMedia GmbH:www.willmy.de
Willmy Consult & Content GmbH: www.willmycc.de


-Ursprüngliche Nachricht-
Von: Mathieu Malaterre [mailto:mathieu.malate...@gmail.com]
Gesendet: Dienstag, 16. Februar 2010 13:26
An: fop-users@xmlgraphics.apache.org
Betreff: Re: SEVERE: Exception java.lang.NullPointerException

Georg,

  This is incorrect I use xsltproc as a first step for doing the
--xinclude step. So the output is exactly what I get running fop
directly on the fo file. I do not see any line number referenced. I
also used the -d option as indicated by the documentation.

$ /usr/bin/xsltproc --stringparam fop1.extensions 1 --stringparam
ulink.show 0 --xinclude -o
/home/mathieu/Projects/csm/Doc/bin/CoSMo/ReferenceGuide/article.fo
/usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl
/home/mathieu/Projects/csm/Doc/CoSMo/ReferenceGuide/article.xml
<...>


$ /usr/bin/fop -d -fo
/home/mathieu/Projects/csm/Doc/bin/CoSMo/ReferenceGuide/article.fo
-pdf /home/mathieu/Projects/csm/Doc/bin/CoSMo/ReferenceGuide/article.pdf
[warning] /usr/bin/fop: Unable to locate xml-apis in /usr/share/java
Feb 16, 2010 1:27:17 PM org.apache.fop.fo.flow.table.TableColumn bind
WARNING: table-layout="fixed" and column-width unspecified => falling
back to proportional-column-width(1)
Feb 16, 2010 1:27:17 PM org.apache.fop.fo.flow.table.TableColumn bind
WARNING: table-layout="fixed" and column-width unspecified => falling
back to proportional-column-width(1)
Feb 16, 2010 1:27:17 PM org.apache.fop.fo.flow.table.TableColumn bind
WARNING: table-layout="fixed" and column-width unspecified => falling
back to proportional-column-width(1)
Feb 16, 2010 1:27:17 PM org.apache.fop.fo.flow.table.TableColumn bind
WARNING: table-layout="fixed" and column-width unspecified => falling
back to proportional-column-width(1)
Feb 16, 2010 1:27:18 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'Symbol,normal,700' not found. Substituting with
'Symbol,normal,400'.
Feb 16, 2010 1:27:18 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with
'ZapfDingbats,normal,400'.
Feb 16, 2010 1:27:19 PM
org.apache.fop.layoutmgr.inline.LineLayoutManager$LineBreakingAlgorithm
updateData2
WARNING: Line 1 of a paragraph overflows the available area by more
than 50 points. (fo:block, location: 41/59)
Feb 16, 2010 1:27:19 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'ZapfDingbats,italic,400' not found. Substituting with
'ZapfDingbats,normal,400'.
Feb 16, 2010 1:27:19 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'ZapfDingbats,italic,700' not found. Substituting with
'any,italic,700'.
Feb 16, 2010 1:27:19 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.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294)
at 
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(B