【问题标题】:RabbitMq plugin for grails throwing UnknownHostException用于抛出 UnknownHostException 的 grails 的 RabbitMq 插件
【发布时间】:2012-04-10 13:56:46
【问题描述】:

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

类:java.net.UnknownHostException 消息:占位符 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]

【问题讨论】:

    标签: grails rabbitmq grails-plugin grails-2.0 grails-plugin-rabbitmq


    【解决方案1】:

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

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

    【讨论】:

    • 它在我的本地机器上,我有另一个 grails 1.3.4 项目,配置相同,运行良好。
    猜你喜欢
    • 2010-12-25
    • 1970-01-01
    • 2020-01-12
    • 1970-01-01
    • 2012-03-06
    • 1970-01-01
    • 1970-01-01
    • 2023-03-18
    • 1970-01-01
    相关资源
    最近更新 更多