org.scribe.exceptions.OAuthConnectionException

There was a problem while creating a connection to the remote service.

Samebug tips2

This might be caused by unmatching versions of SSL. Java starts normally with SSLv2 and your server might not be able to negotiate. You have to force Java to use SSLv3. See this comment: https://goo.gl/hx0YB3

It's possible you're trying to write to a connection that's already closed. Another cause for this is that you closed the socket with unread data in the socket receive buffer.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web28

  • There was a problem while creating a connection to the remote service.
  • There was a problem while creating a connection to the remote service.
  • via Stack Overflow by trante
    , 1 year ago
    There was a problem while creating a connection to the remote service.
  • Stack trace

    • org.scribe.exceptions.OAuthConnectionException: There was a problem while creating a connection to the remote service. at org.scribe.model.Request.send(Request.java:70) at org.scribe.model.Request.send(Request.java:76) at com.flickr4java.flickr.REST.get(REST.java:175) at com.flickr4java.flickr.photos.geo.GeoInterface.getLocation(GeoInterface.java:73) at mx.oeste.crawler.FlickrCrawl.getPhotos(FlickrCrawl.java:125) at mx.oeste.crawler.FlickrCrawl.crawlFlickr(FlickrCrawl.java:68) at mx.oeste.crawler.TestThread.main(TestThread.java:29) Caused by: java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:196) at java.net.SocketInputStream.read(SocketInputStream.java:122) at sun.security.ssl.InputRecord.readFully(InputRecord.java:442) at sun.security.ssl.InputRecord.read(InputRecord.java:480) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:934) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1359) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1343) at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:563) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153) at org.scribe.model.Response.<init>(Response.java:29) at org.scribe.model.Request.doSend(Request.java:117) at org.scribe.model.Request.send(Request.java:66) ... 6 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    3 times, 2 weeks ago
    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 1 year ago
    298 more bugmates