kartit / restfb

Automatically exported from code.google.com/p/restfb
0 stars 0 forks source link

com.restfb.exception.FacebookNetworkException: A network error occurred while trying to communicate with Facebook: Facebook request failed (HTTP status code null) #204

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Running Example code: 
http://code.google.com/p/restfb/source/browse/trunk/RestFB/source/examples/com/r
estfb/example/Example.java?r=97

What is the expected output? What do you see instead?

Expected output: my username and page likes count

Exception is thrown

What version of the product are you using? On what operating system?

Version: RestFB 1.6.12
OS: Ubuntu 12.04

Please provide any additional information below.

Exception in thread "main" com.restfb.exception.FacebookNetworkException: A 
network error occurred while trying to communicate with Facebook: Facebook 
request failed (HTTP status code null)
    at com.restfb.DefaultFacebookClient.makeRequestAndProcessResponse(DefaultFacebookClient.java:615)
    at com.restfb.DefaultFacebookClient.makeRequest(DefaultFacebookClient.java:592)
    at com.restfb.DefaultFacebookClient.makeRequest(DefaultFacebookClient.java:556)
    at com.restfb.DefaultFacebookClient.fetchObject(DefaultFacebookClient.java:244)
    at za.co.fnb.smc.frontend.test.RestFB.fetchObject(RestFB.java:62)
    at za.co.fnb.smc.frontend.test.RestFB.runEverything(RestFB.java:56)
    at za.co.fnb.smc.frontend.test.RestFB.main(RestFB.java:39)
Caused by: java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
    at java.net.Socket.connect(Socket.java:546)
    at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:584)
    at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:178)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:409)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)
    at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:275)
    at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:332)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:876)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)
    at com.restfb.DefaultWebRequestor.executeGet(DefaultWebRequestor.java:99)
    at com.restfb.DefaultFacebookClient$2.makeRequest(DefaultFacebookClient.java:597)
    at com.restfb.DefaultFacebookClient.makeRequestAndProcessResponse(DefaultFacebookClient.java:613)
    ... 6 more

Original issue reported on code.google.com by Modumo.M...@gmail.com on 30 Apr 2013 at 8:57