You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by jeya venkatesh M <m....@gmail.com> on 2015/07/23 21:39:22 UTC
NPE while generating multi language pdf with FOP 1.1
Hello,
We are migrating from FOP 1.0 to 1.1. I get NPE while generating a multi
language PDF. It usually worked in 1.0.
I verified that this is associated with issue FOP 2415 is fixed as part
2.0. As of now, we are not in position to upgrade to 2.0. Is there any
option to get it fixed in patch?
Below is the stack trace.
Regards,
Venkatesh
---------------------------------------------------------------------------------------------------------------------------------------------
Jul 22, 2015 3:15:17 PM org.apache.fop.hyphenation.Hyphenator
getHyphenationTree
SEVERE: Couldn't find hyphenation pattern for lang="en".
Jul 22, 2015 3:15:18 PM org.apache.fop.fo.properties.CommonHyphenation
getHyphChar
WARNING: Substituted specified hyphenation character (0x2d) with 0x20
because the font doesn't have the specified hyphenation character:
Microsoft JhengHei,normal,400
Jul 22, 2015 3:15:18 PM org.apache.fop.fo.properties.CommonHyphenation
getHyphChar
WARNING: Substituted specified hyphenation character (0x2d) with 0x20
because the font doesn't have the specified hyphenation character:
Microsoft JhengHei,normal,400
Jul 22, 2015 3:15:18 PM org.apache.fop.fo.properties.CommonHyphenation
getHyphChar
WARNING: Substituted specified hyphenation character (0x2d) with 0x20
because the font doesn't have the specified hyphenation character:
Microsoft JhengHei,normal,400
Jul 22, 2015 3:15:18 PM org.apache.fop.fo.properties.CommonHyphenation
getHyphChar
WARNING: Substituted specified hyphenation character (0x2d) with 0x20
because the font doesn't have the specified hyphenation character:
Gulim,normal,400
Jul 22, 2015 3:15:18 PM org.apache.fop.fo.properties.CommonHyphenation
getHyphChar
WARNING: Substituted specified hyphenation character (0x2d) with 0x20
because the font doesn't have the specified hyphenation character:
Gulim,normal,400
Jul 22, 2015 3:15:18 PM org.apache.fop.fo.properties.CommonHyphenation
getHyphChar
WARNING: Substituted specified hyphenation character (0x2d) with 0x20
because the font doesn't have the specified hyphenation character:
Gulim,normal,400
Jul 22, 2015 3:15:18 PM org.apache.fop.fo.properties.CommonHyphenation
getHyphChar
WARNING: Substituted specified hyphenation character (0x2d) with 0x20
because the font doesn't have the specified hyphenation character: Shonar
Bangla,normal,400
Exception running transformationjava.lang.NullPointerException
at
org.apache.fop.complexscripts.scripts.IndicScriptProcessor$Syllabizer.makeSyllabizer(IndicScriptProcessor.java:430)
at
org.apache.fop.complexscripts.scripts.IndicScriptProcessor$Syllabizer.getSyllabizer(IndicScriptProcessor.java:417)
at
org.apache.fop.complexscripts.scripts.IndicScriptProcessor.syllabize(IndicScriptProcessor.java:226)
at
org.apache.fop.complexscripts.scripts.IndicScriptProcessor.substitute(IndicScriptProcessor.java:186)
at
org.apache.fop.complexscripts.scripts.ScriptProcessor.substitute(ScriptProcessor.java:96)
at
org.apache.fop.complexscripts.fonts.GlyphSubstitutionTable.substitute(GlyphSubstitutionTable.java:102)
at
org.apache.fop.fonts.MultiByteFont.performSubstitution(MultiByteFont.java:412)
at org.apache.fop.fonts.LazyFont.performSubstitution(LazyFont.java:414)
at org.apache.fop.fonts.Font.performSubstitution(Font.java:410)
at
org.apache.fop.layoutmgr.inline.TextLayoutManager.processWordMapping(TextLayoutManager.java:1006)
at
org.apache.fop.layoutmgr.inline.TextLayoutManager.processWord(TextLayoutManager.java:1177)
at
org.apache.fop.layoutmgr.inline.TextLayoutManager.getNextKnuthElements(TextLayoutManager.java:910)
at
org.apache.fop.layoutmgr.inline.InlineLayoutManager.getNextKnuthElements(InlineLayoutManager.java:329)
at
org.apache.fop.layoutmgr.inline.LineLayoutManager.collectInlineKnuthElements(LineLayoutManager.java:689)
at
org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:622)
at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141)
at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:288)
at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113)
at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105)
at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextChildElements(BlockStackingLayoutManager.java:497)
at
org.apache.fop.layoutmgr.BlockContainerLayoutManager.getNextKnuthElements(BlockContainerLayoutManager.java:256)
at
org.apache.fop.layoutmgr.BlockContainerLayoutManager.getNextKnuthElements(BlockContainerLayoutManager.java:186)
at
org.apache.fop.layoutmgr.table.TableCellLayoutManager.getNextKnuthElements(TableCellLayoutManager.java:153)
at
org.apache.fop.layoutmgr.table.RowGroupLayoutManager.createElementsForRowGroup(RowGroupLayoutManager.java:120)
at
org.apache.fop.layoutmgr.table.RowGroupLayoutManager.getNextKnuthElements(RowGroupLayoutManager.java:63)
at
org.apache.fop.layoutmgr.table.TableContentLayoutManager.getKnuthElementsForRowIterator(TableContentLayoutManager.java:242)
at
org.apache.fop.layoutmgr.table.TableContentLayoutManager.getNextKnuthElements(TableContentLayoutManager.java:181)
at
org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElements(TableLayoutManager.java:253)
at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141)
at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:288)
at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113)
at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105)
at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141)
at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:288)
at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113)
at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105)
at
org.apache.fop.layoutmgr.FlowLayoutManager.getNextChildElements(FlowLayoutManager.java:221)
at
org.apache.fop.layoutmgr.FlowLayoutManager.addChildElements(FlowLayoutManager.java:145)
at
org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:114)
at
org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:67)
at
org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:222)
at
org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:673)
at
org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:155)
at
org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:137)
at
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:387)
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
net.sf.saxon.event.ContentHandlerProxy.endElement(ContentHandlerProxy.java:402)
at net.sf.saxon.event.NamespaceReducer.endElement(NamespaceReducer.java:215)
at
net.sf.saxon.event.ReceivingContentHandler.endElement(ReceivingContentHandler.java:432)
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.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:428)
at net.sf.saxon.event.Sender.send(Sender.java:170)
at net.sf.saxon.IdentityTransformer.transform(IdentityTransformer.java:46)
at TestFOP.main(TestFOP.java:165)
Re: NPE while generating multi language pdf with FOP 1.1
Posted by Glenn Adams <gl...@skynav.com>.
No. But you are welcome to patch and build a local copy yourself.
On Thu, Jul 23, 2015 at 1:39 PM, jeya venkatesh M <m.jeyavenkatesh@gmail.com
> wrote:
> Hello,
>
> We are migrating from FOP 1.0 to 1.1. I get NPE while generating a multi
> language PDF. It usually worked in 1.0.
>
> I verified that this is associated with issue FOP 2415 is fixed as part
> 2.0. As of now, we are not in position to upgrade to 2.0. Is there any
> option to get it fixed in patch?
>
> Below is the stack trace.
>
> Regards,
> Venkatesh
>
> ---------------------------------------------------------------------------------------------------------------------------------------------
> Jul 22, 2015 3:15:17 PM org.apache.fop.hyphenation.Hyphenator
> getHyphenationTree
> SEVERE: Couldn't find hyphenation pattern for lang="en".
> Jul 22, 2015 3:15:18 PM org.apache.fop.fo.properties.CommonHyphenation
> getHyphChar
> WARNING: Substituted specified hyphenation character (0x2d) with 0x20
> because the font doesn't have the specified hyphenation character:
> Microsoft JhengHei,normal,400
> Jul 22, 2015 3:15:18 PM org.apache.fop.fo.properties.CommonHyphenation
> getHyphChar
> WARNING: Substituted specified hyphenation character (0x2d) with 0x20
> because the font doesn't have the specified hyphenation character:
> Microsoft JhengHei,normal,400
> Jul 22, 2015 3:15:18 PM org.apache.fop.fo.properties.CommonHyphenation
> getHyphChar
> WARNING: Substituted specified hyphenation character (0x2d) with 0x20
> because the font doesn't have the specified hyphenation character:
> Microsoft JhengHei,normal,400
> Jul 22, 2015 3:15:18 PM org.apache.fop.fo.properties.CommonHyphenation
> getHyphChar
> WARNING: Substituted specified hyphenation character (0x2d) with 0x20
> because the font doesn't have the specified hyphenation character:
> Gulim,normal,400
> Jul 22, 2015 3:15:18 PM org.apache.fop.fo.properties.CommonHyphenation
> getHyphChar
> WARNING: Substituted specified hyphenation character (0x2d) with 0x20
> because the font doesn't have the specified hyphenation character:
> Gulim,normal,400
> Jul 22, 2015 3:15:18 PM org.apache.fop.fo.properties.CommonHyphenation
> getHyphChar
> WARNING: Substituted specified hyphenation character (0x2d) with 0x20
> because the font doesn't have the specified hyphenation character:
> Gulim,normal,400
> Jul 22, 2015 3:15:18 PM org.apache.fop.fo.properties.CommonHyphenation
> getHyphChar
> WARNING: Substituted specified hyphenation character (0x2d) with 0x20
> because the font doesn't have the specified hyphenation character: Shonar
> Bangla,normal,400
> Exception running transformationjava.lang.NullPointerException
> at
> org.apache.fop.complexscripts.scripts.IndicScriptProcessor$Syllabizer.makeSyllabizer(IndicScriptProcessor.java:430)
> at
> org.apache.fop.complexscripts.scripts.IndicScriptProcessor$Syllabizer.getSyllabizer(IndicScriptProcessor.java:417)
> at
> org.apache.fop.complexscripts.scripts.IndicScriptProcessor.syllabize(IndicScriptProcessor.java:226)
>
> at
> org.apache.fop.complexscripts.scripts.IndicScriptProcessor.substitute(IndicScriptProcessor.java:186)
> at
> org.apache.fop.complexscripts.scripts.ScriptProcessor.substitute(ScriptProcessor.java:96)
> at
> org.apache.fop.complexscripts.fonts.GlyphSubstitutionTable.substitute(GlyphSubstitutionTable.java:102)
> at
> org.apache.fop.fonts.MultiByteFont.performSubstitution(MultiByteFont.java:412)
> at org.apache.fop.fonts.LazyFont.performSubstitution(LazyFont.java:414)
> at org.apache.fop.fonts.Font.performSubstitution(Font.java:410)
> at
> org.apache.fop.layoutmgr.inline.TextLayoutManager.processWordMapping(TextLayoutManager.java:1006)
> at
> org.apache.fop.layoutmgr.inline.TextLayoutManager.processWord(TextLayoutManager.java:1177)
> at
> org.apache.fop.layoutmgr.inline.TextLayoutManager.getNextKnuthElements(TextLayoutManager.java:910)
> at
> org.apache.fop.layoutmgr.inline.InlineLayoutManager.getNextKnuthElements(InlineLayoutManager.java:329)
> at
> org.apache.fop.layoutmgr.inline.LineLayoutManager.collectInlineKnuthElements(LineLayoutManager.java:689)
> at
> org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:622)
> at
> org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141)
> at
> org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:288)
> at
> org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113)
> at
> org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105)
> at
> org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextChildElements(BlockStackingLayoutManager.java:497)
> at
> org.apache.fop.layoutmgr.BlockContainerLayoutManager.getNextKnuthElements(BlockContainerLayoutManager.java:256)
> at
> org.apache.fop.layoutmgr.BlockContainerLayoutManager.getNextKnuthElements(BlockContainerLayoutManager.java:186)
> at
> org.apache.fop.layoutmgr.table.TableCellLayoutManager.getNextKnuthElements(TableCellLayoutManager.java:153)
> at
> org.apache.fop.layoutmgr.table.RowGroupLayoutManager.createElementsForRowGroup(RowGroupLayoutManager.java:120)
> at
> org.apache.fop.layoutmgr.table.RowGroupLayoutManager.getNextKnuthElements(RowGroupLayoutManager.java:63)
> at
> org.apache.fop.layoutmgr.table.TableContentLayoutManager.getKnuthElementsForRowIterator(TableContentLayoutManager.java:242)
> at
> org.apache.fop.layoutmgr.table.TableContentLayoutManager.getNextKnuthElements(TableContentLayoutManager.java:181)
> at
> org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElements(TableLayoutManager.java:253)
> at
> org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141)
> at
> org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:288)
> at
> org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113)
> at
> org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105)
> at
> org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141)
> at
> org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:288)
> at
> org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113)
> at
> org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105)
> at
> org.apache.fop.layoutmgr.FlowLayoutManager.getNextChildElements(FlowLayoutManager.java:221)
> at
> org.apache.fop.layoutmgr.FlowLayoutManager.addChildElements(FlowLayoutManager.java:145)
> at
> org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:114)
> at
> org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:67)
> at
> org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:222)
> at
> org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:673)
> at
> org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:155)
> at
> org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:137)
> at
> org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:387)
> 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
> net.sf.saxon.event.ContentHandlerProxy.endElement(ContentHandlerProxy.java:402)
> at
> net.sf.saxon.event.NamespaceReducer.endElement(NamespaceReducer.java:215)
> at
> net.sf.saxon.event.ReceivingContentHandler.endElement(ReceivingContentHandler.java:432)
> 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.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
> at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:428)
> at net.sf.saxon.event.Sender.send(Sender.java:170)
> at net.sf.saxon.IdentityTransformer.transform(IdentityTransformer.java:46)
> at TestFOP.main(TestFOP.java:165)
>
>