`
turingfellow
  • 浏览: 136329 次
  • 性别: Icon_minigender_1
  • 来自: 福建省莆田市
社区版块
存档分类
最新评论

jade提示Can't get a proxy to the Platform Manager

    博客分类:
  • jade
阅读更多
操作情形:
在bookTrading例子中,开两个cmd,分别运行Seller和Buyer两个代理
>java jade.Boot -gui a1:examples.bookTrading.BookSellerAgent
>java jade.Boot -gui a2:examples.bookTrading.BookBuyerAgent("book2")
具体出错:
[jade-develop] jade.core.ProfileException: Can't get a proxy to the Platform Manager [nested jade.core.IMTPException: The Service Manager was already bound in the RMI Registry [nested java.rmi.AlreadyBoundException: ServiceManager]]
        at jade.core.ProfileImpl.createPlatformManager(ProfileImpl.java:574)
        at jade.core.ProfileImpl.getPlatformManager(ProfileImpl.java:487)
        at jade.core.ProfileImpl.getServiceManager(ProfileImpl.java:501)
        at jade.core.AgentContainerImpl.init(AgentContainerImpl.java:342)
        at jade.core.AgentContainerImpl.joinPlatform(AgentContainerImpl.java:478
)
        at jade.core.Runtime.createMainContainer(Runtime.java:148)
        at jade.Boot.<init>(Boot.java:130)
        at jade.Boot.main(Boot.java:70)
Nested Exception:
jade.core.IMTPException: The Service Manager was already bound in the RMI Regist
ry [nested java.rmi.AlreadyBoundException: ServiceManager]
        at jade.imtp.rmi.RMIIMTPManager.exportPlatformManager(RMIIMTPManager.jav
a:276)
        at jade.core.ProfileImpl.createPlatformManager(ProfileImpl.java:563)
        at jade.core.ProfileImpl.getPlatformManager(ProfileImpl.java:487)
        at jade.core.ProfileImpl.getServiceManager(ProfileImpl.java:501)
        at jade.core.AgentContainerImpl.init(AgentContainerImpl.java:342)
        at jade.core.AgentContainerImpl.joinPlatform(AgentContainerImpl.java:478
)
        at jade.core.Runtime.createMainContainer(Runtime.java:148)
        at jade.Boot.<init>(Boot.java:130)
        at jade.Boot.main(Boot.java:70)
Nested Exception:
java.rmi.AlreadyBoundException: ServiceManager
        at sun.rmi.registry.RegistryImpl.bind(Unknown Source)
        at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
        at sun.rmi.server.UnicastServerRef.oldDispatch(Unknown Source)
        at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
        at sun.rmi.transport.Transport$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Sou
rce)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Sour
ce)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknow
n Source)
        at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
        at sun.rmi.server.UnicastRef.invoke(Unknown Source)
        at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
        at java.rmi.Naming.bind(Unknown Source)
        at jade.imtp.rmi.RMIIMTPManager.exportPlatformManager(RMIIMTPManager.jav
a:224)
        at jade.core.ProfileImpl.createPlatformManager(ProfileImpl.java:563)
        at jade.core.ProfileImpl.getPlatformManager(ProfileImpl.java:487)
        at jade.core.ProfileImpl.getServiceManager(ProfileImpl.java:501)
        at jade.core.AgentContainerImpl.init(AgentContainerImpl.java:342)
        at jade.core.AgentContainerImpl.joinPlatform(AgentContainerImpl.java:478
)
        at jade.core.Runtime.createMainContainer(Runtime.java:148)
        at jade.Boot.<init>(Boot.java:130)
        at jade.Boot.main(Boot.java:70)
2010-3-16 11:22:22 jade.core.Runtime$1 run
信息: JADE is closing down now.

出错原因:在同一台机子,同一个端口上启动两个Main Container ;或者同一个Container中有两个同名的Agent。
修正方法:一次同时运行两个agent
>java jade.Boot -gui a1:examples.bookTrading.BookSellerAgent a2:exam
ples.bookTrading.BookBuyerAgent("book2")
修正结果:成功
分享到:
评论

相关推荐

    Proxy Pattern Informatization Research Based On SaaS

    Therefore, it has a very vital practical significance to promote the informatization platform based on the proxy pattern. II. FUNCTION STUDIES OF INFORMATIZATION PLATFORM The proxy pattern ...

    ProXY 4 To 6

    "ProXY 4 To 6" 是一个专门用于将IPv4网络连接转换为IPv6网络连接的软件工具。这个标题暗示了它可能是解决IPv4地址空间耗尽问题的一种解决方案,使得IPv4设备能够访问IPv6网络资源。 **描述分析:** 描述中的“Ipv4...

    ProXY4To6-v2.4.zip

    《ProXY4To6:IPv4到IPv6的过渡技术详解》 在当前的互联网环境中,IPv4地址的枯竭已经成为一个不容忽视的问题。为了解决这个问题并推进下一代互联网IPv6的发展,各种过渡技术应运而生。其中,ProXY4To6是一个重要的...

    boostdesc_bgm.i,vgg_generated_48.i等.zip

    Couldn't connect to server from the Internet. Perhaps direct connections are not allowed in the current network. To use proxy please check/specify these environment variables: - ...

    .net下WebService调试工具

    On clicking button Get the tool fetches the WSDL, generates .NET proxy from the WSDL and displays the list of methods available. The user can choose any method and provide the required input ...

    Proxy Server(代理服务器)

    代理服务器的源程序,只是一个示范,可以... The name of the isolated host and the port to serve as proxy for, as well as the port number the server listen on are specified as command line arguments.

    ABAP 调用ABAP PROXY

    DATA: lo_proxy TYPE REF TO zcl_my_proxy_class. CREATE OBJECT lo_proxy. lo_proxy-&gt;set_parameter( 'PARAM1', 'Value1' ). lo_proxy-&gt;set_parameter( 'PARAM2', 'Value2' ). TRY. DATA(lr_result) = lo_proxy-...

    计算机网络第六版答案

    Hence, it becomes possible for the attacker to issue a command to all the nodes, that target a single node (for example, all nodes in the botnet might be commanded by the attacker to send a TCP SYN ...

    java 实现HTTP PROXY

    Java实现HTTP PROXY是一个常见的需求,特别是在开发网络应用或者测试环境中,我们可能需要通过代理服务器转发HTTP请求。本文将深入探讨如何使用Java编程语言来创建一个HTTP代理服务器,并且会涉及相关的源码分析。 ...

    proxy_manager:代理经理

    安装从PyPi安装软件包$ pip3 install proxy-manager-g4从源代码安装软件包源代码可在。 下载并安装该软件包。 $ git clone https://github.com/Genzo4/proxy_manager$ cd proxy_manager$ pip3 install .基本用法进口...

    de4dot Mod TheProxy

    《de4dot Mod TheProxy:深入理解.NET反混淆工具与应用》 de4dot Mod TheProxy 是一个由TheProxy开发的.NET反混淆工具,它基于原始的de4dot项目进行改良,旨在帮助开发者和安全研究人员解析和理解混淆过的.NET程序...

    get-proxy-settings:检索系统指定的代理设置

    注意:该项目未得到积极维护。...安装npm install --save get-proxy-settings用法进口// With named importimport { getProxySettings , getAndTestProxySettings } from "get-proxy-settings" ;// Or with commonjs

    apache Proxy_Error

    apache Proxy Error apache Proxy Error apache Proxy Error apache Proxy Error

    Get_China_Proxy.py 获得中国区代理

    Get_China_Proxy.py 获得中国区代理 Get_China_Proxy.py 获得中国区代理Get_China_Proxy.py 获得中国区代理

    JsProxy A js proxy online

    【JsProxy:在线JavaScript代理与离线打包工具】 JsProxy是一个强大的在线JavaScript处理工具,它提供了两种主要功能:JavaScript代理(js proxy)和JavaScript打包(js packer)。这两个功能对于前端开发者来说是...

    google api php client

    The method used is a matter of preference, but *it will be very difficult to use this library without first understanding the JSON syntax for the API*, so it is recommended to look at the [APIs ...

    Proxy Switcher and Manager-crx插件

    语言:English,Nederlands 管理和切换多个代理类型(袜子,pac和direct),带有配置文件支持 “代理切换器和管理器”扩展将代理管理的电源带到浏览器中。使用此扩展,您可以将浏览器配置为使用代理服务器而不改变操作...

    proxy.jsp、proxy.ashx、proxy.php、proxy.config

    配置时同样需要将`proxy.ashx`部署到服务器,并在ArcGIS JavaScript API中设置`proxyUrl`属性。 **proxy.php** 是PHP语言实现的代理服务,适用于PHP环境,如Apache或Nginx。对于那些基于PHP的Web应用,可以使用`...

    .Net下的文件监视系统

    The remoting system creates a proxy object that represents the class and returns to the client object a reference to the proxy. When the client calls a method, the remoting infrastructure handles the...

    nginx-proxy-manager中的Nginx配置

    **Nginx配置详解——以Nginx Proxy Manager为例** Nginx Proxy Manager是一款基于Nginx构建的网络代理管理工具,它允许用户通过友好的Web界面轻松地配置和管理Nginx反向代理设置。在深入理解Nginx Proxy Manager的...

Global site tag (gtag.js) - Google Analytics