[ https://issues.apache.org/jira/browse/FOP-3066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17612513#comment-17612513 ]
Simon Steiner commented on FOP-3066: ------------------------------------ Can we see hyph file? > StreamCorruptedException with FOP 2.7 and FOP-Hyph 2.2.0 > -------------------------------------------------------- > > Key: FOP-3066 > URL: https://issues.apache.org/jira/browse/FOP-3066 > Project: FOP > Issue Type: Bug > Affects Versions: 2.7 > Reporter: tntim96 > Priority: Major > > When upgrading from FOP 2.6 to 2.7 (and using > [FOP-Hyph|http://offo.sourceforge.net/] 2.2.0) > We get the error: > {noformat} > ERROR org.apache.fop.hyphenation.Hyphenator - I/O error while loading > precompiled hyphenation pattern file > 2java.io.StreamCorruptedException: invalid stream header: 3C21444F > 3 at > java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:866) > 4 at java.io.ObjectInputStream.<init>(ObjectInputStream.java:358) > 5 at > org.apache.fop.hyphenation.Hyphenator.readHyphenationTree(Hyphenator.java:142) > 6 at > org.apache.fop.hyphenation.Hyphenator.getUserHyphenationTree(Hyphenator.java:194) > 7 at > org.apache.fop.hyphenation.Hyphenator.getHyphenationTree(Hyphenator.java:83) > 8 at org.apache.fop.hyphenation.Hyphenator.hyphenate(Hyphenator.java:251) > 9 at > org.apache.fop.layoutmgr.inline.LineLayoutManager.getHyphenContext(LineLayoutManager.java:1431) > 10 at > org.apache.fop.layoutmgr.inline.LineLayoutManager.findHyphenationPoints(LineLayoutManager.java:1332) > 11 at > org.apache.fop.layoutmgr.inline.LineLayoutManager.findOptimalBreakingPoints(LineLayoutManager.java:864) > 12 at > org.apache.fop.layoutmgr.inline.LineLayoutManager.createLineBreaks(LineLayoutManager.java:823) > 13 at > org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:640) > 14 at > org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141) > 15 at > org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:292) > 16 at > org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113) > 17 at > org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105) > 18 at > org.apache.fop.layoutmgr.table.TableCellLayoutManager.getNextKnuthElements(TableCellLayoutManager.java:191) > 19 at > org.apache.fop.layoutmgr.table.RowGroupLayoutManager.createElementsForRowGroup(RowGroupLayoutManager.java:120) > 20 at > org.apache.fop.layoutmgr.table.RowGroupLayoutManager.getNextKnuthElements(RowGroupLayoutManager.java:63) > 21 at > org.apache.fop.layoutmgr.table.TableContentLayoutManager.getKnuthElementsForRowIterator(TableContentLayoutManager.java:284) > 22 at > org.apache.fop.layoutmgr.table.TableContentLayoutManager.getNextKnuthElements(TableContentLayoutManager.java:212) > 23 at > org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElements(TableLayoutManager.java:277) > 24 at > org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141) > 25 at > org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:292) > 26 at > org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113) > 27 at > org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105) > 28 at > org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141) > 29 at > org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:292) > 30 at > org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113) > 31 at > org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105) > 32 at > org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141) > 33 at > org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:292) > 34 at > org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113) > 35 at > org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105) > 36 at > org.apache.fop.layoutmgr.table.TableCellLayoutManager.getNextKnuthElements(TableCellLayoutManager.java:191) > 37 at > org.apache.fop.layoutmgr.table.RowGroupLayoutManager.createElementsForRowGroup(RowGroupLayoutManager.java:120) > 38 at > org.apache.fop.layoutmgr.table.RowGroupLayoutManager.getNextKnuthElements(RowGroupLayoutManager.java:63) > 39 at > org.apache.fop.layoutmgr.table.TableContentLayoutManager.getKnuthElementsForRowIterator(TableContentLayoutManager.java:270) > 40 at > org.apache.fop.layoutmgr.table.TableContentLayoutManager.getNextKnuthElements(TableContentLayoutManager.java:212) > 41 at > org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElements(TableLayoutManager.java:277) > 42 at > org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141) > 43 at > org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:292) > 44 at > org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113) > 45 at > org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105) > 46 at > org.apache.fop.layoutmgr.FlowLayoutManager.getNextChildElements(FlowLayoutManager.java:223) > 47 at > org.apache.fop.layoutmgr.FlowLayoutManager.addChildElements(FlowLayoutManager.java:148) > 48 at > org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:116) > 49 at > org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:69) > 50 at > org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:252) > 51 at > org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:675) > 52 at > org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:179) > 53 at > org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:159) > 54 at > org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:385) > 55 at org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:113) > 56 at > org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:143) > 57 at > org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267) > 58 at > org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:140) > 59 at > org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:390) > 60 at org.apache.fop.fo.FOTreeBuilder$3.run(FOTreeBuilder.java:207) > 61 at org.apache.fop.fo.FOTreeBuilder$3.run(FOTreeBuilder.java:204) > 62 at java.security.AccessController.doPrivileged(Native Method) > 63 at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:203) > 64 at > net.sf.saxon.event.ContentHandlerProxy.endElement(ContentHandlerProxy.java:412) > 65 at net.sf.saxon.event.ProxyReceiver.endElement(ProxyReceiver.java:185) > 66 at > net.sf.saxon.event.SequenceNormalizer.endElement(SequenceNormalizer.java:230) > 67 at > net.sf.saxon.event.NamespaceReducer.endElement(NamespaceReducer.java:235) > 68 at > net.sf.saxon.event.ComplexContentOutputter.endElement(ComplexContentOutputter.java:559) > 69 at > net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:355) > 70 at > net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:299) > 71 at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735) > 72 at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:132) > 73 at > net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:352) > 74 at > net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:299) > 75 at > net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:352) > 76 at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:532) > 77 at > net.sf.saxon.trans.rules.TextOnlyCopyRuleSet.process(TextOnlyCopyRuleSet.java:71) > 78 at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:495) > 79 at > net.sf.saxon.trans.XsltController.applyTemplates(XsltController.java:747) > 80 at > net.sf.saxon.s9api.AbstractXsltTransformer.applyTemplatesToSource(AbstractXsltTransformer.java:347) > 81 at > net.sf.saxon.s9api.XsltTransformer.transform(XsltTransformer.java:349) > 82 at net.sf.saxon.jaxp.TransformerImpl.transform(TransformerImpl.java:71) > 83{noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010)