Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » [Jade] Can't get a proxy to the Platform Manager
[Jade] Can't get a proxy to the Platform Manager [message #51059] Thu, 19 March 2009 13:32 Go to next message
Tommaso is currently offline TommasoFriend
Messages: 4
Registered: July 2009
Junior Member
Hi, 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 http://jade.tilab.com) with this project. So, I need to start my
Jade 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 "non
pde" 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(ProfileImpl.java :568)
at jade.core.ProfileImpl.getPlatformManager(ProfileImpl.java:48 1)
at jade.core.ProfileImpl.getServiceManager(ProfileImpl.java:495 )
at jade.core.AgentContainerImpl.init(AgentContainerImpl.java:32 8)
at jade.core.AgentContainerImpl.joinPlatform(AgentContainerImpl .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.PlatformLa uncher.bootJade(PlatformLauncher.java:55)
at
it.gruppors.phoenix_epp.controller.actions.LaunchAgentPlatfo rmAction.run(LaunchAgentPlatformAction.java:42)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at it.gruppors.phoenix_epp.Application.start(Application.java:2 2)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.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.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
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(RMIIMTPMa nager.java:286)
at jade.core.ProfileImpl.createPlatformManager(ProfileImpl.java :557)
at jade.core.ProfileImpl.getPlatformManager(ProfileImpl.java:48 1)
at jade.core.ProfileImpl.getServiceManager(ProfileImpl.java:495 )
at jade.core.AgentContainerImpl.init(AgentContainerImpl.java:32 8)
at jade.core.AgentContainerImpl.joinPlatform(AgentContainerImpl .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.PlatformLa uncher.bootJade(PlatformLauncher.java:55)
at
it.gruppors.phoenix_epp.controller.actions.LaunchAgentPlatfo rmAction.run(LaunchAgentPlatformAction.java:42)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at it.gruppors.phoenix_epp.Application.start(Application.java:2 2)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.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.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
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(UnicastServerRef .java:396)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.ja va:250)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTranspo rt.java:535)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TC PTransport.java:790)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCP Transport.java:649)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa dPoolExecutor.java:885)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServ er(StreamRemoteCall.java:255)
at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteC all.java:233)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)
at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
at java.rmi.Naming.bind(Naming.java:111)
at
jade.imtp.rmi.RMIIMTPManager.exportPlatformManager(RMIIMTPMa nager.java:237)
at jade.core.ProfileImpl.createPlatformManager(ProfileImpl.java :557)
at jade.core.ProfileImpl.getPlatformManager(ProfileImpl.java:48 1)
at jade.core.ProfileImpl.getServiceManager(ProfileImpl.java:495 )
at jade.core.AgentContainerImpl.init(AgentContainerImpl.java:32 8)
at jade.core.AgentContainerImpl.joinPlatform(AgentContainerImpl .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.PlatformLa uncher.bootJade(PlatformLauncher.java:55)
at
it.gruppors.phoenix_epp.controller.actions.LaunchAgentPlatfo rmAction.run(LaunchAgentPlatformAction.java:42)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at it.gruppors.phoenix_epp.Application.start(Application.java:2 2)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.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.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
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(Unknown Source)
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef .java:386)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.ja va:250)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTranspo rt.java:535)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TC PTransport.java:790)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCP Transport.java:649)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa dPoolExecutor.java:885)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.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(LoaderHandler.ja va:535)
at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoad er.java:628)
at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader .java:294)
at
sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalI nputStream.java:238)
at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.ja va:1531)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.ja va:1493)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStre am.java:1732)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java :1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java: 351)
Re: [Jade] Can't get a proxy to the Platform Manager [message #51281 is a reply to message #51059] Thu, 19 March 2009 18:42 Go to previous message
Ankur Sharma is currently offline Ankur SharmaFriend
Messages: 84
Registered: July 2009
Member
May be Jade forum would be a better place to raise this query

http://jade.tilab.com/community-index.htm

However, my 2 cents:
Since you are able to run it as Java project, you should be able to run
it as Plugin as well.

1. Right click on your java project and choose "Configure -> Convert to
Plugin projects...".

If it still doesn't work
2. Add the jade jars to your plugin using manifest editor -> build ->
runtine information -> add library.

hth,
Ankur..
Re: [Jade] Can't get a proxy to the Platform Manager [message #593646 is a reply to message #51059] Thu, 19 March 2009 18:42 Go to previous message
Ankur Sharma is currently offline Ankur SharmaFriend
Messages: 84
Registered: July 2009
Member
May be Jade forum would be a better place to raise this query

http://jade.tilab.com/community-index.htm

However, my 2 cents:
Since you are able to run it as Java project, you should be able to run
it as Plugin as well.

1. Right click on your java project and choose "Configure -> Convert to
Plugin projects...".

If it still doesn't work
2. Add the jade jars to your plugin using manifest editor -> build ->
runtine information -> add library.

hth,
Ankur..
Previous Topic:Query target platform for a plugin id
Next Topic:Workbench view is not retaining the state in the new plugin.
Goto Forum:
  


Current Time: Wed Apr 24 20:07:19 GMT 2024

Powered by FUDForum. Page generated in 0.24474 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top