Describe the bug
java.io.NotSerializableException: software.amazon.awssdk.core.util.DefaultSdkAutoConstructList
Regression Issue
Expected Behavior
There should be no errors when serializing software.amazon.awssdk.services.dynamodb.model.AttributeValue
Current Behavior
Exception is thrown.
java.io.NotSerializableException: software.amazon.awssdk.core.util.DefaultSdkAutoConstructList
Reproduction Steps
'''
public String serialize(Serializable object) throws SerializationException {
try (ByteArrayOutputStream baos = new ByteArrayOutputStream(); ObjectOutputStream objectOutputStream = new ObjectOutputStream(
baos)) {
objectOutputStream.writeObject(object);
objectOutputStream.flush();
return encoder.encodeToString(baos.toByteArray());
} catch (IOException e) {
throw new SerializationException(e);
}
}
void test(AttributeValue av) {
serialize(av);
}
'''
Possible Solution
No response
Additional Information/Context
No response
AWS Java SDK version used
2.30.31
JDK version used
1.8
Operating System and version
Mac OS