流程图方式建模,运行时出现错误。, _9 g2 C8 p; b+ C4 w$ a2 c
表现为:小人儿和僵尸的icon都不动。
- c+ }; S2 m4 S9 M7 F9 X8 Herror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()- @8 f% N8 m- _- |% }# w- T
2 J% a: \$ q) H: L
java.lang.reflect.InvocationTargetException
8 M" J( O/ r/ `7 J' F/ h0 [ at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
& _$ i3 X# L! `0 | at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
5 C5 m7 X8 i9 q' Q5 F at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)8 z" C) B2 U2 s. w9 U1 T
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
. x! z4 P9 F% I at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38) u" p$ k7 A) U, [
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
, q" N% n% O- a' V- b& e: ^' u+ A2 [ at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
7 _" \0 l6 F! F* p4 t0 r at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
[0 `3 T8 d6 V A at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
& I/ P, d8 t. G( C# S at java.lang.Thread.run(Unknown Source)
8 X, I0 j; ?5 X. `- W0 o( `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]
3 v% c/ o, {0 J, EPossible solutions: getNeighborhood(boolean)8 c6 n5 w% u; r" x. W
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)" ~3 J9 \) T& g6 y
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)* M9 I. X; x M3 h" ]
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)1 u7 j' t0 t6 m3 w
at FlowZombies.Zombie.step(Zombie.groovy:128)
5 j/ H3 P7 a# D6 L9 G
( ]; V% B l; `0 `8 Z请高手指点迷津呀!痛苦中…… |