1

私はgrails 2.0でrabbitmq 0.3.3プラグインを使用しています。交換なしのキューを 1 つ作成しましたが、このキューを呼び出そうとすると、次の例外が発生します。

クラス: 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]

4

1 に答える 1

0

このコードを実行しているサーバーはホスト名を解決できません。IP アドレスを持つシステムの host.conf ファイルにホスト名を追加することをお勧めします。またはIPアドレスで試してください。

それが役に立てば幸い。クルベア・シン

于 2012-04-03T20:03:54.490 に答える