XStream: Cannot create java.beans.PropertyChangeSupport by JDK serialization


When attempting to serialize a bean, which uses property change support, XStream throws the following exepection.

message : Cannot create java.beans.PropertyChangeSupport by JDK serialization : null
cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException


The only solution I found was to ignore the field pointing to the PropertyChangeSupport class in the class, which is to be serialized by adding „transient“.

private transient PropertyChangeSupport propertySupport;

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s