java - SpagoBI/BIRT JDBC connection -
i made datasource connection in spagobi using jdbc connection [com.mysql.jdbc.driver ( v5.0)] connection succesfull.then start build new data set. see tables in database. when click preview results getting error.
error happened while running report:
org.eclipse.birt.report.engine.api.engineexception: error happened while running report. @ org.eclipse.birt.report.engine.api.impl.datasetpreviewtask.dorun(datasetpreviewtask.java:135) @ org.eclipse.birt.report.engine.api.impl.datasetpreviewtask.rundataset(datasetpreviewtask.java:97) @ org.eclipse.birt.report.engine.api.impl.datasetpreviewtask.execute(datasetpreviewtask.java:49) @ org.eclipse.birt.report.designer.data.ui.dataset.datasetpreviewer.preview(datasetpreviewer.java:69) @ org.eclipse.birt.report.designer.data.ui.dataset.resultsetpreviewpage$5.run(resultsetpreviewpage.java:336) @ org.eclipse.jface.operation.modalcontext$modalcontextthread.run(modalcontext.java:121) caused by: org.eclipse.birt.data.engine.odaconsumer.odadataexception: cannot result set metadata. org.eclipse.birt.report.data.oda.jdbc.jdbcexception: sql statement not return resultset object. sql error #1:you have error in sql syntax; check manual corresponds mysql server version right syntax use near 'option sql_select_limit=500' @ line 1 ; com.mysql.jdbc.exceptions.mysqlsyntaxerrorexception: have error in sql syntax; check manual corresponds mysql server version right syntax use near 'option sql_select_limit=500' @ line 1 @ org.eclipse.birt.data.engine.odaconsumer.exceptionhandler.newexception(exceptionhandler.java:52) @ org.eclipse.birt.data.engine.odaconsumer.exceptionhandler.throwexception(exceptionhandler.java:108) @ org.eclipse.birt.data.engine.odaconsumer.exceptionhandler.throwexception(exceptionhandler.java:84) @ org.eclipse.birt.data.engine.odaconsumer.preparedstatement.getruntimemetadata(preparedstatement.java:414) @ org.eclipse.birt.data.engine.odaconsumer.preparedstatement.getprojectedcolumns(preparedstatement.java:377) @ org.eclipse.birt.data.engine.odaconsumer.preparedstatement.dogetmetadata(preparedstatement.java:347) @ org.eclipse.birt.data.engine.odaconsumer.preparedstatement.execute(preparedstatement.java:563) @ org.eclipse.birt.data.engine.executor.datasourcequery.execute(datasourcequery.java:964) @ org.eclipse.birt.data.engine.impl.preparedodadsquery$odadsqueryexecutor.executeodiquery(preparedodadsquery.java:428) @ org.eclipse.birt.data.engine.impl.queryexecutor.execute(queryexecutor.java:1142) @ org.eclipse.birt.data.engine.impl.serviceforqueryresults.executequery(serviceforqueryresults.java:232) @ org.eclipse.birt.data.engine.impl.queryresults.getresultiterator(queryresults.java:177) @ org.eclipse.birt.data.engine.impl.queryresults.getresultmetadata(queryresults.java:132) @ org.eclipse.birt.report.engine.api.impl.datasetpreviewtask.extractquery(datasetpreviewtask.java:169) @ org.eclipse.birt.report.engine.api.impl.datasetpreviewtask.dorun(datasetpreviewtask.java:126) ... 5 more caused by: org.eclipse.birt.report.data.oda.jdbc.jdbcexception: sql statement not return resultset object. sql error #1:you have error in sql syntax; check manual corresponds mysql server version right syntax use near 'option sql_select_limit=500' @ line 1 ; com.mysql.jdbc.exceptions.mysqlsyntaxerrorexception: have error in sql syntax; check manual corresponds mysql server version right syntax use near 'option sql_select_limit=500' @ line 1 @ org.eclipse.birt.report.data.oda.jdbc.statement.executequery(statement.java:464) @ org.eclipse.birt.report.data.oda.jdbc.statement.getmetausingpolicy1(statement.java:403) @ org.eclipse.birt.report.data.oda.jdbc.statement.getmetadata(statement.java:303) @ org.eclipse.birt.report.data.oda.jdbc.bidi.bidistatement.getmetadata(bidistatement.java:56) @ org.eclipse.datatools.connectivity.oda.consumer.helper.odaquery.dogetmetadata(odaquery.java:412) @ org.eclipse.datatools.connectivity.oda.consumer.helper.odaquery.getmetadata(odaquery.java:379) @ org.eclipse.birt.data.engine.odaconsumer.preparedstatement.getruntimemetadata(preparedstatement.java:407) ... 16 more caused by: com.mysql.jdbc.exceptions.mysqlsyntaxerrorexception: have error in sql syntax; check manual corresponds mysql server version right syntax use near 'option sql_select_limit=500' @ line 1 @ com.mysql.jdbc.sqlerror.createsqlexception(sqlerror.java:936) @ com.mysql.jdbc.mysqlio.checkerrorpacket(mysqlio.java:2985) @ com.mysql.jdbc.mysqlio.sendcommand(mysqlio.java:1631) @ com.mysql.jdbc.mysqlio.sqlquerydirect(mysqlio.java:1723) @ com.mysql.jdbc.connection.execsql(connection.java:3277) @ com.mysql.jdbc.connection.execsql(connection.java:3206) @ com.mysql.jdbc.preparedstatement.executequery(preparedstatement.java:1447) @ org.eclipse.birt.report.data.oda.jdbc.statement.executequery(statement.java:460) ... 22 more
my mysql query
select * customers
i using spagobistudio_5.1.0_win64_19012015, java 1.7
https://dev.mysql.com/downloads/file/?id=462850
downloads driver , use in connection when create datasouce
and blem solved
Comments
Post a Comment