Hi All,<br />
<br />
IllegalArgumentException if image path contains % <br />
<br />
Windows 7, JDK .16, Birt2.2.1.1<br />
<br />
My report design has images<br />
Ex:<br />
<image id="1178"><br />
...<br />
<property name="source">file</property><br />
<expression name="uri">params["Level4"]</expression><br />
</image><br />
<br />
If I specify a path for the param that contains %<br />
C:javaPackagestemptest%a_33_0.png<br />
<br />
I get <br />
java.lang.IllegalArgumentException<br />
at sun.net.www.ParseUtil.decode(ParseUtil.java:189)<br />
at sun.net.www.protocol.file.Handler.openConnection(Handler.java:65)<br />
at sun.net.www.protocol.file.Handler.openConnection(Handler.java:55)<br />
at java.net.URL.openConnection(URL.java:945)<br />
at java.net.URL.openStream(URL.java:1009)<br />
at com.lowagie.text.Image.getInstance(Image.java:391)<br />
at org.eclipse.birt.report.engine.emitter.pdf.PDFPage.drawImage(PDFPage.java:382)<br />
at<br />
org.eclipse.birt.report.engine.layout.emitter.AbstractPage.drawImage(AbstractPage.java:79)<br />
at<br />
org.eclipse.birt.report.engine.layout.emitter.PageDeviceRender.drawImage(PageDeviceRender.java:635)<br />
<br />
Looks like this is a jdk bug. <br />
<a class='bbc_url' href='
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6522294'>Bug ID: 6522294 If URI scheme is file and URL is not UTF-8 encoded, the ParseUtil.decode throws an Exception</a><br />
<br />
Do you have a workaround in the newer Birt version? What is your suggested workaround for Birt2.2.1.1?<br />
<br />
Thanks,<br />
Bindu