SerializingConverter.convert() has thrown a SerializationFailedException

java.lang.IllegalArgumentException
Javadoc
Thrown to indicate that a method has been passed an illegal or inappropriate argument. @author unascribed @since JDK1.0
at org.springframework.core.serializer.DefaultSerializer.serialize
(source)
at org.springframework.core.serializer.support.SerializingConverter.convert
(source)
org.springframework.core.serializer.support.SerializationFailedException
Javadoc
Wrapper for the native IOException (or similar) when a {@link org.springframework.core.serializer.Serializer} or {@link org.springframework.core.serializer.Deserializer} failed. Thrown by {@link SerializingConverter} and {@link DeserializingConverter}. @author Gary Russell @author Juergen Hoeller @since 3.0.5
at org.springframework.core.serializer.support.SerializingConverter.convert
(source)
at org.springframework.core.serializer.support.SerializingConverter.convert
(source)
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

External results for this pattern (5)

  1. Luanne Misquittavia Spring JIRA2 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.neo4j.ogm.session.Neo4jSession]
    Show stack trace
  2. Cerynivia Stack Overflow2 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.neo4j.ogm.session.Neo4jSession]
    Show stack trace
  3. yangdailinvia GitHub11 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]
    Show stack trace
  4. 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]
    Show stack trace
  5. 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]
    Show stack trace