流程图方式建模,运行时出现错误。0 x' t/ P% g4 T" x4 T. ]' O! R
表现为:小人儿和僵尸的icon都不动。8 W* R) o F+ Z+ X
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()2 i! P/ n1 }0 k2 t7 O' X) L3 S
) {+ m6 _8 z- x# O, i6 F) @
java.lang.reflect.InvocationTargetException
- f- ~+ D2 \$ i, e7 ` at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>): w- e9 g$ |0 q, W" q C! E2 h
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
) e" V P M; e& o U7 C" f at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)2 h5 k& c' b' ?2 Y5 }
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
0 P( ^( u- T$ C- w, g- D at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
0 o+ U' x8 d, h, q$ M, | at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)3 p$ X- i% i; n. ]8 t! D
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)3 f3 e0 X. `+ ?* U
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352). ]2 [* k9 N: N
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
! i& M; H% r M; \! Z1 [ at java.lang.Thread.run(Unknown Source)7 ?: k4 B1 A9 h, {
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]
+ d% O1 k% X# O7 ^- }2 _Possible solutions: getNeighborhood(boolean)
5 ]: a0 D) D/ ^; S+ b at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
. Y1 T) {) M9 y) z7 { at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
0 v! D( R6 A! N' J$ U; T+ r at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
! p9 v1 P: Z2 J, E5 `& ? at FlowZombies.Zombie.step(Zombie.groovy:128)& U, m# }2 i4 A1 e( g
- C- O6 c7 U0 P5 R( C6 c
请高手指点迷津呀!痛苦中…… |