SerializingConverter.convert() has thrown a SerializationFailedException

java.io.NotSerializableException
Javadoc
Thrown when an instance is required to have a Serializable interface. The serialization runtime or the class of the instance can throw this exception. The argument should be the name of the class. @author unascribed @since JDK1.1
at java.io.ObjectOutputStream.writeObject0
Source
at java.io.ObjectOutputStream.defaultWriteFields
Source
at java.io.ObjectOutputStream.writeSerialData
Source
at java.io.ObjectOutputStream.writeOrdinaryObject
Source
at java.io.ObjectOutputStream.writeObject0
Source
at java.io.ObjectOutputStream.writeObject
Source
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
10 frames hidden

Typical Exception Messages

  1. Failed to serialize object using DefaultSerializer; nested exception is java.io.NotSerializableException: org.springframework.social.connect.support.ConnectionFactoryRegistry
  2. Failed to serialize object using DefaultSerializer; nested exception is java.io.NotSerializableException: reactor.bus.EventBus

Origin

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

  1. thomasheinenvia GitHub11 months ago
    Cannot serialize; nested exception is org.springframework.core.serializer.support.SerializationFailedException: Failed to serialize object using DefaultSerializer; nested exception is java.io.NotSerializableException: reactor.bus.EventBus
  2. Rubyvia Stack Overflow2 years ago
    Failed to serialize object using DefaultSerializer; nested exception is java.io.NotSerializableException: org.springframework.social.connect.support.ConnectionFactoryRegistry