Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326295 - Run any report in Chrome or Safari browsers cause exception
Summary: Run any report in Chrome or Safari browsers cause exception
Status: VERIFIED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.5.2   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: 4.2.1   Edit
Assignee: Ning Zhang CLA
QA Contact: Xiaoying Gu CLA
URL:
Whiteboard:
Keywords:
: 364169 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-27 08:22 EDT by Andrei Sohryn CLA
Modified: 2013-01-18 04:31 EST (History)
5 users (show)

See Also:


Attachments
log from report engine (76.99 KB, application/zip)
2010-09-27 08:23 EDT, Andrei Sohryn CLA
no flags Details
Soap request from Mozilla Firefox (1.83 KB, text/xml)
2010-09-27 08:24 EDT, Andrei Sohryn CLA
no flags Details
Soap request from Chrome (1.87 KB, text/xml)
2010-09-27 08:25 EDT, Andrei Sohryn CLA
no flags Details
A patch to fix the Content-type sent by webkit browsers (3.26 KB, patch)
2010-11-08 03:41 EST, Yap Sok Ann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Sohryn CLA 2010-09-27 08:22:03 EDT
Build Identifier: Build <2.5.2.v20100210-0630>

This bug is very similar to #279632, except that ANY report, even very simple one with 'Hello, World!' static text, cannot run using Google Chrome or Safari browsers.
Environment: 
BIRT report engine is deployed to Weblogic 10.3 (tried Windows XP SP3, Windows 2003 Server, Linux RHEL5)
Report is run using the following browsers:
1. Opera 10
2. IE 6, 7, 8
3. Mozilla Firefox
4. Google Chrome 6.0.472.63
5. Safari

Result: report successfully works from Opera, IE, Firefox and fails to run from Chrome and Safari with the exception:
"org.xml.sax.SAXParseException: Premature end of file."

and no Stacktrace.

However, from the weblogic server log (attached) I managed to find the exception stacktrace (see below). Also attached are two soap requests - one generated by Mozilla, second one - generated by Chrome. Hopefully these two files will help you to debug the problem.

[TRACE 14:24:40][ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default
(self-tuning)',org.apache.axis.utils.NSStack, NSPop (empty)
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: org.xml.sax.SAXParseException: Premature end of file.
 faultActor: 
 faultNode: 
 faultDetail: 
    {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException:
Premature end of file.
    at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
    at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
    at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
    at
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1411)
    at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1044)
    at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)
    at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
    at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
    at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
    at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
    at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
    at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
    at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
    at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:133)
    at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:172)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
    at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
    at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
    at org.apache.axis.server.AxisServer.invoke(AxisServer.java:266)
    at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
    at
org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doPost(BirtSoapMessageDispatcherServlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at
org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.service(BirtSoapMessageDispatcherServlet.java:122)
    at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at
weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:502)
    at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:251)
    at
com.vpi.ngnlm.re.web.ReportBookmarkServlet.doBIRT(ReportBookmarkServlet.java:150)
    at
com.vpi.ngnlm.re.web.ReportBookmarkServlet.doGet(ReportBookmarkServlet.java:128)
    at
com.vpi.ngnlm.re.web.ReportBookmarkServlet.doPost(ReportBookmarkServlet.java:68)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
    at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
    at
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
    at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    {http://xml.apache.org/axis/}hostname:ws107

org.xml.sax.SAXParseException: Premature end of file.
    at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)
    at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
    at org.apache.axis.server.AxisServer.invoke(AxisServer.java:266)
    at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
    at
org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doPost(BirtSoapMessageDispatcherServlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at
org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.service(BirtSoapMessageDispatcherServlet.java:122)
    at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at
weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:502)
    at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:251)
    at
com.vpi.ngnlm.re.web.ReportBookmarkServlet.doBIRT(ReportBookmarkServlet.java:150)
    at
com.vpi.ngnlm.re.web.ReportBookmarkServlet.doGet(ReportBookmarkServlet.java:128)
    at
com.vpi.ngnlm.re.web.ReportBookmarkServlet.doPost(ReportBookmarkServlet.java:68)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
    at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
    at
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
    at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: org.xml.sax.SAXParseException: Premature end of file.
    at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
    at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
    at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
    at
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1411)
    at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1044)
    at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)
    at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
    at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
    at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
    at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
    at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
    at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
    at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
    at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:133)
    at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:172)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
    at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
    ... 31 more

Reproducible: Always

