Annoying UNABLE TO CONNECT TO AXON SERVER message

Hi
since a while our unit tests are spamming the logs with these annoying messages:

**********************************************
*                                            *
*  !!! UNABLE TO CONNECT TO AXON SERVER !!!  *
*                                            *
* Are you sure it's running?                 *
* Don't have Axon Server yet?                *
* Go to:  https://axoniq.io/go-axon          *
*                                            *
**********************************************

To suppress this message, you can
 - explicitly configure an AxonServer location,
 - start with -Daxon.axonserver.suppressDownloadMessage=true

Unfortunately I did not manage to suppress this (IMO stupid) message.

I expected that these kind of props should be set in the Spring application.properties, but it seems that we should define a -D property, which is very unusual.

Can you please give advice, how normal unit tests should be configured to avoid this spamming?

thanks
Klaus

Hi Klaus,

Might this be because of the incompatibility with the latest Spring Boot releases, which causes a failure to connect? The message is only logged when the connection to Axon Server fails. However, I wouldn’t expect that kind of thing to affect unit tests.

A kind of workaround would be to configure a different Axon Server address.

New version has been released, Axon Framework - Release 4.9.1

1 Like