流程图方式建模,运行时出现错误。% U+ r1 M( p' L) @4 i; E! j
表现为:小人儿和僵尸的icon都不动。! J. T; _5 G) }# K |
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step(); w6 f( H% A$ t6 x" X* A
5 g F' w6 j" q3 J7 |
java.lang.reflect.InvocationTargetException/ S: w2 L, p; [
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)) V7 U' F" h8 |. k9 a3 V
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)8 Q F8 o! Y- o2 y5 v. y3 d$ [4 c
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69) T* p) {& F/ R. m" Y% Y; L
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)1 \7 H4 [& D, M- w
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
W; _& k" \8 \' A, h: ]# m- U at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)! c6 p; X" m" f9 r8 p8 u
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
s6 a/ a6 c3 T0 @( g at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
4 i. u% s; T6 D: Z; e' Q' L at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)3 s' z T$ A2 @
at java.lang.Thread.run(Unknown Source)+ t4 W; }1 O$ j: k2 O
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]
& S/ p% t, l! @9 e& dPossible solutions: getNeighborhood(boolean)
/ p/ r+ H; l7 l/ D' h! Q9 F ^ at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
$ y! c$ P3 |! s. W! t1 C at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
8 w* E0 I% b. M% I, s2 R' | at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)) r2 X3 Y( a A, U
at FlowZombies.Zombie.step(Zombie.groovy:128)
4 l8 Q7 H& @. V/ _
Y; N( N$ G& M! C请高手指点迷津呀!痛苦中…… |