I get the below-mentioned exception thrown from saga event handler. I have configured distributed command bus using spring cloud connector, and whenever a command is dispatched from saga event handler using the command gateway this exception id thrown.
Command ‘com.metamagic.ms.commands.PlaceOrderCommand’ resulted in com.thoughtworks.xstream.converters.ConversionException(Failed calling method
---- Debugging information ----
message : Failed calling method
cause-exception : com.thoughtworks.xstream.converters.ConversionException
cause-message : Failed calling method
method : java.util.concurrent.CopyOnWriteArrayList.writeObject()
-------------------------------)
My saga event handler code snippet.
@StartSaga
@SagaEventHandler(associationProperty = “userId”)
public void handle(Event event) {
// business logic
commandGateway
.send(new Command(arguments));
}
Any help will be appreciated.