I am not able to sign in through Facebook for implementing social connect features in cq 5.6. I get a connection failed exception every time I try logging into the Facebook account. I have followed all the steps mentioned in http://dev.day.com/docs/en/cq/current/administering/social_communities/social_connect.html. I get the following exception in the error log:
16.01.2014 10:23:36.037 *ERROR* [0:0:0:0:0:0:0:1 [1389848015024] GET /etc/cloudservices/facebookconnect/fbconnect-niki.login.html/callback/connect HTTP/1.1] com.adobe.granite.auth.oauth.impl.oauth2.Oauth2Helper Problems while creating connection. 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 org.scribe.oauth.OAuth20ServiceImpl.getAccessToken(OAuth20ServiceImpl.java:36)
at com.adobe.granite.auth.oauth.impl.oauth2.Oauth2Helper.requestAccessCode(Oauth2Helper.java:95)
at com.adobe.granite.auth.oauth.impl.servlet.OAuthProfileImportServlet.requestAccessToken(OAuthProfileImportServlet.java:114)
at com.adobe.granite.auth.oauth.impl.servlet.OAuthProfileImportServlet.doGet(OAuthProfileImportServlet.java:82)
at org.apache.sling.api.servlets.SlingSafeMethodsServlet.mayService(SlingSafeMethodsServlet.java:268)
....
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)
at org.scribe.model.Response.<init>(Response.java:27)
at org.scribe.model.Request.doSend(Request.java:110)
at org.scribe.model.Request.send(Request.java:62)
... 136 more
16.01.2014 10:23:36.039 *WARN* [0:0:0:0:0:0:0:1 [1389848015024] GET /etc/cloudservices/facebookconnect/fbconnect-niki.login.html/callback/connect HTTP/1.1] com.adobe.granite.auth.oauth.impl.oauth2.Oauth2Helper token was null or not in UNAUTHORIZED state:1
16.01.2014 10:23:36.039 *ERROR* [0:0:0:0:0:0:0:1 [1389848015024] GET /etc/cloudservices/facebookconnect/fbconnect-niki.login.html/callback/connect HTTP/1.1] com.adobe.granite.auth.oauth.impl.servlet.OAuthProfileImportServlet requestAccessToken: could not retrieve user
16.01.2014 10:23:36.426 *ERROR* [0:0:0:0:0:0:0:1 [1389848016425] GET /etc/clientcontext/default/contextstores/profiledata/loader.json HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException org.apache.sling.api.SlingException:
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspExceptionInternal(JspServletWrapper.java:691)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:608)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:533)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:449)
.......
at com.day.j2ee.servletengine.HttpListener$Worker.run(HttpListener.java:644)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: Invalid authorizable name ''
at org.apache.jackrabbit.core.security.user.UserManagerImpl.getAuthorizable(UserManagerImpl.java:434)
at com.adobe.granite.security.user.internal.UserPropertiesServiceImpl.getAuthorizablePath(UserPropertiesServiceImpl.java:122)
at com.adobe.granite.security.user.internal.UserPropertiesManagerImpl.getUserProperties(UserPropertiesManagerImpl.java:112)
at org.apache.jsp.libs.cq.personalization.components.profileloader.command.load.load_json_jsp._jspService(load_json_jsp.java:171)
at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:502)
... 83 more
Can someone help me out in finding the issue here?
Thanks
Nikitha
Hi Nikitha, Could you please let me were you able resolve this issue? is this related to firewall?
Views
Replies
Total Likes
Hi Nikitha,
For information about Facebook login, you can watch the demo video here: http://www.aemcasts.com/facebook/episode-16.html
Thanks,
Ratna Kumar.
Views
Replies
Total Likes
Hi Nikitha,
I am also facing the same issue in AEM 6.1.
Could you please let us know how did you resolve this issue?
Thanks
Souvik
Views
Replies
Total Likes
Hi Souvik
Nikitha was my team mate and she has moved out for higher studies 1 year back. As far as I could remember, this was some kind of firewall issue. But I don't have much details on this.
Thanks
Veena