fernandezpablo85/scribe-java — Issue #211: org.scribe.exceptions.OAuthException: Problems while creating connection.
Author: naveenit7sep
Created: 2012-01-04 04:59:18+00:00
State: open

Hi,

When i try to connect to twitter, i get the following exception, i was able to connect from one machine and the same code doesnt work on other machine. Is it something to do with Java version ? I am using scribe 1.3 and apache commons codec 1.6.

Exception in thread "main" org.scribe.exceptions.OAuthException: Problems while creating connection.
at org.scribe.model.Request.send(Request.java:70)
at org.scribe.model.OAuthRequest.send(OAuthRequest.java:12)
at mycode.rssfeedtweeter.code.TweetFeed.main(TweetFeed.java:33)
Caused by: java.net.ProtocolException: Can't reset method: already connected
at java.net.HttpURLConnection.setRequestMethod(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.setRequestMethod(Unknown Source)
at org.scribe.model.Request.doSend(Request.java:96)
at org.scribe.model.Request.send(Request.java:62)
... 2 more

Thanks,
Naveen