Steps to Reproduce:
1. Deploy report engine to Weblogic 10.3
2. Run report from Chrome
(bug)
Comment 1 Andrei Sohryn CLA 2010-09-27 08:23:50 EDT
Created attachment 179629 [details]
log from report engine
Comment 2 Andrei Sohryn CLA 2010-09-27 08:24:39 EDT
Created attachment 179630 [details]
Soap request from Mozilla Firefox
Comment 3 Andrei Sohryn CLA 2010-09-27 08:25:15 EDT
Created attachment 179631 [details]
Soap request from Chrome
Comment 4 Xiaoying Gu CLA 2010-11-01 23:01:19 EDT
Does this error only occurs when you deploy report engine to Weblogic 10.3?

Do you also see this error if you deploy to Tomcat or Jboss?

And do you see this error when you preview report in report designer by Chrome/Safari
Comment 5 Andrei Sohryn CLA 2010-11-03 05:40:44 EDT
Hi
(In reply to comment #4)
> Does this error only occurs when you deploy report engine to Weblogic 10.3?
> 
> Do you also see this error if you deploy to Tomcat or Jboss?
> 
> And do you see this error when you preview report in report designer by
> Chrome/Safari

Unfortunately, I do not have environment for Tomcat or Jboss. We only work with Weblogic 10.3.

Can you please explain to me how can I preview report from designer using something other than internal WebViewer ?

Thank you.
Comment 6 Xiaoying Gu CLA 2010-11-03 06:06:23 EDT
(In reply to comment #5)
> Hi
> (In reply to comment #4)
> > Does this error only occurs when you deploy report engine to Weblogic 10.3?
> > 
> > Do you also see this error if you deploy to Tomcat or Jboss?
> > 
> > And do you see this error when you preview report in report designer by
> > Chrome/Safari
> 
> Unfortunately, I do not have environment for Tomcat or Jboss. We only work with
> Weblogic 10.3.
> 
> Can you please explain to me how can I preview report from designer using
> something other than internal WebViewer ?
> 
> Thank you.

I can reproduce this issue in 2.6.2 build now.
This issue only exists with the WebLogic server. It works well with Tomcat 6.0
Comment 7 Andrei Sohryn CLA 2010-11-03 08:13:30 EDT
(In reply to comment #6)
> I can reproduce this issue in 2.6.2 build now.
> This issue only exists with the WebLogic server. It works well with Tomcat 6.0

Unfortunately, we do not support Tomcat or Jboss. We need report engine to work on Weblogic.

Will you be able to fix this issue for Weblogic? 

Thank you.
Comment 8 Yap Sok Ann CLA 2010-11-08 03:41:27 EST
Created attachment 182594 [details]
A patch to fix the Content-type sent by webkit browsers

This patch is based on the changes in prototype.js version 1.5.0_rc0. We deploy the viewer on resin, and this patch makes it works for webkit browsers.
Comment 9 Andrei Sohryn CLA 2010-11-08 06:59:39 EST
(In reply to comment #8)
> Created an attachment (id=182594) [details]
> A patch to fix the Content-type sent by webkit browsers
> 
> This patch is based on the changes in prototype.js version 1.5.0_rc0. We deploy
> the viewer on resin, and this patch makes it works for webkit browsers.

Hi
Thank you, the patch worked.

Can you please let me know in what BIRT release this patch will officially be applied?

Thanks once again.
Comment 10 Joel DeVenney CLA 2010-12-12 09:21:29 EST
(In reply to comment #6)
> (In reply to comment #5)
> > Hi
> > (In reply to comment #4)
> > > Does this error only occurs when you deploy report engine to Weblogic 10.3?
> > > 
> > > Do you also see this error if you deploy to Tomcat or Jboss?
> > > 
> > > And do you see this error when you preview report in report designer by
> > > Chrome/Safari
> > 
> > Unfortunately, I do not have environment for Tomcat or Jboss. We only work with
> > Weblogic 10.3.
> > 
> > Can you please explain to me how can I preview report from designer using
> > something other than internal WebViewer ?
> > 
> > Thank you.
> 
> I can reproduce this issue in 2.6.2 build now.
> This issue only exists with the WebLogic server. It works well with Tomcat 6.0

This is not true, I am having this trouble deploying the sample viewer to TomCat on Linux server, most recent version of TomCat and Viewer.  It works fine in designer preview using chrome but not using chrome directly from browser.  No error at all, just doesn't work.

You can see by going here:
http://smcortijo.edu.gt:8080/birt-viewer/frameset?__report=rptListaAlumnoxGradoEdad.rptdesign&colegio=1

The report never displays in Chrome.
Comment 11 Xiaoying Gu CLA 2012-08-21 02:14:52 EDT
*** Bug 364169 has been marked as a duplicate of this bug. ***
Comment 12 Ning Zhang CLA 2012-08-21 03:16:20 EDT
This issue has been fixed in the latest 4.2.0 build. Credit goes to Yap Sok Ann.
Comment 13 Xiaoying Gu CLA 2013-01-18 04:31:21 EST
Verified with 4.2.1 release