Null Pointer / hyphenations issues with FOP
Posted: Wed Jul 14, 2010 10:20 am
I tried outputting a sample Docbook format XML file from Open Office, and using oXygen 11.2 to generate a PDF. Initially I encountered a Java exception "couldn't find hyphenation pattern en". Research on here showed I should add the fop-hyph.jar file to the .\lib directory, which I did. But then the error message changed slightly to give a Null pointer Java exception.
The sample Docbook 4 file works fine with or without fop-hyph.jar, so I'm a little confused as to what's going on!
Code: Select all
SystemID: C:\Temp\ProductIntroductionGuide.xml
Engine name: Apache FOP
Severity: error
Description: The process 'Apache FOP' ended with code: 1.
The error was:
Transformer is net.sf.saxon.IdentityTransformer@10bbf9e
ERROR - Exception
java.lang.NullPointerException
at org.apache.fop.cli.InputHandlerFOP.transformTo(Unknown Source)
at org.apache.fop.cli.InputHandlerFOP.renderTo(Unknown Source)
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)
.
.
.
The sample Docbook 4 file works fine with or without fop-hyph.jar, so I'm a little confused as to what's going on!