java.lang.NullPointerException: No authentication header information google oauthentication
问题 I am using the Google Data Protocol Client Libraries for authenticating my users. Here is the code I have so far: GoogleOAuthParameters oauthParameters = new GoogleOAuthParameters(); oauthParameters.setOAuthConsumerKey(CONSUMER_KEY); oauthParameters.setOAuthConsumerSecret(SECRET_KEy); GoogleOAuthHelper oauthHelper = new GoogleOAuthHelper(new OAuthHmacSha1Signer()); oauthParameters.setScope(SCOPE); oauthParameters.setOAuthVerifier(oauth_verifier); oauthParameters.setOAuthToken(oauth_token);