|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Error while initializing simulationHi,
I am trying to run the GasNode example on a Mac OS X using Repast Simphony. I have set up the system and could compile the code. After that I run the model and add the 2D display as mentioned in the tutorial. But when I try to initialize the model it gives an error message as given below: 2008/06/23 04:25:45,825: Error while initializing simulation java.lang.ClassCastException: repast.simphony.context.DefaultContext at infrademo.GasNode$$FastClassByCGLIB$$d30fa920.invoke(<generated>) at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at repast.simphony.parameter.BoundParameters$ObjectParameter.setValue (BoundParameters.java:111) at repast.simphony.parameter.BoundParameters.setBean (BoundParameters.java:54) at repast.simphony.dataLoader.engine.DataLoaderControllerAction.runInitiali ze(DataLoaderControllerAction.java:45) at repast.simphony.engine.controller.DefaultController$2.visit (DefaultController.java:171) at repast.simphony.engine.controller.DefaultController$2.visit (DefaultController.java:1) at repast.simphony.util.collections.NaryTree.preOrderTraverals (NaryTree.java:287) at repast.simphony.util.collections.NaryTree.preOrderTraverals (NaryTree.java:290) at repast.simphony.util.collections.NaryTree.preOrderTraverals (NaryTree.java:290) at repast.simphony.util.collections.NaryTree.preOrderTraversal (NaryTree.java:283) at repast.simphony.engine.controller.DefaultController.runInitialize (DefaultController.java:169) at repast.simphony.engine.controller.DefaultController.runInitialize (DefaultController.java:317) at repast.simphony.ui.RSApplication.initSim(RSApplication.java:121) at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17) at javax.swing.AbstractButton.fireActionPerformed (AbstractButton.java:1882) at javax.swing.AbstractButton$Handler.actionPerformed (AbstractButton.java:2202) at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java:420) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java: 258) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased (BasicButtonListener.java:236) at java.awt.AWTEventMulticaster.mouseReleased (AWTEventMulticaster.java:231) at java.awt.Component.processMouseEvent(Component.java:5583) at javax.swing.JComponent.processMouseEvent(JComponent.java:3135) at java.awt.Component.processEvent(Component.java:5348) at java.awt.Container.processEvent(Container.java:2010) at java.awt.Component.dispatchEventImpl(Component.java:4050) at java.awt.Container.dispatchEventImpl(Container.java:2068) at java.awt.Component.dispatchEvent(Component.java:3885) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java: 4256) at java.awt.LightweightDispatcher.processMouseEvent(Container.java: 3936) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866) at java.awt.Container.dispatchEventImpl(Container.java:2054) at java.awt.Window.dispatchEventImpl(Window.java:1791) at java.awt.Component.dispatchEvent(Component.java:3885) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy (EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForHierarchy (EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java: 184) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java: 176) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) Can anyone tell me what caused this error and how to avoid it? Thanks, Sandeep University of Edinburgh ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Repast-interest mailing list Repast-interest@... https://lists.sourceforge.net/lists/listinfo/repast-interest |
|
|
Re: Error while initializing simulationDid you go through the tutorial exactly, or did you make any custom
changes (such as to agent parameters, etc)? Also, does the error occur without the display when you initialize? eric Eric Tatara, Ph.D. Assistant Software Engineer Center for Complex Adaptive Agent Systems Simulation Decision and Information Sciences Division Argonne National Laboratory -----Original Message----- From: repast-interest-bounces@... [mailto:repast-interest-bounces@...] On Behalf Of Sandeep Kakani Sent: Sunday, June 22, 2008 10:27 PM To: repast-interest@... Subject: [Repast-interest] Error while initializing simulation Hi, I am trying to run the GasNode example on a Mac OS X using Repast Simphony. I have set up the system and could compile the code. After that I run the model and add the 2D display as mentioned in the tutorial. But when I try to initialize the model it gives an error message as given below: 2008/06/23 04:25:45,825: Error while initializing simulation java.lang.ClassCastException: repast.simphony.context.DefaultContext at infrademo.GasNode$$FastClassByCGLIB$$d30fa920.invoke(<generated>) at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at repast.simphony.parameter.BoundParameters$ObjectParameter.setValue (BoundParameters.java:111) at repast.simphony.parameter.BoundParameters.setBean (BoundParameters.java:54) at repast.simphony.dataLoader.engine.DataLoaderControllerAction.runInitiali ze(DataLoaderControllerAction.java:45) at repast.simphony.engine.controller.DefaultController$2.visit (DefaultController.java:171) at repast.simphony.engine.controller.DefaultController$2.visit (DefaultController.java:1) at repast.simphony.util.collections.NaryTree.preOrderTraverals (NaryTree.java:287) at repast.simphony.util.collections.NaryTree.preOrderTraverals (NaryTree.java:290) at repast.simphony.util.collections.NaryTree.preOrderTraverals (NaryTree.java:290) at repast.simphony.util.collections.NaryTree.preOrderTraversal (NaryTree.java:283) at repast.simphony.engine.controller.DefaultController.runInitialize (DefaultController.java:169) at repast.simphony.engine.controller.DefaultController.runInitialize (DefaultController.java:317) at repast.simphony.ui.RSApplication.initSim(RSApplication.java:121) at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17) at javax.swing.AbstractButton.fireActionPerformed (AbstractButton.java:1882) at javax.swing.AbstractButton$Handler.actionPerformed (AbstractButton.java:2202) at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java:420) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java: 258) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased (BasicButtonListener.java:236) at java.awt.AWTEventMulticaster.mouseReleased (AWTEventMulticaster.java:231) at java.awt.Component.processMouseEvent(Component.java:5583) at javax.swing.JComponent.processMouseEvent(JComponent.java:3135) at java.awt.Component.processEvent(Component.java:5348) at java.awt.Container.processEvent(Container.java:2010) at java.awt.Component.dispatchEventImpl(Component.java:4050) at java.awt.Container.dispatchEventImpl(Container.java:2068) at java.awt.Component.dispatchEvent(Component.java:3885) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java: 4256) at java.awt.LightweightDispatcher.processMouseEvent(Container.java: 3936) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866) at java.awt.Container.dispatchEventImpl(Container.java:2054) at java.awt.Window.dispatchEventImpl(Window.java:1791) at java.awt.Component.dispatchEvent(Component.java:3885) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy (EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForHierarchy (EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java: 184) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java: 176) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) Can anyone tell me what caused this error and how to avoid it? Thanks, Sandeep University of Edinburgh ------------------------------------------------------------------------ - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Repast-interest mailing list Repast-interest@... https://lists.sourceforge.net/lists/listinfo/repast-interest ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Repast-interest mailing list Repast-interest@... https://lists.sourceforge.net/lists/listinfo/repast-interest |
|
|
Re: Error while initializing simulationI went through the tutorial exactly, I did try this multiple times to make sure I havn't missed anything. And the error occurs without the display, when I initialize. Sandeep On Wed, 25 Jun 2008, Tatara, Eric R. wrote: > Did you go through the tutorial exactly, or did you make any custom > changes (such as to agent parameters, etc)? Also, does the error occur > without the display when you initialize? > > eric > > > Eric Tatara, Ph.D. > Assistant Software Engineer > Center for Complex Adaptive Agent Systems Simulation > Decision and Information Sciences Division > Argonne National Laboratory > > -----Original Message----- > From: repast-interest-bounces@... > [mailto:repast-interest-bounces@...] On Behalf Of > Sandeep Kakani > Sent: Sunday, June 22, 2008 10:27 PM > To: repast-interest@... > Subject: [Repast-interest] Error while initializing simulation > > Hi, > > I am trying to run the GasNode example on a Mac OS X using Repast > Simphony. I have set up the system and could compile the code. After > that I run the model and add the 2D display as mentioned in the > tutorial. But when I try to initialize the model it gives an error > message as given below: > > 2008/06/23 04:25:45,825: Error while initializing simulation > java.lang.ClassCastException: repast.simphony.context.DefaultContext > at > infrademo.GasNode$$FastClassByCGLIB$$d30fa920.invoke(<generated>) > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at > repast.simphony.parameter.BoundParameters$ObjectParameter.setValue > (BoundParameters.java:111) > at repast.simphony.parameter.BoundParameters.setBean > (BoundParameters.java:54) > at > repast.simphony.dataLoader.engine.DataLoaderControllerAction.runInitiali > ze(DataLoaderControllerAction.java:45) > at repast.simphony.engine.controller.DefaultController$2.visit > (DefaultController.java:171) > at repast.simphony.engine.controller.DefaultController$2.visit > (DefaultController.java:1) > at repast.simphony.util.collections.NaryTree.preOrderTraverals > (NaryTree.java:287) > at repast.simphony.util.collections.NaryTree.preOrderTraverals > (NaryTree.java:290) > at repast.simphony.util.collections.NaryTree.preOrderTraverals > (NaryTree.java:290) > at repast.simphony.util.collections.NaryTree.preOrderTraversal > (NaryTree.java:283) > at > repast.simphony.engine.controller.DefaultController.runInitialize > (DefaultController.java:169) > at > repast.simphony.engine.controller.DefaultController.runInitialize > (DefaultController.java:317) > at > repast.simphony.ui.RSApplication.initSim(RSApplication.java:121) > at > repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17) > at javax.swing.AbstractButton.fireActionPerformed > (AbstractButton.java:1882) > at javax.swing.AbstractButton$Handler.actionPerformed > (AbstractButton.java:2202) > at javax.swing.DefaultButtonModel.fireActionPerformed > (DefaultButtonModel.java:420) > at > javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java: > 258) > at javax.swing.plaf.basic.BasicButtonListener.mouseReleased > (BasicButtonListener.java:236) > at java.awt.AWTEventMulticaster.mouseReleased > (AWTEventMulticaster.java:231) > at java.awt.Component.processMouseEvent(Component.java:5583) > at > javax.swing.JComponent.processMouseEvent(JComponent.java:3135) > at java.awt.Component.processEvent(Component.java:5348) > at java.awt.Container.processEvent(Container.java:2010) > at java.awt.Component.dispatchEventImpl(Component.java:4050) > at java.awt.Container.dispatchEventImpl(Container.java:2068) > at java.awt.Component.dispatchEvent(Component.java:3885) > at > java.awt.LightweightDispatcher.retargetMouseEvent(Container.java: > 4256) > at > java.awt.LightweightDispatcher.processMouseEvent(Container.java: > 3936) > at > java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866) > at java.awt.Container.dispatchEventImpl(Container.java:2054) > at java.awt.Window.dispatchEventImpl(Window.java:1791) > at java.awt.Component.dispatchEvent(Component.java:3885) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) > at java.awt.EventDispatchThread.pumpOneEventForHierarchy > (EventDispatchThread.java:269) > at java.awt.EventDispatchThread.pumpEventsForHierarchy > (EventDispatchThread.java:190) > at > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java: > 184) > at > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java: > 176) > at > java.awt.EventDispatchThread.run(EventDispatchThread.java:110) > > Can anyone tell me what caused this error and how to avoid it? > > Thanks, > Sandeep > University of Edinburgh > > > ------------------------------------------------------------------------ > - > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for just about anything Open > Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Repast-interest mailing list > Repast-interest@... > https://lists.sourceforge.net/lists/listinfo/repast-interest > > -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Repast-interest mailing list Repast-interest@... https://lists.sourceforge.net/lists/listinfo/repast-interest |
| Free Forum Powered by Nabble | Forum Help |