How to send messages to AMQ7 using IPV6 address?

Solution Verified - Updated -

Issue

I got an error when sending a message to an IPV6 address AMQ7.2 server.

./artemis producer --user admin --password admin --url tcp://2620:52:0:42c0:56ee:75ff:fe5c:104e:61618 --destination queue://example
2019-03-12 10:35:16,214 WARN  [org.apache.activemq.artemis.core.client] AMQ212007: connector.create or connectorFactory.createConnector should never throw an exception, implementation is badly behaved, but we will deal with it anyway.: java.lang.IllegalArgumentException: port out of range:-1
    at java.net.InetSocketAddress.checkPort(InetSocketAddress.java:143) [rt.jar:1.8.0_201]
    at java.net.InetSocketAddress.<init>(InetSocketAddress.java:224) [rt.jar:1.8.0_201]
    at org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnector.createConnection(NettyConnector.java:711) [artemis-core-client-2.6.1.amq-720004-redhat-1.jar:2.6.1.amq-720004-redhat-1]

Environment

  • Red Hat AMQ 7.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content