winterstein / JTwitter

Java library for using Twitter (+ Identica & Wordpress). Open source under LGPL
http://www.winterwell.com/software/jtwitter.php
69 stars 27 forks source link

OAuth NullPointerException #12

Closed darkfrog26 closed 4 years ago

darkfrog26 commented 4 years ago

Following the example on the website everything works until I get to getOAuthAccessToken:

java.lang.NullPointerException
  at twitter4j.HttpParameter.containsJson(HttpParameter.java:171)
  at twitter4j.HttpClientImpl.handleRequest(HttpClientImpl.java:129)
  at twitter4j.HttpClientBase.request(HttpClientBase.java:57)
  at twitter4j.HttpClientBase.post(HttpClientBase.java:86)
  at twitter4j.auth.OAuthAuthorization.getOAuthAccessToken(OAuthAuthorization.java:125)
  at twitter4j.TwitterBaseImpl.getOAuthAccessToken(TwitterBaseImpl.java:340)

Any feedback on how to resolve this issue?