Announcement Announcement Module
Collapse
No announcement yet.
Error in redirect when using connect controller to connect to facebook Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error in redirect when using connect controller to connect to facebook

    i am using facebook login plugin for login and on successful login redirects it to spring connect controller for completing facebook handshake . Facebook handshake is successful.

    I get the below error on the redirect. Spring social is redirecting to /connect/facebook/connect/facebook and this does not exist. I don't see any record in the user connection table. Can someone help me?

    Mar 31, 2013 9:42:05 AM org.springframework.social.connect.web.ConnectCont roller oauth2Callback
    WARNING: Exception while handling OAuth2 callback (Expression parsing failed; nested exception is org.springframework.expression.spel.SpelEvaluation Exception: EL1007Epos 0): Field or property 'name' cannot be found on null). Redirecting to facebook connection status page.
    Mar 31, 2013 9:42:05 AM org.springframework.web.servlet.DispatcherServlet noHandlerFound
    WARNING: No mapping found for HTTP request with URI [/fb1/connect/facebook/connect/facebook] in DispatcherServlet with name 'appServlet'red

    I have attached the code.

  • #2
    Cause of issue->

    1. Application url ended with / causing the redirect to connect/facebook/connect/facebook
    2. I was not setting the user id in request scope. I set the user id in session and changed spring config to pick up the user id from session.

    Comment

    Working...
    X