RabbitMQ Java connection throws UnknownHostException: invalid IPv6 address

0

A very simple connection, the RabbitMQ broker has Public accessibility= Yes
On factory.newConnection(),, using Java1.8 & amqp-client-5.12.0.jar (latest), getting the above exception.
//factory is set:
factory.setUsername(queueUser);
factory.setPassword(queuePassword);
factory.setVirtualHost("/");
factory.setHost(queueHost);
factory.setPort(5671);
and the queueHost is set to the AMQP Endpoints on the RabbitMQ console.
This should be a 5 minutes setup, but I already spent way too much time on this.
I have not set this broker, nor do I see how to set it, with IPv6. I just need simple Ipv4 to work.
Any idea ?

Carmi
posta 3 anni fa2502 visualizzazioni
1 Risposta
0

Hi there,

Would you like to refer some of the documentation below and see if it works? Let us know if it doesn't.
Creating and connecting to a RabbitMQ broker (Refer Create a ConnectionFactory and connect to your broker):
https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/getting-started-rabbitmq.html
Best Practices:
https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/best-practices-rabbitmq.html

TPKohli
con risposta 3 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande