Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » EngineException Error
EngineException Error [message #1137019] Mon, 14 October 2013 07:59 Go to next message
Hwang Juyeon is currently offline Hwang JuyeonFriend
Messages: 3
Registered: May 2013
Junior Member
Hi

I am a newbie BIRT.

Working with the Eclipse.

I do not know why it makes an error.

The query is not a problem.

The error message:

"org.eclipse.birt.report.engine.api.EngineException"


I'am using H2 Database.

And in eclipse can't find DB table.


If I incorrectly setting,

Can you explain how to set this in Eclipse?

Thanks in advance.
Re: EngineException Error [message #1137082 is a reply to message #1137019] Mon, 14 October 2013 08:49 Go to previous messageGo to next message
donino donino is currently offline donino doninoFriend
Messages: 183
Registered: July 2011
Senior Member
Hi,

You need to copy h2 JDBC driver in the relevant Eclipse plugin folder:

<Eclipse home>/plugins/org.eclipse.birt.report.data.oda.jdbc_<version>/drivers

By the way, you should at least post the full stacktrace of the error for this kind of topic.
Re: EngineException Error [message #1137122 is a reply to message #1137082] Mon, 14 October 2013 09:17 Go to previous messageGo to next message
Hwang Juyeon is currently offline Hwang JuyeonFriend
Messages: 3
Registered: May 2013
Junior Member
Thank you for advice.

But H2 JDBC is already add in '<Eclipse home>/plugins/org.eclipse.birt.report.data.oda.jdbc_<version>/drivers'.

Error message is..

The following items have errors:

org.eclipse.birt.report.engine.api.EngineException: An exception occurred during processing. Please see the following message for details:
Failed to prepare the query execution for the data set: SYSTEM
Failed to prepare the following query for the data set type (org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet).
[select ID as SYSTEM_ID
, ALIAS as SYSTEM_ALIAS
, DESCRIPTION as SYSTEM_DESCRIPTION
from CONFIG_SYSTEM
where ID = ?]
org.eclipse.birt.report.data.oda.jdbc.JDBCException: Error preparing SQL statement.
SQL error #1:Table "CONFIG_SYSTEM" not found; SQL statement:
select ID as SYSTEM_ID
, ALIAS as SYSTEM_ALIAS
, DESCRIPTION as SYSTEM_DESCRIPTION
from CONFIG_SYSTEM
where ID = ? [42102-157]
;
org.h2.jdbc.JdbcSQLException: Table "CONFIG_SYSTEM" not found; SQL statement:
select ID as SYSTEM_ID
, ALIAS as SYSTEM_ALIAS
, DESCRIPTION as SYSTEM_DESCRIPTION
from CONFIG_SYSTEM
where ID = ? [42102-157] (Element ID:4403)

at org.eclipse.birt.report.engine.executor.ExecutionContext.addException(ExecutionContext.java:1237)

at org.eclipse.birt.report.engine.executor.ExecutionContext.addException(ExecutionContext.java:1216)

at org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(QueryItemExecutor.java:96)

at org.eclipse.birt.report.engine.executor.DataItemExecutor.execute(DataItemExecutor.java:75)

at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor.java:43)

at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:46)

at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:34)

at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:65)

at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)

at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)

at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.resumeLayout(HTMLInlineStackingLM.java:111)

at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.layoutNodes(HTMLInlineStackingLM.java:160)

at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)

at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)

at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)

at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)

at org.eclipse.birt.report.engine.layout.html.HTMLTableLM.layoutChildren(HTMLTableLM.java:132)

at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)

at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)

at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)

at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)

at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.resumeLayout(HTMLInlineStackingLM.java:111)

at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.layoutNodes(HTMLInlineStackingLM.java:160)

at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)

at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)

at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)

at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)

at org.eclipse.birt.report.engine.layout.html.HTMLTableLM.layoutChildren(HTMLTableLM.java:132)

at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)

at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)

at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)

at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)

at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.resumeLayout(HTMLInlineStackingLM.java:111)

at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.layoutNodes(HTMLInlineStackingLM.java:160)

at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)

at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)

at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)

at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)

at org.eclipse.birt.report.engine.layout.html.HTMLTableLM.layoutChildren(HTMLTableLM.java:132)

at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)

at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)

at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:92)

at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:100)

at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:180)

at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:77)

at org.eclipse.birt.report.service.ReportEngineService.runAndRenderReport(ReportEngineService.java:937)

at org.eclipse.birt.report.service.BirtViewerReportService.runAndRenderReport(BirtViewerReportService.java:973)

at org.eclipse.birt.report.service.actionhandler.BirtGetPageAllActionHandler.__execute(BirtGetPageAllActionHandler.java:131)

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.handleGetPageAll(BirtDocumentProcessor.java:183)

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:755)

at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.service(BirtSoapMessageDispatcherServlet.java:122)

