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
질문됨 3년 전2502회 조회
1개 답변
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
답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인