Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Error when trying to view example report
Error when trying to view example report [message #1744278] Fri, 23 September 2016 20:20 Go to next message
Michael John Chua Tak is currently offline Michael John Chua TakFriend
Messages: 2
Registered: September 2016
Junior Member
Please help me out fixing this probem. I encountered the error below when trying to test the View Example Report of BIRT WebViewerExample.

Tomcat Version: apache-tomcat-7.0.72
Viewer Version : 4.5.0
Engine Version: 4.5.0
JRE version: 1.7.0_79

org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report.
   at org.eclipse.birt.report.engine.api.impl.EngineTask.handleFatalExceptions(EngineTask.java:2392)
   at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:281)
   at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask.java:89)
   at org.eclipse.birt.report.service.ReportEngineService.runReport(ReportEngineService.java:1325)
   at org.eclipse.birt.report.service.BirtViewerReportService.runReport(BirtViewerReportService.java:159)
   at org.eclipse.birt.report.service.actionhandler.BirtRunReportActionHandler.__execute(BirtRunReportActionHandler.java:81)
   at org.eclipse.birt.report.service.actionhandler.BirtGetPageActionHandler.__checkDocumentExists(BirtGetPageActionHandler.java:58)
   at org.eclipse.birt.report.service.actionhandler.AbstractGetPageActionHandler.prepareParameters(AbstractGetPageActionHandler.java:118)
   at org.eclipse.birt.report.service.actionhandler.AbstractGetPageActionHandler.__execute(AbstractGetPageActionHandler.java:103)
   at org.eclipse.birt.report.service.actionhandler.AbstractBaseActionHandler.execute(AbstractBaseActionHandler.java:90)
   at org.eclipse.birt.report.soapengine.processor.AbstractBaseDocumentProcessor.__executeAction(AbstractBaseDocumentProcessor.java:47)
   at org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.executeAction(AbstractBaseComponentProcessor.java:143)
   at org.eclipse.birt.report.soapengine.processor.BirtDocumentProcessor.handleGetPage(BirtDocumentProcessor.java:87)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.process(AbstractBaseComponentProcessor.java:112)
   at org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingImpl.getUpdatedObjects(BirtSoapBindingImpl.java:66)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
   at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
   at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
   at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.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(AxisServlet.java:699)
   at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doPost(BirtSoapMessageDispatcherServlet.java:265)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
   at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
   at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.service(BirtSoapMessageDispatcherServlet.java:122)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerFilter.java:68)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
   at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:673)
   at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1526)
   at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1482)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.UnsupportedClassVersionError: org/eclipse/datatools/connectivity/oda/OdaException : Unsupported major.minor version 52.0 (unable to load class org.eclipse.datatools.connectivity.oda.OdaException)
   at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2499)
   at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:859)
   at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1301)
   at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1166)
   at org.eclipse.birt.data.engine.impl.DataEngineFactory.createDataEngine(DataEngineFactory.java:46)
   at org.eclipse.birt.data.engine.api.DataEngine.newDataEngine(DataEngine.java:194)
   at org.eclipse.birt.data.engine.api.DataEngine.newDataEngine(DataEngine.java:172)
   at org.eclipse.birt.report.data.adapter.impl.DataRequestSessionImpl.(DataRequestSessionImpl.java:190)
   at org.eclipse.birt.report.data.adapter.impl.DataAdapterFactory.createSession(DataAdapterFactory.java:30)
   at org.eclipse.birt.report.data.adapter.api.DataRequestSession.newSession(DataRequestSession.java:85)
   at org.eclipse.birt.report.data.adapter.api.DataRequestSession.newSession(DataRequestSession.java:64)
   at org.eclipse.birt.report.engine.data.dte.DataGenerationEngine.(DataGenerationEngine.java:63)
   at org.eclipse.birt.report.engine.data.DataEngineFactory.createDataEngine(DataEngineFactory.java:101)
   at org.eclipse.birt.report.engine.executor.ExecutionContext.openDataEngine(ExecutionContext.java:891)
   at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:241)
... 59 more
Re: Error when trying to view example report [message #1744413 is a reply to message #1744278] Mon, 26 September 2016 16:15 Go to previous messageGo to next message
Michael John Chua Tak is currently offline Michael John Chua TakFriend
Messages: 2
Registered: September 2016
Junior Member
anyone can help me on this problem or who can share a simple java web project with birtviewer please?
thank you in advance
Re: Error when trying to view example report [message #1749164 is a reply to message #1744413] Fri, 02 December 2016 14:05 Go to previous messageGo to next message
Steve Barnes is currently offline Steve BarnesFriend
Messages: 2
Registered: December 2016
Junior Member
I have just tried upgrading (actually replacing) the server components of BIRT to 4.6 runtime and am getting the same error when I run a report in the browser.

http://<server-name>:8080/birt-viewer/frameset?__report=TestReport.rptdesign

Tomcat Version : Apache Tomcat/7.0.52 (Ubuntu)
Java Version : java version "1.7.0_79"
OpenJDK Runtime Environment (IcedTea 2.5.6) (7u79-2.5.6-0ubuntu1.14.04.1)
OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)


javax.servlet.ServletException: Servlet execution threw an exception
	org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerFilter.java:68)

