xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pascal Sancho <pascal.san...@takoma.fr>
Subject Re: java.lang.ArrayIndexOutOfBoundsException 0.20
Date Thu, 25 Mar 2010 09:17:37 GMT
Hi Ismail,

FOP 0.20.x is very old  now, but IIRC, the metrics tool provided with
this version could give buggy metrics files with some fonts. You should
try to generate metrics files using a recent FOP release (in this way,
you don't need to upgrade FOP 0.2x to 0.9x, just run it side by side).
See [1] for HowTo.
These new metrics files should work even with FOP 0.20.x.

[1] http://xmlgraphics.apache.org/fop/0.95/fonts.html#truetype-metrics

--
Pascal

Ismail a écrit :
> Please find the file for reference
>
> Thanks and Regards
> Ismail Khan
>
>   
>> Hi All,
>>
>> This is Ismail Khan, thanks for all the help provided.
>>
>> I again rasing the ArrayIndexOutOfBoundsException issue. Currently we are not
>> in a position to migrate to 0.95.
>>
>> FOP 0.20
>> JDK 1.4
>>
>> Attaching all files for reference
>>
>> Any help will be highly appriciated.
>>
>> Thanks in advance
>> javax.xml.transform.TransformerException:
>> java.lang.ArrayIndexOutOfBoundsException: 6233
>> 	at
>> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Transfo
>> rmerImpl.java:670)
>> 	at
>> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Transfo
>> rmerImpl.java:300)
>> 	at
>> com.polaris.cash.lms.batchprocessing.JPBatchReports.JPEODBatchReports.convertT
>> oPDF(JPEODBatchReports.java:260)
>> 	at
>> com.polaris.cash.lms.batchprocessing.JPBatchReports.JPEODBatchReports.generate
>> Report(JPEODBatchReports.java:118)
>> 	at
>> com.polaris.cash.lms.batchprocessing.JPBatchReports.JPCustCommEOD.handleReport
>> Generation(JPCustCommEOD.java:279)
>> 	at
>> com.polaris.cash.lms.batchprocessing.JPBatchReports.JPCustCommEOD.handleCustom
>> erCommunications(JPCustCommEOD.java:772)
>> 	at
>> com.polaris.cash.lms.batchprocessing.JPBatchReports.JPCustCommEOD.executeRepor
>> ts(JPCustCommEOD.java:594)
>> 	at
>> com.polaris.cash.lms.batchprocessing.JPBatchReports.JPCustCommEOD.process(JPCu
>> stCommEOD.java:150)
>> 	at
>> com.polaris.cash.lms.batchprocessing.hostsystemeodbod.ExecuteJob.executeJavaEO
>> D(ExecuteJob.java:225)
>> 	at
>> com.polaris.cash.lms.batchprocessing.hostsystemeodbod.ExecuteJob.run(ExecuteJo
>> b.java:87)
>> Caused by: java.lang.ArrayIndexOutOfBoundsException: 6233
>> 	at org.apache.fop.fonts.TTFSubSetFile.scanGlyphs(TTFSubSetFile.java:592)
>> 	at org.apache.fop.fonts.TTFSubSetFile.readFont(TTFSubSetFile.java:660)
>> 	at
>> org.apache.fop.render.pdf.fonts.MultiByteFont.getFontFile(MultiByteFont.java:2
>> 41)
>> 	at org.apache.fop.render.pdf.fonts.LazyFont.getFontFile(LazyFont.java:218)
>> 	at org.apache.fop.pdf.PDFDocument.makeFontDescriptor(PDFDocument.java:974)
>> 	at org.apache.fop.pdf.PDFDocument.makeFont(PDFDocument.java:875)
>> 	at org.apache.fop.render.pdf.FontSetup.addToResources(FontSetup.java:250)
>> 	at org.apache.fop.render.pdf.PDFRenderer.stopRenderer(PDFRenderer.java:249)
>> 	at org.apache.fop.apps.StreamRenderer.stopRenderer(StreamRenderer.java:204)
>> 	at org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:246)
>> 	at
>> com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.endDocument(ToXMLSA
>> XHandler.java:182)
>> 	at MYS_MY1_MY120100105000018.transform()
>> 	at
>> com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform(Abs
>> tractTranslet.java:594)
>> 	at
>> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Transfo
>> rmerImpl.java:663)
>> 	... 9 more
>> ---------
>> java.lang.ArrayIndexOutOfBoundsException: 6233
>> 	at org.apache.fop.fonts.TTFSubSetFile.scanGlyphs(TTFSubSetFile.java:592)
>> 	at org.apache.fop.fonts.TTFSubSetFile.readFont(TTFSubSetFile.java:660)
>> 	at
>> org.apache.fop.render.pdf.fonts.MultiByteFont.getFontFile(MultiByteFont.java:2
>> 41)
>> 	at org.apache.fop.render.pdf.fonts.LazyFont.getFontFile(LazyFont.java:218)
>> 	at org.apache.fop.pdf.PDFDocument.makeFontDescriptor(PDFDocument.java:974)
>> 	at org.apache.fop.pdf.PDFDocument.makeFont(PDFDocument.java:875)
>> 	at org.apache.fop.render.pdf.FontSetup.addToResources(FontSetup.java:250)
>> 	at org.apache.fop.render.pdf.PDFRenderer.stopRenderer(PDFRenderer.java:249)
>> 	at org.apache.fop.apps.StreamRenderer.stopRenderer(StreamRenderer.java:204)
>> 	at org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:246)
>> 	at
>> com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.endDocument(ToXMLSA
>> XHandler.java:182)
>> 	at MYS_MY1_MY120100105000018.transform()
>> 	at
>> com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform(Abs
>> tractTranslet.java:594)
>> 	at
>> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Transfo
>> rmerImpl.java:663)
>> 	at
>> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Transfo
>> rmerImpl.java:300)
>> 	at
>> com.polaris.cash.lms.batchprocessing.JPBatchReports.JPEODBatchReports.convertT
>> oPDF(JPEODBatchReports.java:260)
>> 	at
>> com.polaris.cash.lms.batchprocessing.JPBatchReports.JPEODBatchReports.generate
>> Report(JPEODBatchReports.java:118)
>> 	at
>> com.polaris.cash.lms.batchprocessing.JPBatchReports.JPCustCommEOD.handleReport
>> Generation(JPCustCommEOD.java:279)
>> 	at
>> com.polaris.cash.lms.batchprocessing.JPBatchReports.JPCustCommEOD.handleCustom
>> erCommunications(JPCustCommEOD.java:772)
>> 	at
>> com.polaris.cash.lms.batchprocessing.JPBatchReports.JPCustCommEOD.executeRepor
>> ts(JPCustCommEOD.java:594)
>> 	at
>> com.polaris.cash.lms.batchprocessing.JPBatchReports.JPCustCommEOD.process(JPCu
>> stCommEOD.java:150)
>> 	at
>> com.polaris.cash.lms.batchprocessing.hostsystemeodbod.ExecuteJob.executeJavaEO
>> D(ExecuteJob.java:225)
>> 	at
>> com.polaris.cash.lms.batchprocessing.hostsystemeodbod.ExecuteJob.run(ExecuteJo
>> b.java:87)


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message