流程图方式建模,运行时出现错误。
0 p2 n, r/ q, u' l表现为:小人儿和僵尸的icon都不动。7 s, {4 W" \3 l# ]: b( |
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()7 E: A; f7 m! b& h8 x
6 M+ Z" W+ C3 F. b0 ?& h& l
java.lang.reflect.InvocationTargetException, u0 r5 D2 @3 u; w; a% T, a
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
8 s! F! ~* W% X* m" E$ w ?6 L* W9 { at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
5 p: \4 K( k& {8 Q/ D at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
1 Q% T& M( W3 {' O6 u at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
& W+ @, d. j: \( Y at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)& E; J0 ]& S- x, r& Y& L; w
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
; |0 x W9 m9 H at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)# i3 V8 {' T+ ^% S" |. ~2 e
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
5 I: X" I; P( n! J# R2 q at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
# v5 j0 ?& c9 Y$ J at java.lang.Thread.run(Unknown Source)
: y' _+ ^2 L- s) k; @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]: G' L3 D. x) R6 K3 J& k- a' ^6 v
Possible solutions: getNeighborhood(boolean)# Y$ [2 i; A. d7 k' v8 B/ n, ]
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
& T4 `/ \8 `! v( L at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
: @$ Y1 b/ u" i# l9 T$ O: x5 `1 j" ^ at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
5 |* I# g! B0 [5 e7 T1 X at FlowZombies.Zombie.step(Zombie.groovy:128)) n, F) J7 [' r* x$ m
( m" l) a; d8 c# k% I; {) h- f, d
请高手指点迷津呀!痛苦中…… |