流程图方式建模,运行时出现错误。- H! t9 {' k- ~ g
表现为:小人儿和僵尸的icon都不动。
+ z2 A8 F( @3 R) _4 @error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()! U9 [" [0 Z$ Y2 ?
! w! G" ]1 X, K5 L
java.lang.reflect.InvocationTargetException0 w6 K1 {) C8 | V$ d# r
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>) R; r1 D- s, s9 L
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)6 c! ]9 Z% `! |) |- U
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
9 I2 R# _& j7 o2 P. ^/ M1 m% Z# Q/ H at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)* s) B, `. [2 r
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)3 X5 R9 [7 L4 `& l( w$ T7 i6 D
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)$ H2 A) J F) I5 o a9 V; b! {
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
H6 E$ O/ i4 s: _/ ^) `2 \ at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)8 O# N/ @. w$ R! ^4 W
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)* |8 z& m i8 n) R: J
at java.lang.Thread.run(Unknown Source)2 |% [) f! N* _6 h) G) U
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]
5 J, Q. a. @# s% H SPossible solutions: getNeighborhood(boolean)
, O& p1 z( u& D- { at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
+ N5 A+ _2 F" }+ r/ M at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
( ]. J3 t; c. i' p% z at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)& @( q. x7 k& [0 U5 L
at FlowZombies.Zombie.step(Zombie.groovy:128)
G& B2 @% _7 J; O2 \/ R/ B
V/ g" T+ O/ g% @, R0 I3 E请高手指点迷津呀!痛苦中…… |