[ 
https://issues.apache.org/jira/browse/FOP-2262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13692492#comment-13692492
 ] 

Luis Bernardo commented on FOP-2262:
------------------------------------

an option is to disable complex scripts. you do that by passing -nocs to fop, 
or having the element <complex-scripts disabled="true" /> in the fop.xconf. the 
NPE only happens in some situations (otherwise we would have caught it before 
the release) so I don't think disabling complex scripts outright for the 
package (which you can do in the fop script) is necessary.
                
> fop-1.1 from the binary distribution crashes (NullPointerException) on a .fo 
> file on x86-64
> -------------------------------------------------------------------------------------------
>
>                 Key: FOP-2262
>                 URL: https://issues.apache.org/jira/browse/FOP-2262
>             Project: Fop
>          Issue Type: Bug
>    Affects Versions: 1.1
>         Environment: Mageia Linux Cauldron x86-64
>            Reporter: Shlomi Fish
>             Fix For: trunk
>
>         Attachments: case-for-drug-legalisation--hebrew-v3.fo
>
>
> When I run fop-1.1 from the binary distribution on the .fo file that I will 
> attach I'm getting this result:
> [SHELL]
> shlomif@telaviv1:~$ which fop
> /home/shlomif/Download/unpack/graphics/fop/bin/fop-1.1/fop
> shlomif@telaviv1:~$ fop -fo ./case-for-drug-legalisation--hebrew-v3.fo -pdf 
> foo.pdf
> Jun 06, 2013 12:58:34 PM org.apache.fop.events.LoggingEventListener 
> processEvent
> WARNING: Font "Symbol,normal,700" not found. Substituting with 
> "Symbol,normal,400".
> Jun 06, 2013 12:58:34 PM org.apache.fop.events.LoggingEventListener 
> processEvent
> WARNING: Font "ZapfDingbats,normal,700" not found. Substituting with 
> "ZapfDingbats,normal,400".
> Jun 06, 2013 12:58:34 PM org.apache.fop.events.LoggingEventListener 
> processEvent
> WARNING: Glyph "ב" (0x5d1, afii57665) not available in font "Helvetica-Bold".
> Jun 06, 2013 12:58:34 PM org.apache.fop.events.LoggingEventListener 
> processEvent
> WARNING: Glyph "ע" (0x5e2, afii57682) not available in font "Helvetica-Bold".
> Jun 06, 2013 12:58:34 PM org.apache.fop.events.LoggingEventListener 
> processEvent
> WARNING: Glyph "ד" (0x5d3, afii57667) not available in font "Helvetica-Bold".
> Jun 06, 2013 12:58:34 PM org.apache.fop.events.LoggingEventListener 
> processEvent
> WARNING: Glyph "ה" (0x5d4, afii57668) not available in font "Helvetica-Bold".
> Jun 06, 2013 12:58:34 PM org.apache.fop.events.LoggingEventListener 
> processEvent
> WARNING: Glyph "ל" (0x5dc, afii57676) not available in font "Helvetica-Bold".
> Jun 06, 2013 12:58:34 PM org.apache.fop.events.LoggingEventListener 
> processEvent
> WARNING: Glyph "ג" (0x5d2, afii57666) not available in font "Helvetica-Bold".
> Jun 06, 2013 12:58:34 PM org.apache.fop.events.LoggingEventListener 
> processEvent
> WARNING: Glyph "י" (0x5d9, afii57673) not available in font "Helvetica-Bold".
> Jun 06, 2013 12:58:34 PM org.apache.fop.events.LoggingEventListener 
> processEvent
> WARNING: Glyph "ז" (0x5d6, afii57670) not available in font "Helvetica-Bold".
> Jun 06, 2013 12:58:34 PM org.apache.fop.hyphenation.Hyphenator 
> getHyphenationTree
> SEVERE: Couldn't find hyphenation pattern for lang="he".
> Jun 06, 2013 12:58:34 PM org.apache.fop.events.LoggingEventListener 
> processEvent
> WARNING: Glyph "ה" (0x5d4, afii57668) not available in font "Times-Roman".
> Jun 06, 2013 12:58:34 PM org.apache.fop.events.LoggingEventListener 
> processEvent
> WARNING: Glyph "ק" (0x5e7, afii57687) not available in font "Times-Roman".
> Jun 06, 2013 12:58:34 PM org.apache.fop.events.LoggingEventListener 
> processEvent
> WARNING: Glyph "ד" (0x5d3, afii57667) not available in font "Times-Roman".
> Jun 06, 2013 12:58:34 PM org.apache.fop.events.LoggingEventListener 
> processEvent
> WARNING: Glyph "מ" (0x5de, afii57678) not available in font "Times-Roman".
> Jun 06, 2013 12:58:34 PM org.apache.fop.events.LoggingEventListener 
> processEvent
> WARNING: Glyph "ו" (0x5d5, afii57669) not available in font "Times-Roman".
> Jun 06, 2013 12:58:34 PM org.apache.fop.events.LoggingEventListener 
> processEvent
> WARNING: Glyph "ס" (0x5e1, afii57681) not available in font "Times-Roman".
> Jun 06, 2013 12:58:34 PM org.apache.fop.events.LoggingEventListener 
> processEvent
> WARNING: Glyph "ר" (0x5e8, afii57688) not available in font "Times-Roman".
> Jun 06, 2013 12:58:34 PM org.apache.fop.events.LoggingEventListener 
> processEvent
> WARNING: Glyph "י" (0x5d9, afii57673) not available in font "Times-Roman".
> Jun 06, 2013 12:58:34 PM org.apache.fop.events.LoggingEventListener 
> processEvent
> WARNING: Glyph "ש" (0x5e9, afii57689) not available in font "Times-Bold".
> Jun 06, 2013 12:58:34 PM org.apache.fop.events.LoggingEventListener 
> processEvent
> WARNING: Glyph "ח" (0x5d7, afii57671) not available in font "Times-Bold".
> Jun 06, 2013 12:58:34 PM org.apache.fop.events.LoggingEventListener 
> processEvent
> WARNING: Glyph "י" (0x5d9, afii57673) not available in font "Times-Bold".
> Jun 06, 2013 12:58:34 PM org.apache.fop.events.LoggingEventListener 
> processEvent
> WARNING: Glyph "ב" (0x5d1, afii57665) not available in font "Times-Bold".
> Jun 06, 2013 12:58:34 PM org.apache.fop.events.LoggingEventListener 
> processEvent
> WARNING: Glyph "ם" (0x5dd, afii57677) not available in font "Times-Bold".
> Jun 06, 2013 12:58:35 PM org.apache.fop.events.LoggingEventListener 
> processEvent
> WARNING: Glyph "ת" (0x5ea, afii57690) not available in font "Times-Bold".
> Jun 06, 2013 12:58:35 PM org.apache.fop.events.LoggingEventListener 
> processEvent
> WARNING: Glyph "ר" (0x5e8, afii57688) not available in font "Times-Bold".
> Jun 06, 2013 12:58:35 PM org.apache.fop.events.LoggingEventListener 
> processEvent
> WARNING: Glyph "ו" (0x5d5, afii57669) not available in font "Times-Bold".
> Jun 06, 2013 12:58:35 PM org.apache.fop.cli.Main startFOP
> SEVERE: Exception
> org.apache.fop.apps.FOPException
> java.lang.NullPointerException
>         at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:303)
>         at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
>         at org.apache.fop.cli.Main.startFOP(Main.java:177)
>         at org.apache.fop.cli.Main.main(Main.java:208)
> Caused by: java.lang.NullPointerException
>         at 
> org.apache.fop.area.inline.FilledArea.applyVariationFactor(FilledArea.java:127)
>         at 
> org.apache.fop.area.inline.InlineParent.applyVariationFactor(InlineParent.java:106)
>         at 
> org.apache.fop.area.inline.InlineParent.applyVariationFactor(InlineParent.java:106)
>         at org.apache.fop.area.LineArea.finish(LineArea.java:261)
>         at org.apache.fop.area.LineArea.handleIPDVariation(LineArea.java:239)
>         at 
> org.apache.fop.area.inline.InlineArea.notifyIPDVariation(InlineArea.java:267)
>         at 
> org.apache.fop.area.inline.InlineArea.handleIPDVariation(InlineArea.java:255)
>         at 
> org.apache.fop.area.inline.InlineArea.notifyIPDVariation(InlineArea.java:265)
>         at 
> org.apache.fop.area.inline.InlineArea.handleIPDVariation(InlineArea.java:255)
>         at 
> org.apache.fop.area.inline.InlineArea.notifyIPDVariation(InlineArea.java:265)
>         at 
> org.apache.fop.area.inline.InlineArea.handleIPDVariation(InlineArea.java:255)
>         at 
> org.apache.fop.area.inline.InlineArea.notifyIPDVariation(InlineArea.java:265)
>         at 
> org.apache.fop.area.inline.InlineArea.handleIPDVariation(InlineArea.java:255)
>         at 
> org.apache.fop.area.inline.UnresolvedPageNumber.resolveIDRef(UnresolvedPageNumber.java:122)
>         at 
> org.apache.fop.area.PageViewport.resolveIDRef(PageViewport.java:341)
>         at org.apache.fop.area.IDTracker.tryIDResolution(IDTracker.java:151)
>         at 
> org.apache.fop.area.IDTracker.associateIDWithPageViewport(IDTracker.java:77)
>         at 
> org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.addIDToPage(AbstractPageSequenceLayoutManager.java:156)
>         at 
> org.apache.fop.layoutmgr.AbstractLayoutManager.addId(AbstractLayoutManager.java:394)
>         at 
> org.apache.fop.layoutmgr.BlockLayoutManager.addAreas(BlockLayoutManager.java:313)
>         at 
> org.apache.fop.layoutmgr.AreaAdditionUtil.addAreas(AreaAdditionUtil.java:113)
>         at 
> org.apache.fop.layoutmgr.FlowLayoutManager.addAreas(FlowLayoutManager.java:364)
>         at org.apache.fop.layoutmgr.PageBreaker.addAreas(PageBreaker.java:285)
>         at 
> org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:607)
>         at 
> org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:481)
>         at org.apache.fop.layoutmgr.PageBreaker.doPhase3(PageBreaker.java:313)
>         at 
> org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:436)
>         at org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:90)
>         at 
> org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:113)
>         at 
> org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)
>         at 
> org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:128)
>         at 
> org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:347)
>         at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:181)
>         at 
> org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1101)
>         at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
> Source)
>         at org.apache.xerces.xinclude.XIncludeHandler.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.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
> Source)
>         at 
> org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
>         at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300)
>         ... 3 more
> ---------
> java.lang.NullPointerException
>         at 
> org.apache.fop.area.inline.FilledArea.applyVariationFactor(FilledArea.java:127)
>         at 
> org.apache.fop.area.inline.InlineParent.applyVariationFactor(InlineParent.java:106)
>         at 
> org.apache.fop.area.inline.InlineParent.applyVariationFactor(InlineParent.java:106)
>         at org.apache.fop.area.LineArea.finish(LineArea.java:261)
>         at org.apache.fop.area.LineArea.handleIPDVariation(LineArea.java:239)
>         at 
> org.apache.fop.area.inline.InlineArea.notifyIPDVariation(InlineArea.java:267)
>         at 
> org.apache.fop.area.inline.InlineArea.handleIPDVariation(InlineArea.java:255)
>         at 
> org.apache.fop.area.inline.InlineArea.notifyIPDVariation(InlineArea.java:265)
>         at 
> org.apache.fop.area.inline.InlineArea.handleIPDVariation(InlineArea.java:255)
>         at 
> org.apache.fop.area.inline.InlineArea.notifyIPDVariation(InlineArea.java:265)
>         at 
> org.apache.fop.area.inline.InlineArea.handleIPDVariation(InlineArea.java:255)
>         at 
> org.apache.fop.area.inline.InlineArea.notifyIPDVariation(InlineArea.java:265)
>         at 
> org.apache.fop.area.inline.InlineArea.handleIPDVariation(InlineArea.java:255)
>         at 
> org.apache.fop.area.inline.UnresolvedPageNumber.resolveIDRef(UnresolvedPageNumber.java:122)
>         at 
> org.apache.fop.area.PageViewport.resolveIDRef(PageViewport.java:341)
>         at org.apache.fop.area.IDTracker.tryIDResolution(IDTracker.java:151)
>         at 
> org.apache.fop.area.IDTracker.associateIDWithPageViewport(IDTracker.java:77)
>         at 
> org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.addIDToPage(AbstractPageSequenceLayoutManager.java:156)
>         at 
> org.apache.fop.layoutmgr.AbstractLayoutManager.addId(AbstractLayoutManager.java:394)
>         at 
> org.apache.fop.layoutmgr.BlockLayoutManager.addAreas(BlockLayoutManager.java:313)
>         at 
> org.apache.fop.layoutmgr.AreaAdditionUtil.addAreas(AreaAdditionUtil.java:113)
>         at 
> org.apache.fop.layoutmgr.FlowLayoutManager.addAreas(FlowLayoutManager.java:364)
>         at org.apache.fop.layoutmgr.PageBreaker.addAreas(PageBreaker.java:285)
>         at 
> org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:607)
>         at 
> org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:481)
>         at org.apache.fop.layoutmgr.PageBreaker.doPhase3(PageBreaker.java:313)
>         at 
> org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:436)
>         at org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:90)
>         at 
> org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:113)
>         at 
> org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)
>         at 
> org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:128)
>         at 
> org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:347)
>         at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:181)
>         at 
> org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1101)
>         at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
> Source)
>         at org.apache.xerces.xinclude.XIncludeHandler.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.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
> Source)
>         at 
> org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
>         at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300)
>         at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
>         at org.apache.fop.cli.Main.startFOP(Main.java:177)
>         at org.apache.fop.cli.Main.main(Main.java:208)
> shlomif@telaviv1:~$ 
> [/SHELL]
> I will attach the file and it was generated from 
> https://bitbucket.org/shlomif/shlomi-fish-homepage/src/fd41f29403cc8290c11d776073a42f04bbffd57e/lib/docbook/5/xml/case-for-drug-legalisation--hebrew-v3.xml?at=default
>  which is a DocBook 5 document. It worked fine in fop-1.0.
> Regards,
> -- Shlomi Fish

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to