流程图方式建模,运行时出现错误。
& g4 e$ v! w3 r% s表现为:小人儿和僵尸的icon都不动。, Q/ Z Z0 Q/ {/ H1 n+ ]& \
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step(); }; N: H8 p; F# C
7 }' a$ B- t* L& m) B( D
java.lang.reflect.InvocationTargetException
D4 Q& B- ?5 O7 ~$ I at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)* e) @9 {1 T2 v
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
7 [" V" ^6 q! @ h at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
f, ?& g6 K6 V3 O$ T Q) E at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
0 Y; _2 l$ u0 j5 R7 ^ at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
]: Z5 p# J$ r at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
: @& o: u- f6 E0 s6 Z% O, k8 \/ }9 U at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
) U8 H" f. E) E; n# W9 l9 [ at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
5 j( c+ C8 D# g: ^% ?- ]8 M at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
0 s; v; N, M5 m at java.lang.Thread.run(Unknown Source)% l/ v, _) T! A- C _
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], O/ x5 c; @+ a. y1 {5 d& V; U
Possible solutions: getNeighborhood(boolean)
2 @# P$ C' B% l& @5 H at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)* n) O. A0 c1 f6 Y- Z- C* e
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
/ f7 ~3 r+ J5 j* \ at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
r7 K: E1 o A7 w7 H5 m% [) Z at FlowZombies.Zombie.step(Zombie.groovy:128)$ M9 P% L {2 `. _
& m2 W# f$ C' Q0 T& t
请高手指点迷津呀!痛苦中…… |