[jira] [Created] (FOP-2970) Exception when loading the config

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FOP-2970) Exception when loading the config

Simon Steiner (Jira)
zouari created FOP-2970:
---------------------------

             Summary: Exception when loading the config
                 Key: FOP-2970
                 URL: https://issues.apache.org/jira/browse/FOP-2970
             Project: FOP
          Issue Type: Bug
            Reporter: zouari


Starting with FOP 2.4 the avalon framework is not used anymore.
Instead, a Configuration implementation has been added to the FOP: org.apache.fop.configuration.DefaultConfiguration
this new implementation uses the library "xercesImpl-2.11.0.jar" (not thread-safe ).

In multithreaded applications, I have the following exception:
{code:java}
Caused by: java.lang.NullPointerException
    at org.apache.xerces.dom.ParentNode.nodeListItem(Unknown Source)
    at org.apache.xerces.dom.ParentNode.item(Unknown Source)
    at org.apache.fop.configuration.DefaultConfiguration.getChild(DefaultConfiguration.java:113)
    at org.apache.fop.apps.FOUserAgent.getRendererConfiguration(FOUserAgent.java:696)
    at org.apache.fop.apps.FOUserAgent.getRendererConfig(FOUserAgent.java:673)
    at org.apache.fop.render.PrintRendererConfigurator.getRendererConfig(PrintRendererConfigurator.java:91)
    at org.apache.fop.render.PrintRendererConfigurator.getCustomFontCollection(PrintRendererConfigurator.java:147)
    at org.apache.fop.render.PrintRendererConfigurator.setupFontInfo(PrintRendererConfigurator.java:127)
    at org.apache.fop.render.intermediate.IFUtil.setupFonts(IFUtil.java:170)
    at org.apache.fop.render.intermediate.IFRenderer.setupFontInfo(IFRenderer.java:187)
    at org.apache.fop.area.RenderPagesModel.<init>(RenderPagesModel.java:79)
    at org.apache.fop.area.AreaTreeHandler.setupModel(AreaTreeHandler.java:150)
    at org.apache.fop.area.AreaTreeHandler.<init>(AreaTreeHandler.java:113)
    at org.apache.fop.area.AreaTreeHandler.<init>(AreaTreeHandler.java:132)
    at org.apache.fop.layoutmgr.PageSequenceLayoutManager.<init>(PageSequenceLayoutManager.java:136)
    at org.apache.fop.layoutmgr.LayoutManagerMapping.makePageSequenceLayoutManager(LayoutManagerMapping.java:205)
    at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:290)
    at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:158)
    at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:362)
    at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:190)
    at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1102)
    at org.apache.xerces.parsers.AbstractSAXParser.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.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:485)
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)