I am using twitter4j library and get a strange error that I do not understand how to fix. Maybe anybody has come across the same issue before and would be able to to explain what is wrong.
Exception I get: twitter4j.TwitterException: 401:Authentication credentials were missing or incorrect. <?xml version="1.0" encoding="UTF-8"?> <hash> <request>/oauth/request_token</request> <error>Invalid / suspended application</error> </hash> twitter4j.http.HttpClient.httpRequest(HttpClient.java:477) twitter4j.http.HttpClient.getOauthRequestToken(HttpClient.java:167) twitter4j.Twitter.getOAuthRequestToken(Twitter.java:138) Code where it happends: Twitter twitter = new Twitter(); twitter.setOAuthConsumer(consumerKey, consumerSecret); RequestToken requestToken; try { requestToken = twitter.getOAuthRequestToken(); // exception happends here ................ Any help is appreciated.