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
gefragt vor 3 Jahren2502 Aufrufe
1 Antwort
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
beantwortet vor 3 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen