DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page [Eclipse RCP + Jade agent platform] Can't get a proxy to the Platform Manager
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Sep 2008
Default [Eclipse RCP + Jade agent platform] Can't get a proxy to the Platform Manager - 03-23-2009, 06:37 AM

Hi, my name is Tommaso and I have a "big" problem, and here it is...

I'm developing a Plugin Project for Eclipse 3.3 and I want to use Jade (3.6.1) with this project. I have a user interface and I need to start my agent platform just clicking a button or a menu entry in this interface, it seems everything so simple but... it doesn't works.
The weirdest thing is that the same code, when executed in a separate project, works fine!
Explanation:

1) If I try to run jade platform from within my eclipse plugin project, the boot fails.
2) If I create a separate "normal java" project and execute the SAME snippet of code it boots successfully! I've tried to create a jar library file with this "working project" and use it inside the plugin one, but this fails again.

Here it is the stack trace printed when the execution stops:

Mar 19, 2009 10:24:24 AM jade.core.AgentContainerImpl joinPlatform
SEVERE: Some problem occurred while joining agent platform.
jade.core.ProfileException: Can't get a proxy to the Platform Manager [nested jade.core.IMTPException: Communication failure while starting JADE Runtime System. Check if the RMIRegistry CLASSPATH includes the RMI Stub classes of JADE. [nested java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: jade.imtp.rmi.ServiceManagerRMI (no security manager: RMI class loader disabled)]]
at jade.core.ProfileImpl.createPlatformManager(Profil eImpl.java:568)
at jade.core.ProfileImpl.getPlatformManager(ProfileIm pl.java:481)
at jade.core.ProfileImpl.getServiceManager(ProfileImp l.java:495)
at jade.core.AgentContainerImpl.init(AgentContainerIm pl.java:328)
at jade.core.AgentContainerImpl.joinPlatform(AgentCon tainerImpl.java:464)
at jade.core.Runtime.createMainContainer(Runtime.java :148)
at jade.Boot.<init>(Boot.java:134)
at jade.Boot.main(Boot.java:68)
at it.gruppors.phoenix_epp.controller.agent.platform. PlatformLauncher.bootJade(PlatformLauncher.java:55 )
at it.gruppors.phoenix_epp.controller.actions.LaunchA gentPlatformAction.run(LaunchAgentPlatformAction.j ava:42)
at org.eclipse.jface.action.Action.runWithEvent(Actio n.java:498)
at org.eclipse.jface.action.ActionContributionItem.ha ndleWidgetSelection(ActionContributionItem.java:54 6)
at org.eclipse.jface.action.ActionContributionItem.ac cess$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$5. handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(Event Table.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.ja va:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents( Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Di splay.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Wor kbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench. java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workben ch.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench. java:466)
at org.eclipse.core.databinding.observable.Realm.runW ithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWork bench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Pl atformUI.java:149)
at it.gruppors.phoenix_epp.Application.start(Applicat ion.java:22)
at org.eclipse.equinox.internal.app.EclipseAppHandle. run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.runApplication(EclipseAppLauncher.java: 106)
at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework( Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.ja va:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:11 73)
at org.eclipse.equinox.launcher.Main.main(Main.java:1 148)
Nested Exception:
jade.core.IMTPException: Communication failure while starting JADE Runtime System. Check if the RMIRegistry CLASSPATH includes the RMI Stub classes of JADE. [nested java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: jade.imtp.rmi.ServiceManagerRMI (no security manager: RMI class loader disabled)]
at jade.imtp.rmi.RMIIMTPManager.exportPlatformManager (RMIIMTPManager.java:286)
at jade.core.ProfileImpl.createPlatformManager(Profil eImpl.java:557)
at jade.core.ProfileImpl.getPlatformManager(ProfileIm pl.java:481)
at jade.core.ProfileImpl.getServiceManager(ProfileImp l.java:495)
at jade.core.AgentContainerImpl.init(AgentContainerIm pl.java:328)
at jade.core.AgentContainerImpl.joinPlatform(AgentCon tainerImpl.java:464)
at jade.core.Runtime.createMainContainer(Runtime.java :148)
at jade.Boot.<init>(Boot.java:134)
at jade.Boot.main(Boot.java:68)
at it.gruppors.phoenix_epp.controller.agent.platform. PlatformLauncher.bootJade(PlatformLauncher.java:55 )
at it.gruppors.phoenix_epp.controller.actions.LaunchA gentPlatformAction.run(LaunchAgentPlatformAction.j ava:42)
at org.eclipse.jface.action.Action.runWithEvent(Actio n.java:498)
at org.eclipse.jface.action.ActionContributionItem.ha ndleWidgetSelection(ActionContributionItem.java:54 6)
at org.eclipse.jface.action.ActionContributionItem.ac cess$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$5. handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(Event Table.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.ja va:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents( Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Di splay.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Wor kbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench. java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workben ch.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench. java:466)
at org.eclipse.core.databinding.observable.Realm.runW ithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWork bench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Pl atformUI.java:149)
at it.gruppors.phoenix_epp.Application.start(Applicat ion.java:22)
at org.eclipse.equinox.internal.app.EclipseAppHandle. run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.runApplication(EclipseAppLauncher.java: 106)
at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework( Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.ja va:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:11 73)
at org.eclipse.equinox.launcher.Main.main(Main.java:1 148)
Nested Exception:
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: jade.imtp.rmi.ServiceManagerRMI (no security manager: RMI class loader disabled)
at sun.rmi.server.UnicastServerRef.oldDispatch(Unicas tServerRef.java:396)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastSe rverRef.java:250)
at sun.rmi.transport.Transport$1.run(Transport.java:1 59)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport. java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages( TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl er.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl er.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
at sun.rmi.transport.StreamRemoteCall.exceptionReceiv edFromServer(StreamRemoteCall.java:255)
at sun.rmi.transport.StreamRemoteCall.executeCall(Str eamRemoteCall.java:233)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:3 59)
at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
at java.rmi.Naming.bind(Naming.java:111)
at jade.imtp.rmi.RMIIMTPManager.exportPlatformManager (RMIIMTPManager.java:237)
at jade.core.ProfileImpl.createPlatformManager(Profil eImpl.java:557)
at jade.core.ProfileImpl.getPlatformManager(ProfileIm pl.java:481)
at jade.core.ProfileImpl.getServiceManager(ProfileImp l.java:495)
at jade.core.AgentContainerImpl.init(AgentContainerIm pl.java:328)
at jade.core.AgentContainerImpl.joinPlatform(AgentCon tainerImpl.java:464)
at jade.core.Runtime.createMainContainer(Runtime.java :148)
at jade.Boot.<init>(Boot.java:134)
at jade.Boot.main(Boot.java:68)
at it.gruppors.phoenix_epp.controller.agent.platform. PlatformLauncher.bootJade(PlatformLauncher.java:55 )
at it.gruppors.phoenix_epp.controller.actions.LaunchA gentPlatformAction.run(LaunchAgentPlatformAction.j ava:42)
at org.eclipse.jface.action.Action.runWithEvent(Actio n.java:498)
at org.eclipse.jface.action.ActionContributionItem.ha ndleWidgetSelection(ActionContributionItem.java:54 6)
at org.eclipse.jface.action.ActionContributionItem.ac cess$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$5. handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(Event Table.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.ja va:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents( Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Di splay.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Wor kbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench. java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workben ch.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench. java:466)
at org.eclipse.core.databinding.observable.Realm.runW ithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWork bench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Pl atformUI.java:149)
at it.gruppors.phoenix_epp.Application.start(Applicat ion.java:22)
at org.eclipse.equinox.internal.app.EclipseAppHandle. run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.runApplication(EclipseAppLauncher.java: 106)
at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework( Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.ja va:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:11 73)
at org.eclipse.equinox.launcher.Main.main(Main.java:1 148)
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: jade.imtp.rmi.ServiceManagerRMI (no security manager: RMI class loader disabled)
at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknow n Source)
at sun.rmi.server.UnicastServerRef.oldDispatch(Unicas tServerRef.java:386)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastSe rverRef.java:250)
at sun.rmi.transport.Transport$1.run(Transport.java:1 59)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport. java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages( TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl er.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl er.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: jade.imtp.rmi.ServiceManagerRMI (no security manager: RMI class loader disabled)
at sun.rmi.server.LoaderHandler.loadProxyClass(Loader Handler.java:535)
at java.rmi.server.RMIClassLoader$2.loadProxyClass(RM IClassLoader.java:628)
at java.rmi.server.RMIClassLoader.loadProxyClass(RMIC lassLoader.java:294)
at sun.rmi.server.MarshalInputStream.resolveProxyClas s(MarshalInputStream.java:238)
at java.io.ObjectInputStream.readProxyDesc(ObjectInpu tStream.java:1531)
at java.io.ObjectInputStream.readClassDesc(ObjectInpu tStream.java:1493)
at java.io.ObjectInputStream.readOrdinaryObject(Objec tInputStream.java:1732)
at java.io.ObjectInputStream.readObject0(ObjectInputS tream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputSt ream.java:351)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing WAR file in using Eclipse Platform API js9329 Eclipse 0 11-26-2008 12:38 PM
RCP + Web Start + multi platform mfreschi Eclipse 4 06-10-2008 12:36 PM
Access to eclipse.platform.rcp forum Pietro.Mascagni Zones 0 06-04-2008 05:15 AM
JPA Ported For Full Use To .NET Platform. greg baker Java 0 05-20-2008 09:35 PM
How to change the Target Platform when developing a RCP App? joco Eclipse 0 03-12-2008 08:33 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com