流程图方式建模,运行时出现错误。 8 O* k% u- x* T. q0 ?5 T+ a表现为:小人儿和僵尸的icon都不动。 2 @& u3 w4 a9 A: I) s4 {error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()! T; V$ B6 w _
3 o8 [& z) J: V2 f4 K+ q; Q/ Cjava.lang.reflect.InvocationTargetException5 l& i2 g8 f9 |6 _1 K- }4 q
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)1 \, N* r3 e. k' Q5 V$ s
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) * B" {* ~/ b: T# P at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69) ! y5 P Z( w N1 }& U. Z( k at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253): `" `6 C1 C2 s% A
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)7 h4 |4 G! l& E$ I( ^
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184) - n1 L5 v+ G6 l1 F at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201) ' R' \0 F8 B2 @( C9 p at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352) 7 _4 Z% b! V( K: u8 x at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)/ ?, {: i3 @7 s0 _; `1 b' D
at java.lang.Thread.run(Unknown Source)! _: w0 c9 |# m
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] + l3 o% P) O. T. N+ c: cPossible solutions: getNeighborhood(boolean): H- g7 V. h) B
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54) + B+ [' d3 w; [- h' W- p/ Q3 v at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46) ' `3 Y' Q8 @9 D% k! d4 g at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)% j" _+ c. ]$ r) n" Q
at FlowZombies.Zombie.step(Zombie.groovy:128)" O0 Y' l; O. L! U% u& I0 _
# K8 p2 j/ q; X2 H0 h! f2 c: U/ g
请高手指点迷津呀!痛苦中……