I'm having exactly the same error in the same scenario. Can you help me?
Thanks.
Fábio Peruchi
On Mon, Dec 3, 2012 at 10:07 AM, Robson Brock <rbrock@ciandt.com> wrote:
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.htmlThe 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