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

Bug 333551

Summary: BirtViewer crashes when SVG is turned on
Product: z_Archived Reporter: Ingo <Ingo.leiking>
Component: BIRTAssignee: Birt-ReportViewer <Birt-ReportViewer-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: bluesoldier
Version: unspecified   
Target Milestone: 3.7.0   
Hardware: PC   
OS: other   
Whiteboard: Obsolete
Attachments:
Description Flags
screenshot of 2.6.1 web viewer none

Description Ingo CLA 2011-01-05 05:21:08 EST
Build Identifier: 2.6.1

When adding the parameter &__svg=true  in the calling url I get the following exception:



03.01.2011 15:18:33 org.eclipse.birt.report.engine.api.impl.RenderTask render
SCHWERWIEGEND: Error happened while running the report.
java.lang.AbstractMethodError: org.apache.xerces.dom.DocumentImpl.getXmlStandalone()Z
        at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.setDocumentInfo(Unknown Source)
        at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(Unknown Source)
        at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(Unknown Source)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(Unknown Source)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown Source)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown Source)
        at org.eclipse.birt.chart.device.svg.SVGRendererImpl.writeDocumentToOutputStream(SVGRendererImpl.java:318)
        at org.eclipse.birt.chart.device.svg.SVGRendererImpl.after(SVGRendererImpl.java:251)
        at org.eclipse.birt.chart.factory.Generator.render(Generator.java:1311)
...


'm running it on a Tomcat 6 on a Windows 2008 Server with JDK 6 64Bit. When creating a pdf via the reportengine directly (Java code) everything works fine.


Reproducible: Always

Steps to Reproduce:
1. A report with charts
2. &__svg=false --> works
3. &__svg=true --> fails
Comment 1 Xiaoying Gu CLA 2011-02-24 20:26:30 EST
Were you using the example viewer to view the chart reports?
Comment 2 Ingo CLA 2011-02-25 03:31:07 EST
Yes. Without any modification.

(In reply to comment #1)
> Were you using the example viewer to view the chart reports?
Comment 3 Xiaoying Gu CLA 2011-03-07 02:54:25 EST
Still can not reproduce this issue with BIRT 2.6.1 release.

My steps:
1. Deploy WebViewerExample on Tomcat 6.0 on Windows Server 2008 R2 Enterprise.
2. JDK version: 1.6.0_20 64bit
3. Visit the WebViewerExample and embedded sample report test1.rptdesign:
http://vm-win-01:8080/WebViewerExample/frameset?__report=test1.rptdesign&__format=pdf&__svg=true
http://vm-win-01:8080/WebViewerExample/run?__report=test1.rptdesign&__format=pdf&__svg=true

The pdf was rendered correctly.
Comment 4 Ingo CLA 2011-03-15 04:47:27 EDT
(In reply to comment #3)

Try to leave off the format=pdf and render it as html. PDF rendering works but the  charts are not svg graphics (although I don't know if they were specified in the report itself as svgs...)
Comment 5 Xiaoying Gu CLA 2011-03-15 21:32:56 EDT
(In reply to comment #4)
> (In reply to comment #3)
> 
> Try to leave off the format=pdf and render it as html. PDF rendering works but
> the  charts are not svg graphics (although I don't know if they were specified
> in the report itself as svgs...)

Tried with:
http://vm-win-01:8080/WebViewerExample/frameset?__report=test1.rptdesign&__svg=true
http://vm-win-01:8080/WebViewerExample/frameset?__report=test1.rptdesign&__svg=false
Both works fine in IE/FF.

As for the svg charts in pdf, please refer to: https://bugs.eclipse.org/bugs/show_bug.cgi?id=300774
Comment 6 Xiaoying Gu CLA 2011-03-15 21:35:30 EDT
Created attachment 191273 [details]
screenshot of 2.6.1 web viewer
Comment 7 Ingo CLA 2011-03-16 08:26:08 EDT
Very strange. I still get the exception on my machine. According to your screenshot I saw that it should work, so I tried another VM with Win 2008 with the newest JDK and Tomcat for 64 Bit. It works! Great! I think I have to check/upgrade our main server now...

Sorry for the inconvenience caused!

(In reply to comment #6)
> Created attachment 191273 [details]
> screenshot of 2.6.1 web viewer