java.lang.RuntimeException: java.io.NotSerializableException: org.springframework.social.connect.support.OAuth2Connection

Spring JIRA | Pawel Dolecinski | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.

    Root Cause Analysis

    1. java.lang.RuntimeException

      java.io.NotSerializableException: org.springframework.social.connect.support.OAuth2Connection

      at com.google.appengine.tools.development.SerializableObjectsOnlyHashSessionManager$SerializableObjectsOnlyHttpSession.checkCanSerialize()
    2. AppEngine Testing
      SerializableObjectsOnlyHashSessionManager$SerializableObjectsOnlyHttpSession.setAttribute
      1. com.google.appengine.tools.development.SerializableObjectsOnlyHashSessionManager$SerializableObjectsOnlyHttpSession.checkCanSerialize(SerializableObjectsOnlyHashSessionManager.java:66)
      2. com.google.appengine.tools.development.SerializableObjectsOnlyHashSessionManager$SerializableObjectsOnlyHttpSession.setAttribute(SerializableObjectsOnlyHashSessionManager.java:43)
      2 frames
    3. Spring Security
      SecurityContextPersistenceFilter.doFilter
      1. org.springframework.security.web.context.HttpSessionSecurityContextRepository$SaveToSessionResponseWrapper.saveContext(HttpSessionSecurityContextRepository.java:289)
      2. org.springframework.security.web.context.HttpSessionSecurityContextRepository.saveContext(HttpSessionSecurityContextRepository.java:104)
      3. org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:93)
      3 frames