1

我正在使用rabbitmq 0.3.3插件和grails 2.0。我創建了一個隊列沒有交流,當我嘗試調用此隊列時,我得到以下異常。Grails拋出的RabbitMq插件UnknownHostException

 
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] 
 

回答

0

你在哪裏運行此代碼,您的服務器無法解析主機名,我會建議你在你的host.conf中的文件與名稱IP地址添加對系統的主機名。或嘗試使用IP地址。

希望它有幫助。 Kulveer Singh

+0

它在我的本地機器上,我有另一個grails 1.3.4項目相同的配置工作正常。 – 2012-04-10 05:58:16