bobolounna / restfb

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

SSLKeyException #172

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
We are testing RestFB in 1.6.9 version.
We used an active acces_token :
  FacebookClient client = new DefaultFacebookClient(this.currentToken);
  User user = client.fetchObject("me", User.class);

What is the expected output? What do you see instead?
We don't access to the user data. An exception is launch :

com.restfb.exception.FacebookNetworkException: A network error occurred while 
trying to communicate with Facebook: Facebook reques
t failed (HTTP status code null)
        at com.restfb.DefaultFacebookClient.makeRequestAndProcessResponse(DefaultFacebookClient.java:492)
        at com.restfb.DefaultFacebookClient.makeRequest(DefaultFacebookClient.java:469)
        at com.restfb.DefaultFacebookClient.makeRequest(DefaultFacebookClient.java:428)
        at com.restfb.DefaultFacebookClient.fetchObject(DefaultFacebookClient.java:238)
        at com.accor.accorhotels.social.proto.FacebookServiceImpl.findOfflineDataWithRestFB(FacebookServiceImpl.java:128)
        Truncated. see log file for complete stacktrace
javax.net.ssl.SSLKeyException: [Security:090504]Certificate chain received from 
graph.facebook.com - 66.220.147.16 failed hostname
 verification check. Certificate contained *.facebook.com but check expected graph.facebook.com
        at com.certicom.tls.interfaceimpl.TLSConnectionImpl.fireException(Unknown Source)
        at com.certicom.tls.interfaceimpl.TLSConnectionImpl.fireAlertSent(Unknown Source)
        at com.certicom.tls.record.handshake.HandshakeHandler.fireAlert(Unknown Source)
        at com.certicom.tls.record.handshake.HandshakeHandler.fireAlert(Unknown Source)
        at com.certicom.tls.record.handshake.ClientStateReceivedServerHello.handle(Unknown Source)

The application is runnning on weblogic 10. An apache server is in front of 
weblogic.

Original issue reported on code.google.com by pascal.c...@gmail.com on 30 Jan 2012 at 2:10

GoogleCodeExporter commented 8 years ago
I am getting a very similar error when trying to use RestFB from my development 
computer running weblogic 10.  I have no apache server running at all:

<Mar 12, 2012 1:52:25 PM EDT> <Warning> <Security> <BEA-090477> <Certificate 
chain received from graph.facebook.com - 69.171.234.98 was not trusted causing 
SSL handshake failure.>

javax.net.ssl.SSLKeyException: [Security:090477]Certificate chain received from 
graph.facebook.com - 69.171.234.98 was not trusted causing SSL handshake 
failure.

Hitting the graph API directly using Apache HTTPClient causes no errors.  Any 
suggestions?

Original comment by lukelap...@gmail.com on 12 Mar 2012 at 6:47

GoogleCodeExporter commented 8 years ago
Does RestFB work for you outside of Weblogic?

Original comment by m...@xmog.com on 12 Mar 2012 at 6:50

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I have not tested outside weblogic yet.  I have Tomcat set up but might take a 
while to get it up and running.  Has anyone used any version of this API 
successfully on Weblogic?

Original comment by lukelap...@gmail.com on 12 Mar 2012 at 7:03