Good day,<br />
<br />
I'm sorry its once again a lengthy post to explain a problem I have. (ill add an example (with no real JDBC info later).<br />
<br />
We are going live with our reports on the iServer Express the database we use is an Oracle 11 Database .<br />
<br />
We have been using the ojdbc.jar (Implementation version 11.2.0.2.0). With just an SID connection <br />
jdbc:oracle:thin:[USER/PASSWORD]
@[HOST][:PORT]:SID<br />
<br />
Now in production were going to work on service level so that we can fall back to other databases when thing's go wrong (jdbc:oracle:thin:[USER/PASSWORD]
@//[HOST][:PORT]/SERVICE). <br />
<br />
Now I think the problem is in the way Library's share between each other.<br />
<br />
We have for the sake of ease of editing (and we thought this was the way to go) created several Library's we have the following library's:<br />
<br />
<ul class='bbc'><li> Connections.rptlibrary</li><li> Data.rptlibrary</li><li> Masterpages.rptlibrary</li><li> Styles.rptlibrary</li><li> Templates.rptlibrary</li></ul>
<br />
There are some interaction between the Library's<br />
<br />
The Data library inherets the conections from the connection library. And has a data set for the property binding.<br />
<blockquote class='ipsBlockquote' ><p>On a side note I find it weird that the Property binding is not inherited to the other library's</p></blockquote>
<br />
Then we have the Templates library. This inherets evry thing from Data.rptlibrary but creates some elements we use in the coverpages of our reports. (It also uses the Styles library for this of course).<br />
<br />
Now the problem is. The our query's work in Data.rptlibrary but when I run the same query in Templates.rptilbrary ( by opening the query and then go to preview resutls) I get the folowing stack trace:<br />
<blockquote class='ipsBlockquote' ><p>org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report.<br />
at org.eclipse.birt.report.engine.api.impl.DatasetPreviewTask.doRun(DatasetPreviewTask.java:135)<br />
at org.eclipse.birt.report.engine.api.impl.DatasetPreviewTask.runDataset(DatasetPreviewTask.java:97)<br />
at org.eclipse.birt.report.engine.api.impl.DatasetPreviewTask.execute(DatasetPreviewTask.java:49)<br />
at org.eclipse.birt.report.designer.data.ui.dataset.DataSetPreviewer.preview(DataSetPreviewer.java:58)<br />
at org.eclipse.birt.report.designer.data.ui.dataset.ResultSetPreviewPage$5.run(ResultSetPreviewPage.java:333)<br />
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)<br />
Caused by: org.eclipse.birt.report.data.adapter.api.AdapterException: An exception occurred during processing. Please see the following message for details:<br />
Cannot open the connection for the driver: org.eclipse.birt.report.data.oda.jdbc.<br />
org.eclipse.birt.report.data.oda.jdbc.JDBCException: There is an error in get connection, Listener refused the connection with the following error:<br />
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor<br />
.<br />
at org.eclipse.birt.report.data.adapter.impl.DataRequestSessionImpl.execute(DataRequestSessionImpl.java:637)<br />
at org.eclipse.birt.report.engine.api.impl.DatasetPreviewTask.extractQuery(DatasetPreviewTask.java:166)<br />
at org.eclipse.birt.report.engine.api.impl.DatasetPreviewTask.doRun(DatasetPreviewTask.java:126)<br />
... 5 more<br />
Caused by: org.eclipse.birt.data.engine.odaconsumer.OdaDataException: Cannot open the connection for the driver: org.eclipse.birt.report.data.oda.jdbc.<br />
org.eclipse.birt.report.data.oda.jdbc.JDBCException: There is an error in get connection, Listener refused the connection with the following error:<br />
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor<br />
.<br />
at org.eclipse.birt.data.engine.odaconsumer.ExceptionHandler.newException(ExceptionHandler.java:54)<br />
at org.eclipse.birt.data.engine.odaconsumer.ConnectionManager.openConnection(ConnectionManager.java:177)<br />
at org.eclipse.birt.data.engine.executor.DataSource.newConnection(DataSource.java:222)<br />
at org.eclipse.birt.data.engine.executor.DataSource.open(DataSource.java:210)<br />
at org.eclipse.birt.data.engine.impl.DataSourceRuntime.openOdiDataSource(DataSourceRuntime.java:208)<br />
at org.eclipse.birt.data.engine.impl.QueryExecutor.openDataSource(QueryExecutor.java:406)<br />
at org.eclipse.birt.data.engine.impl.QueryExecutor.prepareExecution(QueryExecutor.java:316)<br />
at org.eclipse.birt.data.engine.impl.PreparedQuery.doPrepare(PreparedQuery.java:448)<br />
at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.produceQueryResults(PreparedDataSourceQuery.java:190)<br />
at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.execute(PreparedDataSourceQuery.java:178)<br />
at org.eclipse.birt.data.engine.impl.PreparedOdaDSQuery.execute(PreparedOdaDSQuery.java:145)<br />
at org.eclipse.birt.report.data.adapter.impl.DataRequestSessionImpl.execute(DataRequestSessionImpl.java:617)<br />
... 7 more<br />
Caused by: org.eclipse.birt.report.data.oda.jdbc.JDBCException: There is an error in get connection, Listener refused the connection with the following error:<br />
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor<br />
.<br />
at org.eclipse.birt.report.data.oda.jdbc.JDBCDriverManager.doConnect(JDBCDriverManager.java:262)<br />
at org.eclipse.birt.report.data.oda.jdbc.JDBCDriverManager.getConnection(JDBCDriverManager.java:212)<br />
at org.eclipse.birt.report.data.oda.jdbc.Connection.connectByUrl(Connection.java:235)<br />
at org.eclipse.birt.report.data.oda.jdbc.Connection.open(Connection.java:160)<br />
at org.eclipse.datatools.connectivity.oda.consumer.helper.OdaConnection.open(OdaConnection.java:250)<br />
at org.eclipse.birt.data.engine.odaconsumer.ConnectionManager.openConnection(ConnectionManager.java:165)<br />
... 17 more<br /></p></blockquote>
<br />
So the weard thing is, I made sure the connection even works without the property binding (somting that does not inherit so well for some weard reason). The query works in the library it was created in. But not in the library that inherets it and thus it does not work in a real repport/temlate.<br />
<br />
What could be the couse of this?