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

Spring JIRA | Pawel Dolecinski | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded 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