SEVERE: Unable to open connection. [message #521084] |
Tue, 16 March 2010 08:47  |
Eclipse User |
|
|
|
I'm rather new to BIRT and was getting along just fine, but now I'm stuck with a database connection problem.
(Using Birt 2.5.1)
I created my report on my desktop with a JDBC Connection to my MYSQL database on another machine, by hardcoding the IP of the MYSQL server. This worked fine until of course when I try to deploy the report to production and the IP is different.
So, I set up a SSH tunnel to forward localhost:3306 to mysqlserver:3306.
Mysqlserver is the same machine the reprots will be deployed to, assuming then that the deployed report would happily connect to localhost on the production server.
The report (and I've recreated the simplest of reports to test with) works on my desktop, but when I deploy the report to the remote machine I keep getting:
16 Mar 2010 2:14:15 PM org.eclipse.birt.data.engine.odaconsumer.ConnectionManager openConnection
SEVERE: Unable to open connection.
org.eclipse.birt.report.data.oda.jdbc.JDBCException: There is an error in get connection, Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server..
at org.eclipse.birt.report.data.oda.jdbc.JDBCDriverManager.doConnect(JDBCDriverManager.java:262)
at org.eclipse.birt.report.data.oda.jdbc.JDBCDriverManager.getConnection(JDBCDriverManager.java:212)
at org.eclipse.birt.report.data.oda.jdbc.Connection.connectByUrl(Connection.java:234)
at org.eclipse.birt.report.data.oda.jdbc.Connection.open(Connection.java:160)
at org.eclipse.datatools.connectivity.oda.consumer.helper.OdaConnection.open(OdaConnection.java:238)
at org.eclipse.birt.data.engine.odaconsumer.ConnectionManager.openConnection(ConnectionManager.java:180)
at org.eclipse.birt.data.engine.executor.DataSource.newConnection(DataSource.java:193)
at org.eclipse.birt.data.engine.executor.DataSource.open(DataSource.java:181)
The connection in the rptdesign file is as follows
<data-sources>
<oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc" name="Data Source" id="7">
<text-property name="displayName"></text-property>
<list-property name="privateDriverProperties">
<ex-property>
<name>contentBidiFormatStr</name>
<value>ILYNN</value>
</ex-property>
<ex-property>
<name>metadataBidiFormatStr</name>
<value>ILYNN</value>
</ex-property>
</list-property>
<property name="odaDriverClass">com.mysql.jdbc.Driver</property>
<property name="odaURL">jdbc:mysql://localhost/DB_PROBE</property>
<property name="odaUser">probe</property>
<encrypted-property name="odaPassword" encryptionID="base64">Y2xpZW50X3Bhc3M=</encrypted-property>
</oda-data-source>
</data-sources>
And I can happily connect to mysql from localhost with username probe and supplied password.
But for some reason BIRT does not want to connect via jdbc driver ??
Help please.
Thanx
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09928 seconds