Description
My XSL-FO file is very large and complex, but I can attach it if you want to reproduce the issue:
[fop] [ERROR] Anttask - Error rendering fo file: C:\Users\radu_coravu\Documents\userguide-private\DITA\temp\pdf\oxygen_dita_temp\topic.fo <org.apache.fop.apps.FOPException
[fop] java.lang.NullPointerException>org.apache.fop.apps.FOPException
[fop] java.lang.NullPointerException
[fop] at org.apache.fop.tools.anttasks.FOPTaskStarter.renderInputHandler(Fop.java:653)
[fop] at org.apache.fop.tools.anttasks.FOPTaskStarter.render(Fop.java:672)
[fop] at org.apache.fop.tools.anttasks.FOPTaskStarter.run(Fop.java:533)
[fop] at org.apache.fop.tools.anttasks.Fop.execute(Fop.java:367)
[fop] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[fop] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[fop] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[fop] at java.lang.reflect.Method.invoke(Unknown Source)
[fop] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[fop] at org.apache.tools.ant.Task.perform(Task.java:348)
[fop] at org.apache.tools.ant.Target.execute(Target.java:435)
[fop] at org.apache.tools.ant.Target.performTasks(Target.java:456)
[fop] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
[fop] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
[fop] at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
[fop] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440)
[fop] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
[fop] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[fop] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[fop] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[fop] at java.lang.reflect.Method.invoke(Unknown Source)
[fop] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[fop] at org.apache.tools.ant.Task.perform(Task.java:348)
[fop] at org.apache.tools.ant.Target.execute(Target.java:435)
[fop] at org.apache.tools.ant.Target.performTasks(Target.java:456)
[fop] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
[fop] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
[fop] at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
[fop] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440)
[fop] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
[fop] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[fop] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[fop] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[fop] at java.lang.reflect.Method.invoke(Unknown Source)
[fop] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[fop] at org.apache.tools.ant.Task.perform(Task.java:348)
[fop] at org.apache.tools.ant.Target.execute(Target.java:435)
[fop] at org.apache.tools.ant.Target.performTasks(Target.java:456)
[fop] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
[fop] at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
[fop] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[fop] at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
[fop] at org.apache.tools.ant.Main.runBuild(Main.java:851)
[fop] at org.apache.tools.ant.Main.startAnt(Main.java:235)
[fop] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
[fop] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
[fop] Caused by: org.apache.fop.apps.FOPException
[fop] java.lang.NullPointerException
[fop] at org.apache.fop.cli.InputHandlerFOP.transformTo(InputHandlerFOP.java:288)
[fop] at org.apache.fop.cli.InputHandlerFOP.renderTo(InputHandlerFOP.java:115)
[fop] at org.apache.fop.tools.anttasks.FOPTaskStarter.renderInputHandler(Fop.java:649)
[fop] ... 45 more
[fop] Caused by: java.lang.NullPointerException
[fop] at org.apache.fop.layoutmgr.list.ListItemLayoutManager.getCombinedKnuthElementsForListItem(ListItemLayoutManager.java:405)
[fop] at org.apache.fop.layoutmgr.list.ListItemLayoutManager.getNextKnuthElements(ListItemLayoutManager.java:326)
[fop] at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:239)
[fop] at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextChildElements(BlockStackingLayoutManager.java:498)
[fop] at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:289)
[fop] at org.apache.fop.layoutmgr.list.ListBlockLayoutManager.getNextKnuthElements(ListBlockLayoutManager.java:103)
[fop] at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:239)
[fop] at org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141)
[fop] at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:289)
[fop] at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113)
[fop] at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105)
[fop] at org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141)
[fop] at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:289)
[fop] at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113)
[fop] at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105)
[fop] at org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141)
[fop] at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:289)
[fop] at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113)
[fop] at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105)
[fop] at org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141)
[fop] at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:289)
[fop] at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113)
[fop] at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105)
[fop] at org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141)
[fop] at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:289)
[fop] at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113)
[fop] at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105)
[fop] at org.apache.fop.layoutmgr.FlowLayoutManager.getNextChildElements(FlowLayoutManager.java:223)
[fop] at org.apache.fop.layoutmgr.FlowLayoutManager.addChildElements(FlowLayoutManager.java:147)
[fop] at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:116)
[fop] at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:69)
[fop] at org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:252)
[fop] at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:643)
[fop] at org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:178)
[fop] at org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:158)
[fop] at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:384)
[fop] at org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:112)
[fop] at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:138)
[fop] at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)
[fop] at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:130)
[fop] at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:360)
[fop] at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:190)
[fop] at net.sf.saxon.event.ContentHandlerProxy.endElement(ContentHandlerProxy.java:440)
[fop] at net.sf.saxon.event.NamespaceReducer.endElement(NamespaceReducer.java:230)
[fop] at net.sf.saxon.event.ReceivingContentHandler.endElement(ReceivingContentHandler.java:436)
[fop] at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
[fop] at org.ditang.relaxng.defaults.RelaxNGDefaultsComponent.endElement(RelaxNGDefaultsComponent.java:701)
[fop] at org.apache.xerces.xinclude.XIncludeHandler.endElement(XIncludeHandler.java:1070)
[fop] at org.apache.xerces.impl.XMLNSDocumentScannerImplXerces.scanEndElement(XMLNSDocumentScannerImplXerces.java:673)
[fop] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:355)
[fop] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1647)
[fop] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:325)
[fop] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[fop] at org.ditang.relaxng.defaults.RelaxDefaultsParserConfiguration.parse(RelaxDefaultsParserConfiguration.java:150)
[fop] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[fop] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[fop] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
[fop] at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
[fop] at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:441)
[fop] at net.sf.saxon.event.Sender.send(Sender.java:146)
[fop] at net.sf.saxon.jaxp.IdentityTransformer.transform(IdentityTransformer.java:363)
[fop] at org.apache.fop.cli.InputHandlerFOP.transformTo(InputHandlerFOP.java:285)
[fop] ... 47 more
Attachments
Issue Links
- duplicates
-
FOP-2461 NullPointerException in ListItemLayoutManager since Temp_BasicSideFloat Merge
- Resolved