Frank Spies created FOP-2343: -------------------------------- Summary: Using incorrect inline image leads to strange exception Key: FOP-2343 URL: https://issues.apache.org/jira/browse/FOP-2343 Project: Fop Issue Type: Bug Reporter: Frank Spies
When using an "empty" inline image (like url('data:image/png;base64,')), an java.lang.reflect.UndeclaredThrowableException is thrown (instead of just ignoring the empty image or throwing a more meaningful exception) <?xml version="1.0" encoding="UTF-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fn="http://www.w3.org/2006/xpath-functions" > <fo:layout-master-set> <fo:simple-page-master margin-top="15mm" margin-right="4mm" margin-left="20mm" margin-bottom="10mm" page-height="297mm" page-width="210mm" master-name="pageMaster.ersteSeite"> <fo:region-body margin-top="60mm" margin-right="0mm" margin-left="0mm" margin-bottom="10mm" /> <fo:region-before region-name="regionBeforeErsteSeite" precedence="false" extent="60mm" /> <fo:region-after region-name="regionAfterOhneBarcode" precedence="false" extent="6mm" /> <fo:region-start extent="0mm" /> <fo:region-end extent="45mm" /> </fo:simple-page-master> <fo:page-sequence-master master-name="pageMaster.gsubBericht"> <fo:repeatable-page-master-alternatives> <fo:conditional-page-master-reference page-position="first" master-reference="pageMaster.ersteSeite" /> <fo:conditional-page-master-reference page-position="rest" master-reference="pageMaster.ersteSeite" /> </fo:repeatable-page-master-alternatives> </fo:page-sequence-master> </fo:layout-master-set> <fo:page-sequence master-reference="pageMaster.gsubBericht"> <fo:static-content flow-name="regionBeforeErsteSeite"> <fo:block /> </fo:static-content> <fo:static-content flow-name="regionAfterOhneBarcode"> <fo:block /> </fo:static-content> <fo:flow margin-left="5cm" margin-top="1em" text-align="justify" flow-name="xsl-region-body"> <fo:block> <fo:external-graphic content-width="scale-down-to-fit" content-height="scale-to-fit" height="20mm" width="35mm" src="url('data:image/png;base64,')" /> </fo:block> </fo:flow> </fo:page-sequence> </fo:root> -- This message was sent by Atlassian JIRA (v6.1.5#6160)