We tried upgrading our application to version 4.1 of axon.
When we tried running the application we received an exception (stacktrace attached).
Digging a bit deeper we found that we got a ClassNotFoundException for the org.axonframework.axonserver.connector.command.AxonServerCommandBus
probably caused by the @ConditionalOnMissingBean on the commandBus Bean in AxonAutoConfiguration. (the AxonServerCommandBus is referenced here)
Currently we do not use AxonServer, so we excluded the axon-server-connector dependency. Including the dependency resolves the problem.
Are we supposed to include the axon-server-connector dependency on our classpath even when not using AxonServer or is unexpected behaviour?
As Allard pointed out, we have recorded the issue, and also resolved this last week (as can be seen here).
The fix is part of release 4.1.1 of the framework, which has been released the 26th of March.
Sorry to not update you guys earlier on this; I wasn’t aware there was a pending user group question.
My sincere apologies, and I hope everything will be resolved as soon as you update to 4.1.1!