Re: NullPointerException in Java-Client-Library

2014-10-28 Thread Gopi
I am facing the same issue while trying to migrate to 201409. Using GetRefreshToken sample code i created the refresh Token. I am trying to use the same refresh token that was generated and trying to generate GoogleCredential with OfflineCredentials am i missing something or something changed.

Re: NullPointerException in Java-Client-Library

2014-07-22 Thread Josh Radcliff (AdWords API Team)
Hi Stacie, It's quite possible that the transient *invalid_client* errors were leading to the NPEs. I definitely would like to improve the error handling so we do not mask the underlying OAuth error with an NPE. Cheers, Josh, AdWords API TEam On Monday, July 21, 2014 3:01:27 PM UTC-4, Stacie W

Re: NullPointerException in Java-Client-Library

2014-07-22 Thread Stacie Waleyko
Hi, We saw the exact same error on July 17 when trying to get a new access token. Since we have never seen it before, and it happened on the 17th, I was wondering if it was possibly triggered by errors from this other thread: "Failed to refresh access token. { "error" : "invalid_client" } on p

Re: NullPointerException in Java-Client-Library

2014-07-17 Thread Josh Radcliff (AdWords API Team)
Hi, Thanks for pointing this out. I believe this is the same issue highlighted on our github issues list: https://github.com/googleads/googleads-java-lib/issues/19 We're working on a fix -- please subscribe to notifications on the github issue for updates. Thanks, Josh, AdWords API Team On T

NullPointerException in Java-Client-Library

2014-07-17 Thread Alex
If the httpRequest is not successfull then the client-library tries to throw a TokenResponseException in com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(). But during the construction of that exception a NullPointerException is thrown. java.lang.NullPointerException com.googl