流程图方式建模,运行时出现错误。) n9 {/ g( \& h, V
表现为:小人儿和僵尸的icon都不动。0 M' n3 k' p1 Y# Z' x* B; P
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()' v3 m. [7 f( j8 F' [
" @ m2 H* S: @( y- d7 }
java.lang.reflect.InvocationTargetException
2 @: a6 i& o D# D at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)% \; k: }8 |( B0 c1 {9 V
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
2 z; g5 k3 T/ H; E8 J4 t( e at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
" H* J2 t; T9 p4 W% ?7 Z at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
+ U6 W9 B- S2 B( W at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
@' S2 x" q; z, t at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
8 I0 f G! c! d+ M3 s! p* c at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
) C0 L7 Q* \2 a3 R at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
, E H/ U9 q# B' t6 r4 W; Q at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
1 E4 n" V$ ~" X; u4 i$ s at java.lang.Thread.run(Unknown Source)! G' m) B" M) a/ X8 w' Y8 j0 n- S
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]$ N8 [. s5 ?5 Z; S9 {% I
Possible solutions: getNeighborhood(boolean)% v/ w4 ?- }: z8 a c& f
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
9 o' G, M! e9 c0 Z# y6 i4 D' ?9 R5 g at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)% y; a# T3 g! Y7 ~& l3 q3 }4 i
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
- R- C* w' I1 q! r; n* L at FlowZombies.Zombie.step(Zombie.groovy:128)9 k2 ?$ N8 `: V8 q% W
8 }- t8 o' [% V, I: g" I, Z1 h( m3 V
请高手指点迷津呀!痛苦中…… |