root cause

java.lang.UnsupportedClassVersionError: org/eclipse/datatools/connectivity/oda/util/manifest/ManifestExplorer : Unsupported major.minor version 52.0 (unable to load class org.eclipse.datatools.connectivity.oda.util.manifest.ManifestExplorer)
	org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2948)
	org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1208)
	org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1688)
	org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569)
	org.eclipse.birt.report.model.plugin.ODAManifestUtil.getDataSourceExtension(ODAManifestUtil.java:41)
	org.eclipse.birt.report.model.plugin.OdaExtensibilityProvider.isValidExtensionID(OdaExtensibilityProvider.java:194)
	org.eclipse.birt.report.model.elements.OdaDataSource.setIntrinsicProperty(OdaDataSource.java:217)
	org.eclipse.birt.report.model.core.DesignElement.setProperty(DesignElement.java:1233)
	org.eclipse.birt.report.model.core.DesignElement.setProperty(DesignElement.java:1203)
	org.eclipse.birt.report.model.parser.DesignParseState.setProperty(DesignParseState.java:100)
	org.eclipse.birt.report.model.parser.OdaDataSourceState.parseODADataSourceExtensionID(OdaDataSourceState.java:150)
	org.eclipse.birt.report.model.parser.OdaDataSourceState.parseAttrs(OdaDataSourceState.java:82)
	org.eclipse.birt.report.model.parser.ModuleParserHandler.startElement(ModuleParserHandler.java:261)
	org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
	org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
	org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
	org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
	org.eclipse.birt.report.model.parser.ModuleReader.readModule(ModuleReader.java:98)
	org.eclipse.birt.report.model.parser.DesignReader.read(DesignReader.java:88)
	org.eclipse.birt.report.model.core.DesignSessionImpl.openDesign(DesignSessionImpl.java:309)
	org.eclipse.birt.report.model.api.SessionHandleImpl.openDesign(SessionHandleImpl.java:294)
	org.eclipse.birt.report.model.api.SessionHandle.openDesign(SessionHandle.java:1)
	org.eclipse.birt.report.engine.parser.ReportParser.getDesignHandle(ReportParser.java:158)
	org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.getReportDesignHandle(ReportEngineHelper.java:255)
	org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java:274)
	org.eclipse.birt.report.engine.api.impl.ReportEngine.openReportDesign(ReportEngine.java:619)
	org.eclipse.birt.report.service.ReportEngineService.openReportDesign(ReportEngineService.java:395)
	org.eclipse.birt.report.utility.BirtUtility.getRunnableFromDesignFile(BirtUtility.java:609)
	org.eclipse.birt.report.context.ViewerAttributeBean.getDesignHandle(ViewerAttributeBean.java:644)
	org.eclipse.birt.report.context.ViewerAttributeBean.__init(ViewerAttributeBean.java:224)
	org.eclipse.birt.report.context.BaseAttributeBean.init(BaseAttributeBean.java:230)
	org.eclipse.birt.report.context.ViewerAttributeBean.<init>(ViewerAttributeBean.java:118)
	org.eclipse.birt.report.context.BirtContext.__init(BirtContext.java:44)
	org.eclipse.birt.report.context.BaseContext.<init>(BaseContext.java:69)
	org.eclipse.birt.report.context.BirtContext.<init>(BirtContext.java:30)
	org.eclipse.birt.report.servlet.ViewerServlet.__getContext(ViewerServlet.java:150)
	org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doGet(BirtSoapMessageDispatcherServlet.java:151)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
	org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.service(BirtSoapMessageDispatcherServlet.java:122)
	org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerFilter.java:68)


I already made the change documented here to fix another issue : https://bugs.eclipse.org/bugs/show_bug.cgi?id=497356

It's my understanding that BIRT v4.6 is supported on Java7 as stated here : http://download.eclipse.org/birt/downloads/

Pre-requisites: Java 1.7 JDK/JRE

Anyone here got any wild ideas on what could be wrong...?

[Updated on: Fri, 02 December 2016 15:30]

Report message to a moderator

Re: Error when trying to view example report [message #1749172 is a reply to message #1749164] Fri, 02 December 2016 15:40 Go to previous message
Steve Barnes is currently offline Steve BarnesFriend
Messages: 2
Registered: December 2016
Junior Member
I have dug into the jars that I believe provides the classes for this oda functionality. For example :

WebViewerExample/WEB-INF\lib\org.eclipse.datatools.connectivity.oda_3.5.0.201603142002.jar\META-INF\MANIFEST.MF

...
...
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
...
...


Which would seem to mean that BIRT runtime v4.6 is supported on Java8 runtime and not Java7.

??
Previous Topic:Hide Excel Gridlines
Next Topic:Dynamic List Box Parameters
Goto Forum:
  


Current Time: Sat Dec 14 22:08:24 GMT 2019

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

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

Back to the top