Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » SAXParseException: Premature end of file.
SAXParseException: Premature end of file. [message #545329] Wed, 07 July 2010 12:58 Go to next message
Nicola is currently offline NicolaFriend
Messages: 184
Registered: July 2009
Senior Member
Hi,
in design environment my report works fine, but in birt viewer 2.5.2 I
get this exception.

My report contains 4 cubes.


Any suggestions, please?

Bye
Nicola


************************************************************ ************************************************
14:55:51,776 ERROR [STDERR] 7-lug-2010 14.55.51
org.eclipse.birt.report.engine.api.impl.ReportDocumentReader
getReportRunnable
GRAVE: Failed to get the report runnable
org.eclipse.birt.report.engine.api.EngineException: The design file
/opt/jboss-4.2.3.GA/server/default/deploy/repo.war/report/pe rformance_report.rptdesign
has error and can not be run.
at
org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.g etReportDesignHandle(ReportEngineHelper.java:259)
at
org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:273)
at
org.eclipse.birt.report.engine.api.impl.ReportEngine.openRep ortDesign(ReportEngine.java:581)
at
org.eclipse.birt.report.engine.api.impl.ReportDocumentReader .getReportRunnable(ReportDocumentReader.java:859)
at
org.eclipse.birt.report.engine.api.impl.ReportDocumentReader .getOnPreparedRunnable(ReportDocumentReader.java:1477)
at
org.eclipse.birt.report.engine.api.impl.EngineTask.getOnPrep aredRunnable(EngineTask.java:231)
at
org.eclipse.birt.report.engine.api.impl.RenderTask.<init>(RenderTask.java:113)
at
org.eclipse.birt.report.engine.api.impl.RenderTask.<init>(RenderTask.java:85)
at
org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.c reateRenderTask(ReportEngineHelper.java:501)
at
org.eclipse.birt.report.engine.api.impl.ReportEngine.createR enderTask(ReportEngine.java:480)
at
org.eclipse.birt.report.service.ReportEngineService.createRe nderTask(ReportEngineService.java:1604)
at
org.eclipse.birt.report.service.ReportEngineService.renderRe port(ReportEngineService.java:1506)
at
org.eclipse.birt.report.service.BirtViewerReportService.getP age(BirtViewerReportService.java:204)
at
org.eclipse.birt.report.service.actionhandler.BirtChangePara meterActionHandler.doRenderPage(BirtChangeParameterActionHan dler.java:82)
at
org.eclipse.birt.report.service.actionhandler.AbstractChange ParameterActionHandler.__execute(AbstractChangeParameterActi onHandler.java:103)
at
org.eclipse.birt.report.service.actionhandler.AbstractBaseAc tionHandler.execute(AbstractBaseActionHandler.java:90)
at
org.eclipse.birt.report.soapengine.processor.AbstractBaseDoc umentProcessor.__executeAction(AbstractBaseDocumentProcessor .java:47)
at
org.eclipse.birt.report.soapengine.processor.AbstractBaseCom ponentProcessor.executeAction(AbstractBaseComponentProcessor .java:143)
at
org.eclipse.birt.report.soapengine.processor.BirtDocumentPro cessor.handleChangeParameter(BirtDocumentProcessor.java:100)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.eclipse.birt.report.soapengine.processor.AbstractBaseCom ponentProcessor.process(AbstractBaseComponentProcessor.java: 112)
at
org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingI mpl.getUpdatedObjects(BirtSoapBindingImpl.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCP rovider.java:397)
at
org.apache.axis.providers.java.RPCProvider.processMessage(RP CProvider.java:186)
at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvi der.java:323)
at
org.apache.axis.strategies.InvocationStrategy.visit(Invocati onStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService .java:454)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281 )
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServle t.java:699)
at
org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.doPost(BirtSoapMessageDispatcherServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at
org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.service(BirtSoapMessageDispatcherServlet.java:122)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
at
org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerF ilter.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(Repl yHeaderFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:230)
at
org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:175)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invok e(SecurityAssociationValve.java:182)
at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccCo ntextValve.java:84)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:102)
at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invok e(CachedConnectionValve.java:157)
at
org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.java:262)
at
org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoin t.java:446)
at java.lang.Thread.run(Thread.java:619)
Caused by: Error.DesignFileException.INVALID_XML - 2 errors found!
1.) ( line = 1, tag = null)
org.eclipse.birt.report.model.util.XMLParserException (code =
Error.XMLParserException.SAX_ERROR, message : Line Number:1 Error
Code:Error.XMLParserException.SAX_ERROR
Exception:org.xml.sax.SAXParseException: Premature end of file.
Message:SAX detected an error with the basic XML syntax of the file. )
2.) ( line = -1) org.xml.sax.SAXParseException (message : Premature end
of file.)

