From: Robert N. <rn...@gm...> - 2006-03-07 22:22:16
|
Jos=E9, I will have to take a look at this. I will get back to you. Robert On Mar 7, 2006, at 5:12 PM, Josema wrote: > Robert, > > > > I have taken a look at the GAL file and there isn=92t anything =20 > strange, indeed, with the same file but executing the model with =20 > agent analyst it works perfectly. The agentList in that moment has =20 > size 0, but I think it is normal since the execution is in =20 > buildModel(), and we have just declared the list. The order that =20 > fails is > > > > gisHandler.readNeighborhoodInfo(neighborhoodFile, agentList); > > > > I have not changed anything in your model, so if it works when you =20 > and the rest of repasters execute it and it doesn=92t when I run it, =20= > I suppose it should be something related to my configuration. I run =20= > perfectly other repast programs so I do not know. Should I do =20 > anything with arcmap while it is running? > > > > The complete Exception is: > > > > java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 > > at java.util.ArrayList.RangeCheck(ArrayList.java:507) > > at java.util.ArrayList.get(ArrayList.java:324) > > at anl.repast.gis.data.GeotoolsData.readNeighborhoodInfo=20= > (Unknown Source) > > at SluGISEsri.buildModel(SluGISEsri.java:166) > > at SluGISEsri.begin(SluGISEsri.java:223) > > at uchicago.src.sim.engine.BaseController.beginModel=20 > (Unknown Source) > > at =20 > uchicago.src.sim.engine.AbstractGUIController.beginModel(Unknown =20 > Source) > > at uchicago.src.sim.engine.Controller.beginModel=20 > (Unknown Source) > > at uchicago.src.sim.engine.BaseController.startSim=20 > (Unknown Source) > > at uchicago.src.sim.engine.Controller.startSim(Unknown =20 > Source) > > at uchicago.src.sim.engine.Controller$2.actionPerformed=20 > (Unknown Source) > > at javax.swing.AbstractButton.fireActionPerformed=20 > (AbstractButton.java:1786) > > at javax.swing.AbstractButton=20 > $ForwardActionEvents.actionPerformed(AbstractButton.java:1839) > > at javax.swing.DefaultButtonModel.fireActionPerformed=20 > (DefaultButtonModel.java:420) > > at javax.swing.DefaultButtonModel.setPressed=20 > (DefaultButtonModel.java:258) > > at =20 > javax.swing.plaf.basic.BasicButtonListener.mouseReleased=20 > (BasicButtonListener.java:245) > > at java.awt.AWTEventMulticaster.mouseReleased=20 > (AWTEventMulticaster.java:231) > > at java.awt.Component.processMouseEvent(Component.java:=20 > 5100) > > at java.awt.Component.processEvent(Component.java:4897) > > at java.awt.Container.processEvent(Container.java:1569) > > at java.awt.Component.dispatchEventImpl(Component.java:=20 > 3615) > > at java.awt.Container.dispatchEventImpl(Container.java:=20 > 1627) > > at java.awt.Component.dispatchEvent(Component.java:3477) > > at java.awt.LightweightDispatcher.retargetMouseEvent=20 > (Container.java:3483) > > at java.awt.LightweightDispatcher.processMouseEvent=20 > (Container.java:3198) > > at java.awt.LightweightDispatcher.dispatchEvent=20 > (Container.java:3128) > > at java.awt.Container.dispatchEventImpl(Container.java:=20 > 1613) > > at java.awt.Window.dispatchEventImpl(Window.java:1606) > > at java.awt.Component.dispatchEvent(Component.java:3477) > > at java.awt.EventQueue.dispatchEvent(EventQueue.java:456) > > at java.awt.EventDispatchThread.pumpOneEventForHierarchy=20= > (EventDispatchThread.java:201) > > at java.awt.EventDispatchThread.pumpEventsForHierarchy=20 > (EventDispatchThread.java:151) > > at java.awt.EventDispatchThread.pumpEvents=20 > (EventDispatchThread.java:145) > > at java.awt.EventDispatchThread.pumpEvents=20 > (EventDispatchThread.java:137) > > at java.awt.EventDispatchThread.run=20 > (EventDispatchThread.java:100) > > > > De: rep...@li... [mailto:repast-=20 > int...@li...] En nombre de Robert Najlis > Enviado el: martes, 07 de marzo de 2006 20:54 > Para: Jos=E9 Manuel Gal=E1n > CC: rep...@li... > Asunto: Re: [Repast-interest] SluGIS > > > > Jos=E9, > > > > Did you take a look at the GAL file to make sure everything is in =20 > order? I am just wondering about the 0 index and o size... Is =20 > that due to the GAL file or the agents? In other words, are there =20 > 0 agents, or are there o lines in the GAL file, or is something =20 > else the matter? > > > > Robert > > > > > > > > On Mar 7, 2006, at 2:29 PM, Jos=E9 Manuel Gal=E1n wrote: > > > > > Dear List, > > > > I am trying to run the SluGIS Model and I am having more problems =20 > than expected. First of all my program didn=92t find the ESRIDisplay =20= > class; I have read in previous posts that it is not included in =20 > 3.1, so I have also installed repast 3.0 and imported that class =20 > from there. Now when I run the model I receive this message: > > > > java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 > > at java.util.ArrayList.RangeCheck(ArrayList.java:507) > > at java.util.ArrayList.get(ArrayList.java:324) > > at anl.repast.gis.data.GeotoolsData.readNeighborhoodInfo=20= > (Unknown Source) > > at SluGISEsri.buildModel(SluGISEsri.java:166) > > > > making reference to the line: > > > > gisHandler.readNeighborhoodInfo(neighborhoodFile, agentList); > > > > It is curious, when my model doesn=92t read the neighborhoodFile, =20 > parcelall.GAL, it runs, however it breaks when it reads it > > > > does anybody know where can be my mistake? How can I run this model? > > > > Thank you in advance and regards from Spain > > > > Jose M. Galan > > > > > > > |