流程图方式建模,运行时出现错误。9 o0 K6 f; b( }4 F4 T" @- C: P( _# Y, _% Y
表现为:小人儿和僵尸的icon都不动。+ }# ~1 q% w. V. H1 m2 J
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step() 4 w4 L Y% Q" y4 P: A8 k% d% L" O& P3 e/ m. b3 J
java.lang.reflect.InvocationTargetException 0 V: O# ^! Z: A at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>) u' G( H- q. g8 h6 a
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) + D& y3 x0 a6 l3 `& a9 N" O. r3 k# w at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)/ R* s* V5 N' D" T0 m
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253) # W; K" [; {! E0 f7 {0 p3 o at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38) 0 S+ y3 v& ^' y2 _! D$ x$ |8 e at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)% K( d6 G# ^+ A% B5 P
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)4 y9 l3 `* a5 o I" F' J
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352) + M" j) n! ]5 } at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53) + F$ T) R5 V0 {6 x at java.lang.Thread.run(Unknown Source)% Q* R- D* S I
Caused by: groovy.lang.MissingMethodException: No signature of method: repast.simphony.query.space.grid.GridCellNgh.getNeiborhood() is applicable for argument types: (java.lang.Boolean) values: [true]4 k5 a" L0 j& P6 v3 d; [0 v- ~
Possible solutions: getNeighborhood(boolean)4 o$ [* z' R+ [1 o; K
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)3 V9 W4 g' H9 Q% |% K6 _. m! c
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)+ ~$ H. s" R/ G# i0 ]6 S' c
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)6 {7 e6 y D Y: T% Z6 x- d
at FlowZombies.Zombie.step(Zombie.groovy:128), @) l% O" Q( q; V& Q