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年前2503ビュー
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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