W3C home > Mailing lists > Public > www-xsl-fo@w3.org > July 2006

NullPointerException in PropertyManger.getTextDecoration

From: Luke Jones <ljones@unicam.state.ne.us>
Date: Fri, 21 Jul 2006 13:29:36 -0500
To: www-xsl-fo@w3.org
Message-Id: <1153506576.8780.10.camel@localhost.localdomain>

Hi,

I've spent the last few days looking for some sort of solution
pertaining to my NullPointerExceptions with the use of FOP.  It seems
that a lot of people have had them, yet no solutions posted have helped
in my situation so far.  The problem occurs when I try to convert my XML
to PDF using FOP.  I've tried converting my XML files to FO to see if
the problem was in Xalan and they convert to FO's fine, so the problem
has to be else where, and I can't track it down.  Any aid in this would
be much appreciated.

System:
Windows  XP Pro (Virtual Machine)
JRE 1.5.06
FOP 0.20.5

Stack Trace:
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[ERROR] null
org.apache.fop.apps.FOPException
        at
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:111)
        at org.apache.fop.apps.Fop.main(Fop.java:62)

---------

java.lang.NullPointerException
        at
org.apache.fop.fo.PropertyManager.getTextDecoration(PropertyManager.java:365)
        at org.apache.fop.fo.FObjMixed.<init>(FObjMixed.java:72)
        at org.apache.fop.fo.flow.Block.<init>(Block.java:115)
        at org.apache.fop.fo.flow.Block$Maker.make(Block.java:79)
        at
org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:352)
        at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
$FragmentContentDispatcher.dispatc
known Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
        at org.apache.fop.apps.Driver.render(Driver.java:498)
        at
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:106)
        at org.apache.fop.apps.Fop.main(Fop.java:62)

---------

java.lang.NullPointerException
        at
org.apache.fop.fo.PropertyManager.getTextDecoration(PropertyManager.java:365)
        at org.apache.fop.fo.FObjMixed.<init>(FObjMixed.java:72)
        at org.apache.fop.fo.flow.Block.<init>(Block.java:115)
        at org.apache.fop.fo.flow.Block$Maker.make(Block.java:79)
        at
org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:352)
        at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
$FragmentContentDispatcher.dispatc
known Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
        at org.apache.fop.apps.Driver.render(Driver.java:498)
        at
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:106)

Thanks,
Luke
Received on Saturday, 22 July 2006 15:24:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:13 GMT