java.io.FileNotFoundException: Image not found: file:1_4986/3_R_Result_40/C_PerfFigSer_M.svg

Apache's JIRA Issue Tracker | MH | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Because of bug FOP-2177 we couldn't upgrade form FOP 1.0 to FOP 1.1. FOP 2.0 has solved this bug (tested with standalone FOP scripts). Now we would like to upgrade our Java code from FOP 1.0 to FOP 2.0. The Upgrading page (https://xmlgraphics.apache.org/fop/2.0/upgrading.html) says "You should encounter very few issues in upgrading from FOP 1.0, except as noted in the following: ...". The truth is completely different: starting by replacing fop.jar, our code gets dozens of compiler errors! Many methods are simply gone: FopFactory.newInstance() FoUserAgent.setBaseURL(String); FopFactory.getFontManager().setFontBaseURL(String) FopFactory.setURIResolver(URIResolver); etc. The javadocs from 1.1 to 2.0 simple changed - no deprecated methods, no hints how to replace old methods. The FOP 2.0 embedding page (https://xmlgraphics.apache.org/fop/2.0/embedding.html) just shows simple examples to start from the ground. I can't find any migration help how to replace old code. E.g. how can I set the font base? FopFactory.getFontManager().setFontBaseURL(String) is gone and I can't find any equivalent code for FOP 2.0! This is a major bug in FOP 2.0 as API changes are not documented to upgrade from FOP 1.x Java API to FOP 2.0! Now I just can search and try and experiment if I get our old code somehow running with all those undocumented API changes. Can you please state a migration documentation for all methods (method signatures) that don't exist anymore? We can't start coding all over again from scratch. Thank you very much!

    Apache's JIRA Issue Tracker | 2 years ago | MH
    java.io.FileNotFoundException: Image not found: file:1_4986/3_R_Result_40/C_PerfFigSer_M.svg

    Root Cause Analysis

    1. java.io.FileNotFoundException

      Image not found: file:1_4986/3_R_Result_40/C_PerfFigSer_M.svg

      at org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.needSource()
    2. Apache XML Graphics Commons
      ImageManager.getImageInfo
      1. org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.needSource(AbstractImageSessionContext.java:193)
      2. org.apache.xmlgraphics.image.loader.cache.ImageCache.needImageInfo(ImageCache.java:123)
      3. org.apache.xmlgraphics.image.loader.ImageManager.getImageInfo(ImageManager.java:123)
      3 frames
    3. Apache FOP
      AbstractFOPImageElementBridge.createImageGraphicsNode
      1. org.apache.fop.svg.AbstractFOPImageElementBridge.createImageGraphicsNode(AbstractFOPImageElementBridge.java:78)
      1 frame
    4. Batik bridge classes
      GVTBuilder.build
      1. org.apache.batik.bridge.SVGImageElementBridge.buildImageGraphicsNode(Unknown Source)
      2. org.apache.batik.bridge.SVGImageElementBridge.createGraphicsNode(Unknown Source)
      3. org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
      4. org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
      5. org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
      5 frames
    5. Apache FOP
      IFParser$Handler.endElement
      1. org.apache.fop.render.pdf.PDFImageHandlerSVG.handleImage(PDFImageHandlerSVG.java:103)
      2. org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:249)
      3. org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:205)
      4. org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingImageHandler(AbstractIFPainter.java:170)
      5. org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingDocument(AbstractIFPainter.java:319)
      6. org.apache.fop.render.pdf.PDFPainter.drawImage(PDFPainter.java:232)
      7. org.apache.fop.render.intermediate.IFParser$Handler$ImageHandler.endElement(IFParser.java:796)
      8. org.apache.fop.render.intermediate.IFParser$Handler.endElement(IFParser.java:413)
      8 frames
    6. Xalan Java
      TransformerIdentityImpl.endElement
      1. org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1102)
      1 frame
    7. Xerces2-j
      AbstractSAXParser.parse
      1. org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
      2. org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
      3. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      4. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      5. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      6. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      7. org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      8. org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      8 frames
    8. Xalan Java
      TransformerIdentityImpl.transform
      1. org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:485)
      1 frame
    9. Apache FOP
      IFConcatenator.appendDocument
      1. org.apache.fop.render.intermediate.IFParser.parse(IFParser.java:108)
      2. org.apache.fop.render.intermediate.util.IFConcatenator.appendDocument(IFConcatenator.java:106)
      2 frames