Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 352281

Summary: Birt 2.6.2 html rendering exception
Product: z_Archived Reporter: Wael Mashal <wmashal>
Component: BIRTAssignee: Birt-ReportEngine-inbox <Birt-ReportEngine-inbox>
Status: CLOSED DUPLICATE QA Contact: Xiaoying Gu <bluesoldier>
Severity: normal    
Priority: P3 CC: bluesoldier, wmashal
Version: 2.6.2   
Target Milestone: 3.7.0   
Hardware: All   
OS: All   
Whiteboard:

Description Wael Mashal CLA 2011-07-17 03:12:30 EDT
Build Identifier: 20100917-0705

Hi

we upgrade BIRT to the version 2.6.2 and now there is an exception always happen  when we render the report to html , we debug the emitter we found that the issue happen when the engine read the  png header icon see the exception below, please advice :


ERROR [07 13 2011 11:13:10.615 IDT] - Throwable.printStackTrace - >>>>>>>>SOut: java.io.IOException: Invalid byte 1 of 1-byte UTF-8 sequence.
ERROR [07 13 2011 11:13:10.615 IDT] - Throwable.printStackTrace - >>>>>>>>SOut:         at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown Source)
ERROR [07 13 2011 11:13:10.615 IDT] - Throwable.printStackTrace - >>>>>>>>SOut:         at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown Source)
ERROR [07 13 2011 11:13:10.621 IDT] - Throwable.printStackTrace - >>>>>>>>SOut:         at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown Source)
ERROR [07 13 2011 11:13:10.621 IDT] - Throwable.printStackTrace - >>>>>>>>SOut:         at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown Source)
ERROR [07 13 2011 11:13:10.621 IDT] - Throwable.printStackTrace - >>>>>>>>SOut:         at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source)
ERROR [07 13 2011 11:13:10.621 IDT] - Throwable.printStackTrace - >>>>>>>>SOut:         at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source)
ERROR [07 13 2011 11:13:10.621 IDT] - Throwable.printStackTrace - >>>>>>>>SOut:         at org.eclipse.birt.report.engine.util.SvgFile.transSvgToArray(SvgFile.java:78)
ERROR [07 13 2011 11:13:10.622 IDT] - Throwable.printStackTrace - >>>>>>>>SOut:         at org.eclipse.birt.report.engine.util.SvgFile.transSvgToArray(SvgFile.java:58)
ERROR [07 13 2011 11:13:10.622 IDT] - Throwable.printStackTrace - >>>>>>>>SOut:         at org.eclipse.birt.report.engine.emitter.html.HTMLReportEmitter.handleStyleImage(HTMLReportEmitter.java:3437)
ERROR [07 13 2011 11:13:10.622 IDT] - Throwable.printStackTrace - >>>>>>>>SOut:         at org.eclipse.birt.report.engine.emitter.html.AttributeBuilder.buildBackground(AttributeBuilder.java:114)
ERROR [07 13 2011 11:13:10.622 IDT] - Throwable.printStackTrace - >>>>>>>>SOut:         at org.eclipse.birt.report.engine.emitter.html.HTMLVisionOptimize.buildStyle(HTMLVisionOptimize.java:106)
ERROR [07 13 2011 11:13:10.622 IDT] - Throwable.printStackTrace - >>>>>>>>SOut:         at org.eclipse.birt.report.engine.emitter.html.HTMLReportEmitter.outputCSSStyles(HTMLReportEmitter.java:920)
ERROR [07 13 2011 11:13:10.622 IDT] - Throwable.printStackTrace - >>>>>>>>SOut:         at org.eclipse.birt.report.engine.emitter.html.HTMLReportEmitter.start(HTMLReportEmitter.java:659)
ERROR [07 13 2011 11:13:10.622 IDT] - Throwable.printStackTrace - >>>>>>>>SOut:         at org.eclipse.birt.report.engine.api.impl.RenderTask$PageRangeRender.render(RenderTask.java:585)
ERROR [07 13 2011 11:13:10.622 IDT] - Throwable.printStackTrace - >>>>>>>>SOut:         at org.eclipse.birt.report.engine.api.impl.RenderTask.render(RenderTask.java:284)
ERROR [07 13 2011 11:13:10.622 IDT] - Throwable.printStackTrace - >>>>>>>>SOut:         at com.sheer.metromission.plugin.report.http.ViewReportHttpHandler.render(ViewReportHttpHandler.java:316)
ERROR [07 13 2011 11:13:10.622 IDT] - Throwable.printStackTrace - >>>>>>>>SOut:         at com.sheer.metromission.plugin.report.http.ViewReportHttpHandler.handle(ViewReportHttpHandler.java:165)
ERROR [07 13 2011 11:13:10.622 IDT] - Throwable.printStackTrace - >>>>>>>>SOut:         at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:65)
ERROR [07 13 2011 11:13:10.623 IDT] - Throwable.printStackTrace - >>>>>>>>SOut:         at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:54)
ERROR [07 13 2011 11:13:10.623 IDT] - Throwable.printStackTrace - >>>>>>>>SOut:         at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:68)
ERROR [07 13 2011 11:13:10.623 IDT] - Throwable.printStackTrace - >>>>>>>>SOut:         at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:555)
ERROR [07 13 2011 11:13:10.623 IDT] - Throwable.printStackTrace - >>>>>>>>SOut:         at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:65)
ERROR [07 13 2011 11:13:10.623 IDT] - Throwable.printStackTrace - >>>>>>>>SOut:         at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:525)
ERROR [07 13 2011 11:13:10.623 IDT] - Throwable.printStackTrace - >>>>>>>>SOut:         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
ERROR [07 13 2011 11:13:10.623 IDT] - Throwable.printStackTrace - >>>>>>>>SOut:         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
ERROR [07 13 2011 11:13:10.623 IDT] - Throwable.printStackTrace - >>>>>>>>SOut:         at java.lang.Thread.run(Thread.java:619)
[GC 881640K->273252K(2995200K), 0.0116020 secs] Wed Jul 13 11:13:19 2011


Reproducible: Always

Steps to Reproduce:
1.add a header icon (embedded or linked)
2. render the report to html
3. see the log you can see the exception
Comment 1 Xiaoying Gu CLA 2011-07-17 22:37:36 EDT

*** This bug has been marked as a duplicate of bug 334410 ***