This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 156547 - JADE RMI Random problem
Summary: JADE RMI Random problem
Status: NEW
Alias: None
Product: third-party
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P3 blocker (vote)
Assignee: issues@third-party
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-09 21:27 UTC by natsiavas
Modified: 2009-01-09 21:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description natsiavas 2009-01-09 21:27:47 UTC
I am not really sure I should post this here. This problem occurs RANDOMLY when using JADE 3.5 (Java Agents Development 
Framework) with Netbeans 6.5. Without any obvious reason, some times when I try to start the JADE runtime and create 
the main JADE container programmatically, I get the output (including exception) stacktrace : 

9 Ιαν 2009 10:53:20 μμ jade.core.Runtime beginContainer
INFO: ----------------------------------
    This is JADE 3.5 - revision 5988 of 2007/06/21 11:02:30
    downloaded in Open Source, under LGPL restrictions,
    at http://jade.tilab.com/
----------------------------------------
9 Ιαν 2009 10:53:21 μμ 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.ServiceManagerRMIImpl_Stub]]
        at jade.core.ProfileImpl.createPlatformManager(ProfileImpl.java:563)
        at jade.core.ProfileImpl.getPlatformManager(ProfileImpl.java:476)
        at jade.core.ProfileImpl.getServiceManager(ProfileImpl.java:490)
        at jade.core.AgentContainerImpl.init(AgentContainerImpl.java:323)
        at jade.core.AgentContainerImpl.joinPlatform(AgentContainerImpl.java:459)
        at jade.core.Runtime.createMainContainer(Runtime.java:148)
        at gr.auth.csd.macun_fdm.RoFFDMNetworkEnvironment.<init>(RoFFDMNetworkEnvironment.java:47)
        at macun_simulation_fx.StartingGUIClass$1.lambda(StartingGUIClass.fx:604)
        at macun_simulation_fx.StartingGUIClass$1.lambda(StartingGUIClass.fx:604)
        at macun_simulation_fx.StartingGUIClass$1.invoke(StartingGUIClass.fx:581)
        at macun_simulation_fx.StartingGUIClass$1.invoke(StartingGUIClass.fx:581)
        at macun_simulation_fx.StartingGUIClass$1.invoke(StartingGUIClass.fx:581)
        at macun_simulation_fx.StartingGUIClass$1.invoke(StartingGUIClass.fx:581)
        at javafx.ext.swing.SwingAbstractButton$1ActionListener$anon12.actionPerformed(SwingAbstractButton.fx:150)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
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.ServiceManagerRMIImpl_Stub]
        at jade.imtp.rmi.RMIIMTPManager.exportPlatformManager(RMIIMTPManager.java:272)
        at jade.core.ProfileImpl.createPlatformManager(ProfileImpl.java:552)
        at jade.core.ProfileImpl.getPlatformManager(ProfileImpl.java:476)
        at jade.core.ProfileImpl.getServiceManager(ProfileImpl.java:490)
        at jade.core.AgentContainerImpl.init(AgentContainerImpl.java:323)
        at jade.core.AgentContainerImpl.joinPlatform(AgentContainerImpl.java:459)
        at jade.core.Runtime.createMainContainer(Runtime.java:148)
        at gr.auth.csd.macun_fdm.RoFFDMNetworkEnvironment.<init>(RoFFDMNetworkEnvironment.java:47)
        at macun_simulation_fx.StartingGUIClass$1.lambda(StartingGUIClass.fx:604)
        at macun_simulation_fx.StartingGUIClass$1.lambda(StartingGUIClass.fx:604)
        at macun_simulation_fx.StartingGUIClass$1.invoke(StartingGUIClass.fx:581)
        at macun_simulation_fx.StartingGUIClass$1.invoke(StartingGUIClass.fx:581)
        at macun_simulation_fx.StartingGUIClass$1.invoke(StartingGUIClass.fx:581)
        at macun_simulation_fx.StartingGUIClass$1.invoke(StartingGUIClass.fx:581)
        at javafx.ext.swing.SwingAbstractButton$1ActionListener$anon12.actionPerformed(SwingAbstractButton.fx:150)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
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.ServiceManagerRMIImpl_Stub
        at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java: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(TCPTransport.java:535)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown 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.java:224)
        at jade.core.ProfileImpl.createPlatformManager(ProfileImpl.java:552)
        at jade.core.ProfileImpl.getPlatformManager(ProfileImpl.java:476)
        at jade.core.ProfileImpl.getServiceManager(ProfileImpl.java:490)
        at jade.core.AgentContainerImpl.init(AgentContainerImpl.java:323)
        at jade.core.AgentContainerImpl.joinPlatform(AgentContainerImpl.java:459)
        at jade.core.Runtime.createMainContainer(Runtime.java:148)
        at gr.auth.csd.macun_fdm.RoFFDMNetworkEnvironment.<init>(RoFFDMNetworkEnvironment.java:47)
        at macun_simulation_fx.StartingGUIClass$1.lambda(StartingGUIClass.fx:604)
        at macun_simulation_fx.StartingGUIClass$1.lambda(StartingGUIClass.fx:604)
        at macun_simulation_fx.StartingGUIClass$1.invoke(StartingGUIClass.fx:581)
        at macun_simulation_fx.StartingGUIClass$1.invoke(StartingGUIClass.fx:581)
        at macun_simulation_fx.StartingGUIClass$1.invoke(StartingGUIClass.fx:581)
        at macun_simulation_fx.StartingGUIClass$1.invoke(StartingGUIClass.fx:581)
        at javafx.ext.swing.SwingAbstractButton$1ActionListener$anon12.actionPerformed(SwingAbstractButton.fx:150)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
        java.lang.ClassNotFoundException: jade.imtp.rmi.ServiceManagerRMIImpl_Stub
        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.java: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(TCPTransport.java:535)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: jade.imtp.rmi.ServiceManagerRMIImpl_Stub
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:434)
        at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
        at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
        at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
        at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
        ... 12 more
java.lang.NullPointerException
        at gr.auth.csd.macun_fdm.RoFFDMNetworkEnvironment.<init>(RoFFDMNetworkEnvironment.java:119)
        at macun_simulation_fx.StartingGUIClass$1.lambda(StartingGUIClass.fx:604)
        at macun_simulation_fx.StartingGUIClass$1.lambda(StartingGUIClass.fx:604)
Exception while instantiating Network Environment and trying to launch JADE platform...
        at macun_simulation_fx.StartingGUIClass$1.invoke(StartingGUIClass.fx:581)
        at macun_simulation_fx.StartingGUIClass$1.invoke(StartingGUIClass.fx:581)
        at macun_simulation_fx.StartingGUIClass$1.invoke(StartingGUIClass.fx:581)
        at macun_simulation_fx.StartingGUIClass$1.invoke(StartingGUIClass.fx:581)
        at javafx.ext.swing.SwingAbstractButton$1ActionListener$anon12.actionPerformed(SwingAbstractButton.fx:150)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

My project is called macun and therefore you should probably ignore packages macun_simulation_fx and 
gr.auth.csd.macun_fdm. I stress that this exception occurs randomly and without any obvious reason. It started on 
Netbeans 6.5 and never came up using Netbeans 6.1. The RMI port used is 1099 and is not occupied by another 
application. No change to the classpath made.