Community
Participate
Working Groups
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)
Created attachment 179629 [details] log from report engine
Created attachment 179630 [details] Soap request from Mozilla Firefox
Created attachment 179631 [details] Soap request from Chrome
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
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.
(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
(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.
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.
(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.
(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.
*** Bug 364169 has been marked as a duplicate of this bug. ***
This issue has been fixed in the latest 4.2.0 build. Credit goes to Yap Sok Ann.
Verified with 4.2.1 release