SerializingConverter.convert() has thrown a SerializationFailedException

java.lang.IllegalArgumentException
at org.springframework.core.serializer.DefaultSerializer.serialize
at org.springframework.core.serializer.support.SerializingConverter.convert
org.springframework.core.serializer.support.SerializationFailedException
at org.springframework.core.serializer.support.SerializingConverter.convert
at org.springframework.core.serializer.support.SerializingConverter.convert
3 frames hidden

Typical Exception Messages

  1. Failed to serialize object using DefaultSerializer; nested exception is java.lang.IllegalArgumentException: DefaultSerializer requires a Serializable payload but received an object of type [org.neo4j.ogm.session.Neo4jSession]
  2. Failed to serialize object using DefaultSerializer; nested exception is java.lang.IllegalArgumentException: DefaultSerializer requires a Serializable payload but received an object of type [com.testing.PackageService$$EnhancerBySpringCGLIB$$c6d078fb]
  3. Failed to serialize object using DefaultSerializer; nested exception is java.lang.IllegalArgumentException: DefaultSerializer requires a Serializable payload but received an object of type [com.headerbid.util.User]
  4. Failed to serialize object using DefaultSerializer; nested exception is java.lang.IllegalArgumentException: DefaultSerializer requires a Serializable payload but received an object of type [org.springframework.security.oauth2.client.OAuth2RestTemplate]

Specific cases

We have seen this error pattern in the following webpages (8)

  1. yangdailinvia GitHub8 months ago
    Failed to serialize object using DefaultSerializer; nested exception is java.lang.IllegalArgumentException: DefaultSerializer requires a Serializable payload but received an object of type [org.springframework.security.oauth2.client.OAuth2RestTemplate]
  2. Luanne Misquittavia Spring JIRA1 year ago
    Failed to serialize object using DefaultSerializer; nested exception is java.lang.IllegalArgumentException: DefaultSerializer requires a Serializable payload but received an object of type [org.neo4j.ogm.session.Neo4jSession]
  3. Paul Yiuvia Stack Overflow2 years ago
    Failed to serialize object using DefaultSerializer; nested exception is java.lang.IllegalArgumentException: DefaultSerializer requires a Serializable payload but received an object of type [com.testing.PackageService$$EnhancerBySpringCGLIB$$c6d078fb]
  4. Failed to serialize object using DefaultSerializer; nested exception is java.lang.IllegalArgumentException: DefaultSerializer requires a Serializable payload but received an object of type [org.neo4j.ogm.session.Neo4jSession]
  5. Luanne Misquittavia Spring JIRA2 years ago
    Failed to serialize object using DefaultSerializer; nested exception is java.lang.IllegalArgumentException: DefaultSerializer requires a Serializable payload but received an object of type [org.neo4j.ogm.session.Neo4jSession]
  6. Unknown authorvia fatal-errors.com2 years ago
    Failed to serialize object using DefaultSerializer; nested exception is java.lang.IllegalArgumentException: DefaultSerializer requires a Serializable payload but received an object of type [org.neo4j.ogm.session.Neo4jSession]
  7. Unknown authorvia troublevn.com2 years ago
    Failed to serialize object using DefaultSerializer; nested exception is java.lang.IllegalArgumentException: DefaultSerializer requires a Serializable payload but received an object of type [org.neo4j.ogm.session.Neo4jSession]
  8. Cerynivia Stack Overflow2 years ago
    Failed to serialize object using DefaultSerializer; nested exception is java.lang.IllegalArgumentException: DefaultSerializer requires a Serializable payload but received an object of type [org.neo4j.ogm.session.Neo4jSession]