Hello, I’m using Axon 4.4 with Spring boot (all LTS technologies), before I was using Axon without a problem, then I implemented Eureka and Zull and started to show an error in Axon Server, but sometimes it works normally, this locally, so between 10 times I get 3 successfully, I’ve tried many configurations without success and I don’t know how to solve it, I would like to solve this and create a small project on Git to help other developers to do it correctly, as I’m already limited.
2020-12-01 18:27:42.948 ERROR 23732 --- [o-auto-1-exec-7] o.a.c.c.C.[.[.[.[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [/api/v1] threw exception [Request processing failed; nested exception is org.axonframework.axonserver.connector.AxonServerException: Connection lost while executing command on: 23732@DESKTOP-07TQ2BV.2682bebb-c576-4c81-8ea4-639e376d1a25.default] with root cause
org.axonframework.axonserver.connector.AxonServerException: Connection lost while executing command on: 23732@DESKTOP-07TQ2BV.2682bebb-c576-4c81-8ea4-639e376d1a25.default
at org.axonframework.axonserver.connector.ErrorCode.lambda$static$24(ErrorCode.java:145) ~[axon-server-connector-4.4.3.jar:4.4.3]
at org.axonframework.axonserver.connector.ErrorCode.convert(ErrorCode.java:182) ~[axon-server-connector-4.4.3.jar:4.4.3]
at org.axonframework.axonserver.connector.command.CommandSerializer.deserialize(CommandSerializer.java:164) ~[axon-server-connector-4.4.3.jar:4.4.3]
at org.axonframework.axonserver.connector.command.AxonServerCommandBus.lambda$doDispatch$2(AxonServerCommandBus.java:167) ~[axon-server-connector-4.4.3.jar:4.4.3]
at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:642) ~[na:na]
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[na:na]
at java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2073) ~[na:na]
at io.axoniq.axonserver.connector.command.impl.CommandChannelImpl$CommandResponseHandler.onNext(CommandChannelImpl.java:358) ~[axonserver-connector-java-4.4.2.jar:4.4.2]
at io.axoniq.axonserver.connector.command.impl.CommandChannelImpl$CommandResponseHandler.onNext(CommandChannelImpl.java:345) ~[axonserver-connector-java-4.4.2.jar:4.4.2]
at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onMessage(ClientCalls.java:465) ~[grpc-stub-1.33.0.jar:1.33.0]
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1MessagesAvailable.runInternal(ClientCallImpl.java:715) ~[grpc-core-1.33.0.jar:1.33.0]
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1MessagesAvailable.runInContext(ClientCallImpl.java:700) ~[grpc-core-1.33.0.jar:1.33.0]
at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37) ~[grpc-core-1.33.0.jar:1.33.0]
at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123) ~[grpc-core-1.33.0.jar:1.33.0]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na]
Applications.yaml
content :
eureka:
client:
service-url:
defaultZone: http://localhost:8761/eureka
instance:
instanceId: ${spring.application.name}:${spring.application.instance_id:${random.value}}
preferIpAddress: true
axon:
axonserver:
servers: localhost:8124
Application Class with:
EnableEurekaClient
EnableFeignClients
EnableDiscoveryClient
SpringBootApplication
Note: I already tried the settings on the website but I am not getting success. I’m a beginner with Axon and I would like to deploy it to my new clients, but I need to get a Sunday and this problem is one of the most complicated.