Grails 抛出 UnknownHostException 的 RabbitMq 插件
我正在使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您运行此代码的服务器无法解析主机名,我建议您使用 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