Announcement Announcement Module
Collapse
No announcement yet.
UserConnection table record insertion failing for some of the fb users Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • UserConnection table record insertion failing for some of the fb users

    Hi,

    We've migrated our spring social application to 1.0.2.RELEASE version and it is deployed in production too. we are randomly getting issue for some Facebook users whose records are not inserting into USERCONNECTION table when they try to join our application through facebook app. We have following two methods in our JoinFormController class.

    Code:
    user = saveUserInfo(joinForm, request, response);
    handleSocialOperationsUponJoin(user, request, response);
    User information is getting stored successfully in our application specific user table but record insertion is not happening in USERCONNECTION table for some of the facebook users.

    Below code snippet is present in handleSocialOperationsUponJoin method

    Code:
    protected void handleSocialOperationsUponJoin(User user, HttpServletRequest request, HttpServletResponse response) {
    
    Connection<?> signInAttemptConn = ProviderSignInUtils.getConnection(RequestContextHolder.getRequestAttributes());
            if (signInAttemptConn != null) {
    socialSignInUtils.signin(String.valueOf(user.getMemberID()), request, response);
    
    ProviderSignInUtils.handlePostSignUp(String.valueOf(user.getMemberID()), RequestContextHolder.getRequestAttributes());
    .
    .
    }
    }

    What i am doubting is signInAttemptConn might be coming as null for some of the users. Is there any change to get signInAttemptConn object be null for some of the facebook users?

    One more important thing is, this is only happening in PROD env and it is working fine When we point production database in local. No exception is thrown in log.

    Your Help will be appreciated
Working...
X