Command gateway sendAndWait with serialization error

Hi,

I have a configuration with a distributed command bus with jgroups and Axon 2.2.

I use CommandGateway.sendAndWait(command) method.

It seems that when i have a problem during serialization of my command (which is not purpose of my question), the exception is displayed but sendAndWait method is infinity blocked.

Is it the normal process and should i use a sendAndWait with timout method instead to prevent the problem when i have this kind of error ?

Best regards,

Baptiste.

Hi,

to me, this sounds like a bug. Under no circumstance should a thread be blocked indefinitely. In this case, the sendAndWait should have thrown the exception caused by the serializer.
Could you create a issue for it on issues.axonframework.org? I’ll look into it as soon as possible.

Cheers,

Allard

Hi Allard,

i have created the issue AXON-252

Best regards,

Baptiste.