我正在使用 IPMS 和 Jade 进行跨平台代理迁移。我正在使用 Jade 3.6 和 IPMS 1.2。我已经在 slave1(原始平台)和 slave2(目标平台)上启用了服务。该-accept-foreign-agents true
选项也在两个平台上设置。我也增加了超时设置。迁移代码如下:
AID remoteAMS = new AID("ams@slave2:1099/JADE", AID.ISGUID);
remoteAMS.addAddresses("http://slave2:7778/acc");
PlatformID destination = new PlatformID(remoteAMS);
agent.doMove(destination);
我只是在 slave1 上超时,但在启用详细日志记录后,我在 slave2 上收到以下错误:
WARNING: FAILURE-ams-9 - Receiver does not exist.
jade.core.NotFoundException: getContainerID() failed to find agent ams@slave1
at jade.core.MainContainerImpl.getContainerID(MainContainerImpl.java:1318)
at jade.core.messaging.MessagingService.deliverInLocalPlatfrom(MessagingService.java:1255)
at jade.core.messaging.MessagingService.deliverNow(MessagingService.java:1187)
at jade.core.messaging.MessageManager$Deliverer.run(MessageManager.java:152)
at java.lang.Thread.run(Thread.java:662)
关于如何调试的任何提示?