流程图方式建模,运行时出现错误。5 V& N$ [2 u+ e- n+ G6 u1 e
表现为:小人儿和僵尸的icon都不动。( V3 y5 s0 [/ o/ D7 b
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()- A s! J: }3 A+ ]* _8 ?) _
1 O' p# l; [9 _2 l$ W
java.lang.reflect.InvocationTargetException7 i& R9 t# C) u U; {+ v
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>) 3 f. \# u3 L# t. R% j at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) $ \3 L" l# d/ _8 | a8 w$ L at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69) ; h. W3 m5 C* U at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253) * |, i" s# Y6 g r6 k at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)/ A% r3 z% f. R+ `4 @$ V) H" o4 T
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184) 0 V5 _ z; E9 x- o( w8 L* o at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201) 8 D! q5 H" K y3 Q' v at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)* Q9 `* N" a* ^
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53) $ ~. a: L/ E2 R4 W at java.lang.Thread.run(Unknown Source)0 t& w0 w2 t" \- Y( _5 [. d
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]; F( o; ?6 I/ _0 d" O( y% e- ~
Possible solutions: getNeighborhood(boolean) % G! u- e. r* A* o2 \/ ^ at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)' Y' [% g7 l# [
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46) # H( b. o5 p6 f1 ~. L7 ] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)" e- A/ ]$ m4 {
at FlowZombies.Zombie.step(Zombie.groovy:128) ) ]( J, l0 i' M2 D ; C7 W5 H/ M6 V2 G ~
请高手指点迷津呀!痛苦中……