DomainEventEntry is not mapped

Hi All,
I am new to Axon framework.I am getting exception while running without the Axon Server .

DomainEventEntry is not mapped [SELECT new org.axonframework.eventhandling.GenericDomainEventEntry(e.type, e.aggregateIdentifier, e.sequenceNumber, e.eventIdentifier, e.timeStamp, e.payloadType, e.payloadRevision, e.payload, e.metaData) FROM DomainEventEntry e WHERE e.aggregateIdentifier = :id AND e.sequenceNumber >= :seq ORDER BY e.sequenceNumber ASC]] with root cause

If anyone face this and how will i solve it.I want to use Axon without server and achieve the below
1)EventStore to store events
2)Saga Store to store saga
3)Replay the events

Hi Samrat,

You need to configure event store engine (Jpa or Jdbc based). Refer to this link
https://docs.axoniq.io/reference-guide/configuring-infrastructure-components/event-processing/event-bus-and-event-store

I have an example here at
https://github.com/dharanikumarp/axon-kafka-example

which is slightly modified version of the
https://github.com/marinkobabic/axon-kafka-example

This repo has a postgres based JpaEventStorageEngine and uses Kafka to replay events without using Axon server.

Thanks,

Hi all,

I’d like to add a single point here, referring to Dharani’s last sentence:

This repo has a postgres based JpaEventStorageEngine and uses Kafka to replay events without using Axon server.

Note that the replay functionality does not require Kafka.
You only need a dedicated Event Store like the JPA, JDBC or Axon Server, to be able to replay.
More specifically, Axon requires a StreamableMessageSource implementation for the Tracking Event Processor, and it’s the Tracking Event Processor which gives you the replay API.

Kafka in this area is purely a mechanism to distributed events between applications, just what the AMQP extension and Axon Server could do, or even simpler by sharing the datasource of your Event Store.

That’s my 2 cents on the situation.

Cheers,
Steven

Hi Steven,
Can you provide me complete picture and details (git repo ) to demonstrate the Event Sourcing
If you have gone through my post i need it without Axon Server with my own eventstore , token,saga store and the saga communication through kafka.

Hi Samrat,

the Axon Quick Start repository has some code that gets you started fairly easily.
https://github.com/AxonIQ/axon-quick-start

If you use the Axon Spring Boot Starter module, you can exclude the AxonServer dependency from it. It will then resort to the next best implementation of the event store, which is a JPA (or JDBC if no JPA is found) based event store.
TokenStore and Saga store are provided as JPA / JDBC implementations anway.

Kind regards,

twitter-icon_128x128.png