I’ve been using the MongoDB serialisation and it’s pretty neat being able to directly query my event store. However, I was getting NullPointerExceptions on command dispatch. This turned out to be due to the aggregateIdentifier in EventContainer being null, which in turn turned out to be due to the Mongo serialisation not handling the case where the value of a node is carried on the _value property of the DBObject.
I’ve created a commit here that fixes that specific problem, but as written it doesn’t process any other properties of the DBObject. That appears to work for my specific case but I’m not sure that it won’t cause unexpected side-effects. Should I add additional processing to set any attributes, etc?