流程图方式建模,运行时出现错误。
& l1 ?4 \, D1 M1 W# j& g. \% N表现为:小人儿和僵尸的icon都不动。9 f+ r5 W9 X! W# |3 L
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
: k4 t, n# A3 ?% f5 ?7 j" ^
o# }/ g0 C* H; V2 U; Cjava.lang.reflect.InvocationTargetException
5 ]8 z. D- k; {# z- o at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)6 w5 X& d6 T5 E2 H6 d3 W b X
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
' B) f4 s0 ?0 Z at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)1 ^% e; y; i1 |
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
( U: b/ V ^' }* s- e4 K5 T& S at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)- e Q) j' C/ ~+ k* H/ b. U( D3 Z
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)8 t6 p' z5 N/ i" t% e0 L6 [! B( Z
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201); V. m' ^! L" O a" P
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)! Q. J! o) M, ?0 `
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)4 d+ l/ ^# B2 G6 ?
at java.lang.Thread.run(Unknown Source)
9 t# _& d5 g m. YCaused 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]! H$ L; E4 N6 c* J: l- n j$ l' d `
Possible solutions: getNeighborhood(boolean)7 |$ {& q& T F+ T/ j3 `
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54); `5 s+ U. m# N) S
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46) v3 s3 L& z% U" F
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)1 |+ p7 q, h$ s, C
at FlowZombies.Zombie.step(Zombie.groovy:128)
. O5 @1 V4 n& Q4 p. K
2 \% x" e- }2 Z5 i5 L& b! M请高手指点迷津呀!痛苦中…… |