Hello,
currently I am trying to start a new Spring Boot project with Axon 4.
I have some trouble to set everything up and get my project working by
following the documentation.
Seems like the docs are not up to date (or maybe just missing a few things).
For example, the documentation says Axon is by default configured to work
Axon Server.
When starting Axon Server and running my simple hello world application I
just get the following error:
Servlet.service() for servlet [dispatcherServlet] in context with path []
threw exception [Request processing failed; nested exception is
AxonServerRemoteCommandHandlingException{message=An exception was thrown by
the remote message handling component., errorCode='AXONIQ-4000',
server='AxonHub'}] with root cause
org.axonframework.axonserver.connector.command.AxonServerRemoteCommandHandlingException:
An exception was thrown by the remote message handling component.
at
org.axonframework.axonserver.connector.command.AxonServerCommandBus$2.onNext(AxonServerCommandBus.java:139)
~[axon-server-connector-4.0.jar:4.0]
at
org.axonframework.axonserver.connector.command.AxonServerCommandBus$2.onNext(AxonServerCommandBus.java:116)
~[axon-server-connector-4.0.jar:4.0]
at
io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onMessage(ClientCalls.java:407)
~[grpc-stub-1.13.1.jar:1.13.1]
at
io.grpc.ForwardingClientCallListener.onMessage(ForwardingClientCallListener.java:33)
~[grpc-core-1.13.1.jar:1.13.1]
at
io.grpc.ForwardingClientCallListener.onMessage(ForwardingClientCallListener.java:33)
~[grpc-core-1.13.1.jar:1.13.1]
at
io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1MessagesAvailable.runInContext(ClientCallImpl.java:519)
~[grpc-core-1.13.1.jar:1.13.1]
at
io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
~[grpc-core-1.13.1.jar:1.13.1]
at
io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
~[grpc-core-1.13.1.jar:1.13.1]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
~[na:1.8.0_192]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
~[na:1.8.0_192]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_192]
In the next step, I tried to use the MongoDB event store. Unfortunately I
wasn’t able to figure out how to configure Axon with MongoDB, since the
documentation doesn’t give instructions on how to do this.
So, I am currently stuck.
Are there any working code examples for Axon 4 I could use as a reference?
Kind regards
Alexander