Search code examples
replicationactivemq-artemis

ActiveMQ Artemis - ha/replicated-failback example - is this working?


I'm trying to run example "ha/replicated-failback" on ApacheMQ Artemis. When I run "mvn verify", it shows the following output, making me think it's working:

messages send and received

However, the are a bunch of error messages before and after, such as:

ReplicatedFailbackStaticExample0-out:java.lang.IllegalStateException: AMQ229230: Failed to bind acceptor netty-acceptor to localhost:61616

Also:

ha/replication example target invocation exception

caused by:

Caused by: java.lang.NullPointerException
    at org.apache.activemq.artemis.jms.example.ReplicatedFailbackStaticExample.main (ReplicatedFailbackStaticExample.java:111)

And finally:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  31.059 s
[INFO] Finished at: 2022-12-12T11:30:57-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.activemq:artemis-maven-plugin:2.27.1:runClient (runClient) on project replicated-failback-static: null: MojoFailureException -> [Help 1]

My question: is this a successful test? FYI, I've changed the default admin password, I don't know if that would have anything to do with it.


Solution

  • A result of BUILD FAILURE indicates an unsuccessful test. The NullPointerException and the AMQ229230 message also indicate a problem.

    When I run mvn verify from the replicated-failback example of ActiveMQ Artemis 2.27.1 (i.e. the latest release) I don't see any of those kinds of errors.