Grails 抛出 UnknownHostException 的 RabbitMq 插件

发布于 2025-01-07 06:40:15 字数 517 浏览 6 评论 0原文

我正在使用rabbitmq 0.3.3插件和grails 2.0。我创建了一个没有交换的队列,当我尝试调用该队列时,出现以下异常。

Class:   java.net.UnknownHostException
Message: placeholder

22:            // it does for the other arguments. Since the code in that method
23:            // checks for String, we do the conversion manually.
24:            args = processArgs(args)
25:            ctx.rabbitTemplate.convertAndSend(*args)
26:        }
27:    }
28:


rabbitSend 'mailQueue', [personId:person.id]

I'm using rabbitmq 0.3.3 plugin with grails 2.0. I have created one queue no exchanges and when I try to call this queue I get following exception.

Class:   java.net.UnknownHostException
Message: placeholder

22:            // it does for the other arguments. Since the code in that method
23:            // checks for String, we do the conversion manually.
24:            args = processArgs(args)
25:            ctx.rabbitTemplate.convertAndSend(*args)
26:        }
27:    }
28:


rabbitSend 'mailQueue', [personId:person.id]

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

终难愈 2025-01-14 06:40:15

您运行此代码的服务器无法解析主机名,我建议您使用 IP 地址在系统上的 host.conf 文件中添加主机名。或尝试使用 IP 地址。

希望有帮助。
库维尔·辛格

Your server where you are running this code is not able to resolve the host name and i would advise you to add the host name in your host.conf file on system with IPaddress. or try with the IP address.

Hope it helps.
Kulveer Singh

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文