at
org.eclipse.birt.report.model.parser.ModuleReader.readModule (ModuleReader.java:116)
at
org.eclipse.birt.report.model.parser.DesignReader.read(Desig nReader.java:88)
at
org.eclipse.birt.report.model.core.DesignSessionImpl.openDes ign(DesignSessionImpl.java:314)
at
org.eclipse.birt.report.model.api.SessionHandleImpl.openDesi gn(SessionHandleImpl.java:294)
at
org.eclipse.birt.report.engine.parser.ReportParser.getDesign Handle(ReportParser.java:158)
at
org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.g etReportDesignHandle(ReportEngineHelper.java:254)
... 63 more
Caused by: org.xml.sax.SAXParseException: Premature end of file.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unk nown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at
org.eclipse.birt.report.model.parser.ModuleReader.readModule (ModuleReader.java:94)
... 68 more
************************************************************ ************************************************
Re: SAXParseException: Premature end of file. [message #545560 is a reply to message #545329] Thu, 08 July 2010 09:02 Go to previous messageGo to next message
Nicola is currently offline NicolaFriend
Messages: 184
Registered: July 2009
Senior Member
Any suggestions for this problem, please?

nicola ha scritto:
> Hi,
> in design environment my report works fine, but in birt viewer 2.5.2 I
> get this exception.
>
> My report contains 4 cubes.
>
>
> Any suggestions, please?
>
> Bye
> Nicola
>
>
> ************************************************************ ************************************************
> 14:55:51,776 ERROR [STDERR] 7-lug-2010 14.55.51
> org.eclipse.birt.report.engine.api.impl.ReportDocumentReader
> getReportRunnable
> GRAVE: Failed to get the report runnable
> org.eclipse.birt.report.engine.api.EngineException: The design file
> /opt/jboss-4.2.3.GA/server/default/deploy/repo.war/report/pe rformance_report.rptdesign
> has error and can not be run.
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.g etReportDesignHandle(ReportEngineHelper.java:259)
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:273)
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngine.openRep ortDesign(ReportEngine.java:581)
> at
> org.eclipse.birt.report.engine.api.impl.ReportDocumentReader .getReportRunnable(ReportDocumentReader.java:859)
> at
> org.eclipse.birt.report.engine.api.impl.ReportDocumentReader .getOnPreparedRunnable(ReportDocumentReader.java:1477)
> at
> org.eclipse.birt.report.engine.api.impl.EngineTask.getOnPrep aredRunnable(EngineTask.java:231)
> at
> org.eclipse.birt.report.engine.api.impl.RenderTask.<init>(RenderTask.java:113)
> at
> org.eclipse.birt.report.engine.api.impl.RenderTask.<init>(RenderTask.java:85)
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.c reateRenderTask(ReportEngineHelper.java:501)
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngine.createR enderTask(ReportEngine.java:480)
> at
> org.eclipse.birt.report.service.ReportEngineService.createRe nderTask(ReportEngineService.java:1604)
> at
> org.eclipse.birt.report.service.ReportEngineService.renderRe port(ReportEngineService.java:1506)
> at
> org.eclipse.birt.report.service.BirtViewerReportService.getP age(BirtViewerReportService.java:204)
> at
> org.eclipse.birt.report.service.actionhandler.BirtChangePara meterActionHandler.doRenderPage(BirtChangeParameterActionHan dler.java:82)
> at
> org.eclipse.birt.report.service.actionhandler.AbstractChange ParameterActionHandler.__execute(AbstractChangeParameterActi onHandler.java:103)
> at
> org.eclipse.birt.report.service.actionhandler.AbstractBaseAc tionHandler.execute(AbstractBaseActionHandler.java:90)
> at
> org.eclipse.birt.report.soapengine.processor.AbstractBaseDoc umentProcessor.__executeAction(AbstractBaseDocumentProcessor .java:47)
> at
> org.eclipse.birt.report.soapengine.processor.AbstractBaseCom ponentProcessor.executeAction(AbstractBaseComponentProcessor .java:143)
> at
> org.eclipse.birt.report.soapengine.processor.BirtDocumentPro cessor.handleChangeParameter(BirtDocumentProcessor.java:100)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.eclipse.birt.report.soapengine.processor.AbstractBaseCom ponentProcessor.process(AbstractBaseComponentProcessor.java: 112)
> at
> org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingI mpl.getUpdatedObjects(BirtSoapBindingImpl.java:66)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCP rovider.java:397)
> at
> org.apache.axis.providers.java.RPCProvider.processMessage(RP CProvider.java:186)
> at
> org.apache.axis.providers.java.JavaProvider.invoke(JavaProvi der.java:323)
> at
> org.apache.axis.strategies.InvocationStrategy.visit(Invocati onStrategy.java:32)
> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService .java:454)
> at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281 )
> at org.apache.axis.transport.http.AxisServlet.doPost(AxisServle t.java:699)
> at
> org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.doPost(BirtSoapMessageDispatcherServlet.java:265)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> at
> org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> at
> org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.service(BirtSoapMessageDispatcherServlet.java:122)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
> at
> org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerF ilter.java:68)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
> at
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(Repl yHeaderFilter.java:96)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:230)
> at
> org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:175)
> at
> org.jboss.web.tomcat.security.SecurityAssociationValve.invok e(SecurityAssociationValve.java:182)
> at
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccCo ntextValve.java:84)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:127)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:102)
> at
> org.jboss.web.tomcat.service.jca.CachedConnectionValve.invok e(CachedConnectionValve.java:157)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.java:262)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:844)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.process(Http11Protocol.java:583)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoin t.java:446)
> at java.lang.Thread.run(Thread.java:619)
> Caused by: Error.DesignFileException.INVALID_XML - 2 errors found!
> 1.) ( line = 1, tag = null)
> org.eclipse.birt.report.model.util.XMLParserException (code =
> Error.XMLParserException.SAX_ERROR, message : Line Number:1 Error
> Code:Error.XMLParserException.SAX_ERROR
> Exception:org.xml.sax.SAXParseException: Premature end of file.
> Message:SAX detected an error with the basic XML syntax of the file. )
> 2.) ( line = -1) org.xml.sax.SAXParseException (message : Premature end
> of file.)
>
> at
> org.eclipse.birt.report.model.parser.ModuleReader.readModule (ModuleReader.java:116)
> at
> org.eclipse.birt.report.model.parser.DesignReader.read(Desig nReader.java:88)
> at
> org.eclipse.birt.report.model.core.DesignSessionImpl.openDes ign(DesignSessionImpl.java:314)
> at
> org.eclipse.birt.report.model.api.SessionHandleImpl.openDesi gn(SessionHandleImpl.java:294)
> at
> org.eclipse.birt.report.engine.parser.ReportParser.getDesign Handle(ReportParser.java:158)
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.g etReportDesignHandle(ReportEngineHelper.java:254)
> ... 63 more
> Caused by: org.xml.sax.SAXParseException: Premature end of file.
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unk nown Source)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
> at
> org.eclipse.birt.report.model.parser.ModuleReader.readModule (ModuleReader.java:94)
> ... 68 more
> ************************************************************ ************************************************
Re: SAXParseException: Premature end of file. [message #545561 is a reply to message #545560] Thu, 08 July 2010 09:09 Go to previous messageGo to next message
Nicola is currently offline NicolaFriend
Messages: 184
Registered: July 2009
Senior Member
Hi,
if I run my report calling the servlet "run" instead of "frameset", my
report is displayed correcly without parse error.

What checks does the servlet frameset make?

Nicola
Re: SAXParseException: Premature end of file. [message #545576 is a reply to message #545561] Thu, 08 July 2010 09:41 Go to previous message
Nicola is currently offline NicolaFriend
Messages: 184
Registered: July 2009
Senior Member
nicola ha scritto:
> Hi,
> if I run my report calling the servlet "run" instead of "frameset", my
> report is displayed correcly without parse error.
>
> What checks does the servlet frameset make?
>
> Nicola


In birt viewer 2.6.0 all work fine.

Bye
nicola
Previous Topic:Performance questions
Next Topic:ScriptedDatasource report
Goto Forum:
  


Current Time: Fri Nov 28 06:11:48 GMT 2014

Powered by FUDForum. Page generated in 0.02228 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software