流程图方式建模,运行时出现错误。
! N1 s: J2 Z4 ^* N$ \) ` ?* r1 D表现为:小人儿和僵尸的icon都不动。
. K% D+ m6 R9 t. n8 k. {# s+ [error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
, |, {! f% u9 ?' |$ U6 k
$ |4 n( D: h% l9 p- a' |1 _9 a. \8 Fjava.lang.reflect.InvocationTargetException, f( Z' L6 E' A& \3 Y
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)+ S+ `8 W4 R4 D* Z
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
% c: p4 H0 q% {$ f) a8 H2 B5 T, } at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)- |9 a$ O& ^4 C: }) n
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253) Q3 z* z0 h; m4 X0 M( \
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
6 t) S- X; |" {; }- K at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
; z& s8 q' R% k( O& T0 _, G7 M3 L: u! T at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)9 D$ I; Z; y) [5 b. M
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
' h/ Y, h" o3 \% n) z, _8 J at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)' Q* d9 F# Z9 y7 l
at java.lang.Thread.run(Unknown Source)! o8 ?) j' A" g9 y
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]" J, G- m- p2 T& O
Possible solutions: getNeighborhood(boolean)1 ~5 t1 z$ t' |7 B" @
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
( a# Q+ G, m" V. l at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)+ a$ }& m: @6 N* N* u$ S5 V
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)" ]6 s2 m; J0 Q* B, K' I3 K' }4 l+ v
at FlowZombies.Zombie.step(Zombie.groovy:128)
5 ? v) B' J! Z1 C+ C
3 u, l. x2 c6 }- ]5 }' h8 X请高手指点迷津呀!痛苦中…… |