流程图方式建模,运行时出现错误。
: l: Q, \5 d+ ?( \( U, i8 y. _7 A表现为:小人儿和僵尸的icon都不动。! x- z+ Y; @5 y' ^ D% S
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()( O6 _+ h1 Z* [3 Q0 o5 f
0 K# t. \) f) w2 k* D" y
java.lang.reflect.InvocationTargetException. n/ M% U! n1 _: ?! O
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
% S. C% s6 L/ ] f at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
6 C3 u7 O' }- J4 o0 Y. d* D at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
7 i; U1 `4 K9 f6 n8 ^- R at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)% n& Z: l! X M: @* t' a; C
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)7 P1 ^9 X( w0 b3 b8 g7 ?
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)/ l, o1 t7 G4 _2 t4 G @
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
* l' ~2 B1 ]4 @* y2 g; h4 c at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352); I; s. A, m4 V" |! o0 d2 {
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)( ~% p! ~3 k+ }: m9 b+ |& r! ?# W
at java.lang.Thread.run(Unknown Source)& o% X2 C3 @% R2 |2 k
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]
# T; `2 w f- J, T tPossible solutions: getNeighborhood(boolean)/ |8 o7 k% V" y) X0 [8 t: D
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)4 b7 N9 m6 x' G! k7 d* Z( M0 y5 L
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46): D; ?# y! t- L, h W
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
! e6 n: B0 E5 _( W, @, R& C at FlowZombies.Zombie.step(Zombie.groovy:128)
' y# ?+ ^' K( u/ g+ r2 y 4 I. Y2 \6 @4 P
请高手指点迷津呀!痛苦中…… |