I'm working on a trivial create / update example using the AxonIQ EventStore. My create functionality works 100%. Update mostly works (read model gets updated) but I get this in my output and logs:
{"timestamp":1512549981707,"status":500,"error":"Internal Server Error","exception":"org.axonframework.commandhandling.model.ConcurrencyException","message":"OUT_OF_RANGE: [AXONIQ-2000] Invalid sequence number: 0 for aggregateId: f73d46d6-644e-4022-aa49-55bf886fd6f9 expecting: 1","path":"/status-type/f73d46d6-644e-4022-aa49-55bf886fd6f9"}
The sequence number is not being incremented. I thought this happened transparently behind the scenes?
Steps:
1. Create a new thing (generates new aggregate id)
2. Try to update the thing (using same aggregate id)
I have distinct Create and Update events.
Any suggestions?