at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)

at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)

at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)

at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

at org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet.service(HttpServerManager.java:386)

at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:598)

at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:486)

at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065)

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:413)

at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)

at org.eclipse.jetty.server.Server.handle(Server.java:350)

at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454)

at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:900)

at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:954)

at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:851)

at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)

at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77)

at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:606)

at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46)

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603)

at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538)

at java.lang.Thread.run(Unknown Source)

Caused by: org.eclipse.birt.report.data.adapter.api.AdapterException: An exception occurred during processing. Please see the following message for details:
Failed to prepare the query execution for the data set: SYSTEM
Failed to prepare the following query for the data set type (org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet).
[select ID as SYSTEM_ID
, ALIAS as SYSTEM_ALIAS
, DESCRIPTION as SYSTEM_DESCRIPTION
from CONFIG_SYSTEM
where ID = ?]
org.eclipse.birt.report.data.oda.jdbc.JDBCException: Error preparing SQL statement.
SQL error #1:Table "CONFIG_SYSTEM" not found; SQL statement:
select ID as SYSTEM_ID
, ALIAS as SYSTEM_ALIAS
, DESCRIPTION as SYSTEM_DESCRIPTION
from CONFIG_SYSTEM
where ID = ? [42102-157]
;
org.h2.jdbc.JdbcSQLException: Table "CONFIG_SYSTEM" not found; SQL statement:
select ID as SYSTEM_ID
, ALIAS as SYSTEM_ALIAS
, DESCRIPTION as SYSTEM_DESCRIPTION
from CONFIG_SYSTEM
where ID = ? [42102-157]

at org.eclipse.birt.report.data.adapter.impl.DataRequestSessionImpl.execute(DataRequestSessionImpl.java:644)

at org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExecuteQuery(DteDataEngine.java:158)

at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(AbstractDataEngine.java:267)

at org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery(ExecutionContext.java:1939)

at org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(QueryItemExecutor.java:80)

... 100 more

Caused by: org.eclipse.birt.data.engine.core.DataException: Failed to prepare the query execution for the data set: SYSTEM
Failed to prepare the following query for the data set type (org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet).
[select ID as SYSTEM_ID
, ALIAS as SYSTEM_ALIAS
, DESCRIPTION as SYSTEM_DESCRIPTION
from CONFIG_SYSTEM
where ID = ?]
org.eclipse.birt.report.data.oda.jdbc.JDBCException: Error preparing SQL statement.
SQL error #1:Table "CONFIG_SYSTEM" not found; SQL statement:
select ID as SYSTEM_ID
, ALIAS as SYSTEM_ALIAS
, DESCRIPTION as SYSTEM_DESCRIPTION
from CONFIG_SYSTEM
where ID = ? [42102-157]
;
org.h2.jdbc.JdbcSQLException: Table "CONFIG_SYSTEM" not found; SQL statement:
select ID as SYSTEM_ID
, ALIAS as SYSTEM_ALIAS
, DESCRIPTION as SYSTEM_DESCRIPTION
from CONFIG_SYSTEM
where ID = ? [42102-157]

at org.eclipse.birt.data.engine.impl.QueryExecutor.prepareExecution(QueryExecutor.java:345)

at org.eclipse.birt.data.engine.impl.PreparedQuery.doPrepare(PreparedQuery.java:455)

at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.produceQueryResults(PreparedDataSourceQuery.java:190)

at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.execute(PreparedDataSourceQuery.java:178)

at org.eclipse.birt.data.engine.impl.PreparedOdaDSQuery.execute(PreparedOdaDSQuery.java:145)

at org.eclipse.birt.report.data.adapter.impl.DataRequestSessionImpl.execute(DataRequestSessionImpl.java:624)

... 104 more

Caused by: org.eclipse.birt.data.engine.odaconsumer.OdaDataException: Failed to prepare the following query for the data set type (org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet).
[select ID as SYSTEM_ID
, ALIAS as SYSTEM_ALIAS
, DESCRIPTION as SYSTEM_DESCRIPTION
from CONFIG_SYSTEM
where ID = ?]
org.eclipse.birt.report.data.oda.jdbc.JDBCException: Error preparing SQL statement.
SQL error #1:Table "CONFIG_SYSTEM" not found; SQL statement:
select ID as SYSTEM_ID
, ALIAS as SYSTEM_ALIAS
, DESCRIPTION as SYSTEM_DESCRIPTION
from CONFIG_SYSTEM
where ID = ? [42102-157]
;
org.h2.jdbc.JdbcSQLException: Table "CONFIG_SYSTEM" not found; SQL statement:
select ID as SYSTEM_ID
, ALIAS as SYSTEM_ALIAS
, DESCRIPTION as SYSTEM_DESCRIPTION
from CONFIG_SYSTEM
where ID = ? [42102-157]

