Monday, December 3, 2012

Problem to connect to CloudSQL on Websphere 7

Hi all,

We have a problem when try to connect a CloudSQL database from IBM Websphere 7.
If we try to connect own application by command-line or JUnit on Eclipse Juno, the return is OK (no problem).
However, when we try to connect from IBM Websphere 7, running on my local machine, we receive this error:

java.sql.SQLException: Unable to load OAuth2 refresh or access token. Please run the google_sql command line tool once to setup cached credentials. See: http://code.google.com/apis/sql/docs/commandline.html


The code used is:

DriverManager.registerDriver(new com.google.cloud.sql.Driver());
Connection c = DriverManager
.getConnection("jdbc:google:rdbms://<my_instance>/<my_database>");


Thanks.

No comments:

Post a Comment