I am using version 2.4 of the axon framework and I am getting org.axonframework.domain.AggregateIdentifierNotInitializedException. I have added a new command and an event, code below.
Other commands are working fine. Any help will be much appreciated.
Thanks
Controller.java
@ResponseStatus(HttpStatus.OK)
@RequestMapping(value = "/{id}/deactivate", method = RequestMethod.GET)
public void deactivate(@PathVariable("id") String id) {
DeactivateOrganisationCommand deactivateOrganisationCommand = new DeactivateOrganisationCommand(id);
this.commandGateway.send(deactivateOrganisationCommand);
}
OrganisationAggregate.java (5.66 KB)
DeactivateOrganisationCommand.java (378 Bytes)
OrganisationDeactivatedEvent.java (317 Bytes)