From: McCune, B. <bm...@ns...> - 2010-06-29 15:16:40
|
Diego, I seem to remember running into this. I don't think I figured out the error, but freezedrying as xml instead did work for me. Ben -----Original Message----- From: Diego Pizzocaro [mailto:D.P...@cs...] Sent: Monday, June 28, 2010 1:22 PM To: rep...@li... Subject: [Repast-interest] Repast Symphony - Problems loading model from freezedried data Hi all, I am a beginner Repast Symphony user and I have been following the tutorials step by step. In particular doing the infrastructure_demo tutorial, I am not able to initialize the model with the freezedried data. In other words I manage to browse and select the zip archive of freezedried data but when I reset and then click the initialize button I get the two error messages attached at the bottom of this email. I have checked the FAQ and also browse the web without finding any solution to this problem. I really appreciate your help, Thanks in advance! - Diego 2010/06/28 17:07:28,902: Error while attempting to rehydrate class 'class repast.simphony.context.DefaultContext' with key 'InfrastructureDemo'. repast.simphony.space.SpatialException: Target location 0 is outside of grid's dimensions. at repast.simphony.space.grid.AbstractGridPointTranslator.boundsCheck(AbstractGridPointTranslator.java:48) at repast.simphony.space.grid.AbstractGridPointTranslator.transform(AbstractGridPointTranslator.java:38) at repast.simphony.space.grid.AbstractGrid.moveTo(AbstractGrid.java:143) at repast.simphony.space.grid.RandomGridAdder.add(RandomGridAdder.java:24) at repast.simphony.space.grid.RandomGridAdder.add(RandomGridAdder.java:1) at repast.simphony.context.space.grid.ContextGrid.addFromContext(ContextGrid.java:73) at repast.simphony.context.space.grid.ContextGrid.addAll(ContextGrid.java:80) at repast.simphony.context.space.grid.ContextGrid.eventOccured(ContextGrid.java:63) at repast.simphony.context.AbstractContext.fireContextEvent(AbstractContext.java:360) at repast.simphony.context.AbstractContext.addProjection(AbstractContext.java:339) at repast.simphony.freezedry.freezedryers.proj.ProjectionDryer.loadProperties(ProjectionDryer.java:93) at repast.simphony.freezedry.freezedryers.proj.GridProjectionDryer2.loadProperties(GridProjectionDryer2.java:74) at repast.simphony.freezedry.freezedryers.proj.GridProjectionDryer2.loadProperties(GridProjectionDryer2.java:1) at repast.simphony.freezedry.freezedryers.proj.ProjectionDryer.buildAndAddProjection(ProjectionDryer.java:134) at repast.simphony.freezedry.freezedryers.ContextFreezeDryer.loadPropertyProjections(ContextFreezeDryer.java:197) at repast.simphony.freezedry.freezedryers.ContextFreezeDryer.loadProjections(ContextFreezeDryer.java:223) at repast.simphony.freezedry.freezedryers.ContextFreezeDryer.rehydrate(ContextFreezeDryer.java:106) at repast.simphony.freezedry.freezedryers.ContextFreezeDryer.rehydrate(ContextFreezeDryer.java:1) at repast.simphony.freezedry.FreezeDryedRegistry.rehydrateObject(FreezeDryedRegistry.java:141) at repast.simphony.freezedry.FreezeDryedRegistry.rehydrate(FreezeDryedRegistry.java:150) at repast.simphony.dataLoader.engine.FreezeDryedContextBuilder.create(FreezeDryedContextBuilder.java:50) at repast.simphony.dataLoader.engine.FreezeDryedContextBuilder.build(FreezeDryedContextBuilder.java:31) at repast.simphony.dataLoader.engine.DataLoaderControllerAction.runInitialize(DataLoaderControllerAction.java:51) 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:324) at repast.simphony.ui.RSApplication.initSim(RSApplication.java:134) at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272) at java.awt.Component.processMouseEvent(Component.java:6348) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6113) at java.awt.Container.processEvent(Container.java:2085) at java.awt.Component.dispatchEventImpl(Component.java:4714) at java.awt.Container.dispatchEventImpl(Container.java:2143) at java.awt.Component.dispatchEvent(Component.java:4544) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4282) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212) at java.awt.Container.dispatchEventImpl(Container.java:2129) at java.awt.Window.dispatchEventImpl(Window.java:2478) at java.awt.Component.dispatchEvent(Component.java:4544) at java.awt.EventQueue.dispatchEvent(EventQueue.java:635) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) 2010/06/28 17:07:28,904: Projection error repast.simphony.space.SpatialException: Target location 0 is outside of grid's dimensions. at repast.simphony.space.grid.AbstractGridPointTranslator.boundsCheck(AbstractGridPointTranslator.java:48) at repast.simphony.space.grid.AbstractGridPointTranslator.transform(AbstractGridPointTranslator.java:38) at repast.simphony.space.grid.AbstractGrid.moveTo(AbstractGrid.java:143) at repast.simphony.space.grid.RandomGridAdder.add(RandomGridAdder.java:24) at repast.simphony.space.grid.RandomGridAdder.add(RandomGridAdder.java:1) at repast.simphony.context.space.grid.ContextGrid.addFromContext(ContextGrid.java:73) at repast.simphony.context.space.grid.ContextGrid.addAll(ContextGrid.java:80) at repast.simphony.context.space.grid.ContextGrid.eventOccured(ContextGrid.java:63) at repast.simphony.context.AbstractContext.fireContextEvent(AbstractContext.java:360) at repast.simphony.context.AbstractContext.addProjection(AbstractContext.java:339) at repast.simphony.freezedry.freezedryers.proj.ProjectionDryer.loadProperties(ProjectionDryer.java:93) at repast.simphony.freezedry.freezedryers.proj.GridProjectionDryer2.loadProperties(GridProjectionDryer2.java:74) at repast.simphony.freezedry.freezedryers.proj.GridProjectionDryer2.loadProperties(GridProjectionDryer2.java:1) at repast.simphony.freezedry.freezedryers.proj.ProjectionDryer.buildAndAddProjection(ProjectionDryer.java:134) at repast.simphony.freezedry.freezedryers.ContextFreezeDryer.loadPropertyProjections(ContextFreezeDryer.java:197) at repast.simphony.freezedry.freezedryers.ContextFreezeDryer.loadProjections(ContextFreezeDryer.java:223) at repast.simphony.freezedry.freezedryers.ContextFreezeDryer.rehydrate(ContextFreezeDryer.java:106) at repast.simphony.freezedry.freezedryers.ContextFreezeDryer.rehydrate(ContextFreezeDryer.java:1) at repast.simphony.freezedry.FreezeDryedRegistry.rehydrateObject(FreezeDryedRegistry.java:141) at repast.simphony.freezedry.FreezeDryedRegistry.rehydrate(FreezeDryedRegistry.java:150) at repast.simphony.dataLoader.engine.FreezeDryedContextBuilder.create(FreezeDryedContextBuilder.java:50) at repast.simphony.dataLoader.engine.FreezeDryedContextBuilder.build(FreezeDryedContextBuilder.java:31) at repast.simphony.dataLoader.engine.DataLoaderControllerAction.runInitialize(DataLoaderControllerAction.java:51) 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:324) at repast.simphony.ui.RSApplication.initSim(RSApplication.java:134) at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272) at java.awt.Component.processMouseEvent(Component.java:6348) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6113) at java.awt.Container.processEvent(Container.java:2085) at java.awt.Component.dispatchEventImpl(Component.java:4714) at java.awt.Container.dispatchEventImpl(Container.java:2143) at java.awt.Component.dispatchEvent(Component.java:4544) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4282) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212) at java.awt.Container.dispatchEventImpl(Container.java:2129) at java.awt.Window.dispatchEventImpl(Window.java:2478) at java.awt.Component.dispatchEvent(Component.java:4544) at java.awt.EventQueue.dispatchEvent(EventQueue.java:635) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Repast-interest mailing list Rep...@li... https://lists.sourceforge.net/lists/listinfo/repast-interest |