at org.eclipse.birt.data.engine.odaconsumer.ExceptionHandler.newException(ExceptionHandler.java:54)

at org.eclipse.birt.data.engine.odaconsumer.ExceptionHandler.throwException(ExceptionHandler.java:108)

at org.eclipse.birt.data.engine.odaconsumer.Connection.prepareOdaQuery(Connection.java:298)

at org.eclipse.birt.data.engine.odaconsumer.Connection.prepareStatement(Connection.java:197)

at org.eclipse.birt.data.engine.executor.DataSource.prepareStatement(DataSource.java:302)

at org.eclipse.birt.data.engine.executor.DataSourceQuery.prepare(DataSourceQuery.java:281)

at org.eclipse.birt.data.engine.impl.PreparedOdaDSQuery$OdaDSQueryExecutor.prepareOdiQuery(PreparedOdaDSQuery.java:442)

at org.eclipse.birt.data.engine.impl.QueryExecutor.prepareExecution(QueryExecutor.java:341)

... 109 more

Caused by: org.eclipse.birt.report.data.oda.jdbc.JDBCException: Error preparing SQL statement.
SQL error #1:Table "CONFIG_SYSTEM" not found; SQL statement:
select ID as SYSTEM_ID
, ALIAS as SYSTEM_ALIAS
, DESCRIPTION as SYSTEM_DESCRIPTION
from CONFIG_SYSTEM
where ID = ? [42102-157]
;
org.h2.jdbc.JdbcSQLException: Table "CONFIG_SYSTEM" not found; SQL statement:
select ID as SYSTEM_ID
, ALIAS as SYSTEM_ALIAS
, DESCRIPTION as SYSTEM_DESCRIPTION
from CONFIG_SYSTEM
where ID = ? [42102-157]

at org.eclipse.birt.report.data.oda.jdbc.Statement.prepare(Statement.java:135)

at org.eclipse.birt.report.data.oda.jdbc.bidi.BidiStatement.prepare(BidiStatement.java:52)

at org.eclipse.datatools.connectivity.oda.consumer.helper.OdaQuery.doPrepare(OdaQuery.java:229)

at org.eclipse.datatools.connectivity.oda.consumer.helper.OdaQuery.prepare(OdaQuery.java:186)

at org.eclipse.birt.data.engine.odaconsumer.Connection.prepareOdaQuery(Connection.java:290)

... 114 more

Caused by: org.h2.jdbc.JdbcSQLException: Table "CONFIG_SYSTEM" not found; SQL statement:
select ID as SYSTEM_ID
, ALIAS as SYSTEM_ALIAS
, DESCRIPTION as SYSTEM_DESCRIPTION
from CONFIG_SYSTEM
where ID = ? [42102-157]

at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)

at org.h2.message.DbException.get(DbException.java:167)

at org.h2.message.DbException.get(DbException.java:144)

at org.h2.command.Parser.readTableOrView(Parser.java:4729)

at org.h2.command.Parser.readTableFilter(Parser.java:1071)

at org.h2.command.Parser.parseSelectSimpleFromPart(Parser.java:1675)

at org.h2.command.Parser.parseSelectSimple(Parser.java:1782)

at org.h2.command.Parser.parseSelectSub(Parser.java:1669)

at org.h2.command.Parser.parseSelectUnion(Parser.java:1514)

at org.h2.command.Parser.parseSelect(Parser.java:1502)

at org.h2.command.Parser.parsePrepared(Parser.java:405)

at org.h2.command.Parser.parse(Parser.java:279)

at org.h2.command.Parser.parse(Parser.java:251)

at org.h2.command.Parser.prepareCommand(Parser.java:217)

at org.h2.engine.Session.prepareLocal(Session.java:415)

at org.h2.engine.Session.prepareCommand(Session.java:364)

at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1119)

at org.h2.jdbc.JdbcPreparedStatement.<init>(JdbcPreparedStatement.java:71)

at org.h2.jdbc.JdbcConnection.prepareStatement(JdbcConnection.java:267)

at org.eclipse.birt.report.data.oda.jdbc.Statement.prepare(Statement.java:131)

... 118 more




[Updated on: Mon, 14 October 2013 09:21]

Report message to a moderator

Re: EngineException Error [message #1137159 is a reply to message #1137122] Mon, 14 October 2013 09:48 Go to previous message
donino donino is currently offline donino doninoFriend
Messages: 183
Registered: July 2011
Senior Member
Did you try to include the DB schema name in the query, for this table CONFIG_SYSTEM? Is it a view or a table? The user setup in the BIRT datasource has permissions to access it?
Previous Topic:Embedding HTML in DOCX (4.3.1)
Next Topic:Background Image in Master Page
Goto Forum:
  


Current Time: Wed Jun 07 13:35:52 GMT 2023

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

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

Back to the top