DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41117>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41117

           Summary: ArrayIndexOutOfBoundsException if embed-url refers to
                    XML file
           Product: Fop
           Version: 1.0dev
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: minor
          Priority: P2
         Component: fonts
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: [EMAIL PROTECTED]


I accidentally created a font entry in my configuration file which had the 
embed-url referencing the metrics file. Very silly mistake I know, but it took 
me ages to find it because FOP just throws up a stack trace. A minor problem, 
but one worth noting I think. Anyway, heres the Stack trace:

java.lang.ArrayIndexOutOfBoundsException: 2381
        at org.apache.fop.fonts.truetype.FontFileReader.read
(FontFileReader.java
:141)
        at org.apache.fop.fonts.truetype.FontFileReader.readTTFByte
(FontFileRead
er.java:152)
        at org.apache.fop.fonts.truetype.TTFDirTabEntry.read
(TTFDirTabEntry.java
:41)
        at org.apache.fop.fonts.truetype.TTFFile.readDirTabs(TTFFile.java:736)
        at org.apache.fop.fonts.truetype.TTFSubSetFile.readFont
(TTFSubSetFile.ja
va:624)
        at org.apache.fop.pdf.PDFFactory.makeFontFile(PDFFactory.java:1228)
        at org.apache.fop.pdf.PDFFactory.makeFontDescriptor
(PDFFactory.java:1130
)
        at org.apache.fop.pdf.PDFFactory.makeFont(PDFFactory.java:1012)
        at org.apache.fop.pdf.PDFResources.addFonts(PDFResources.java:109)
        at org.apache.fop.render.pdf.PDFRenderer.stopRenderer
(PDFRenderer.java:4
82)
        at org.apache.fop.area.RenderPagesModel.endDocument
(RenderPagesModel.jav
a:241)
        at org.apache.fop.area.AreaTreeHandler.endDocument
(AreaTreeHandler.java:
426)
        at org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:171)
        at org.apache.xalan.transformer.TransformerIdentityImpl.endDocument
(Tran
sformerIdentityImpl.java:910)
        at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown 
Sourc
e)
        at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown 
Sourc
e)
        at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
        at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
        at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source)
        at 
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.
dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
(Un
known 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.xalan.transformer.TransformerIdentityImpl.transform
(Transf
ormerIdentityImpl.java:432)
        at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:165)
        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
        at org.apache.fop.cli.Main.startFOP(Main.java:160)
        at org.apache.fop.cli.Main.main(Main.java:191)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to