流程图方式建模,运行时出现错误。 H a# E) C: ~. x% [
表现为:小人儿和僵尸的icon都不动。* \: ]* g6 T; M8 g% U
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()7 o8 {5 ]: y9 ]0 O5 `
. z% Y" g; w8 }0 _6 Ijava.lang.reflect.InvocationTargetException
* z7 a7 M, g9 d1 V8 x1 ~* ] at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)9 `+ w* @8 J0 j- u& `
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)- P6 F( s$ F: k+ g3 ~) ]
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69) [9 t) G- P) Z) k8 M' t) B
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
4 i" V9 A0 I0 ]" @+ H8 ^( y at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
: p t0 e; T, ^2 p7 I at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)/ O J; C5 Q9 I' u% r2 s x' X; M
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201); ~: r Z; y5 `/ g5 R4 V! s
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
1 f$ c# y1 V8 a4 h! ^+ g9 P at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
4 h6 f$ o1 M/ i" _ x/ c) N% B at java.lang.Thread.run(Unknown Source)
) ^2 \0 U# Z4 ]! m' z( b, Z5 pCaused 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]
7 q1 @# g1 Q0 jPossible solutions: getNeighborhood(boolean)" J- k: W( X& v$ |1 z& G5 N' L
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
; c. N, S3 o0 g# t0 a at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)+ I( b4 X" c0 V0 t
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
) m9 Y2 y0 w9 M! b at FlowZombies.Zombie.step(Zombie.groovy:128)2 [% D5 Z, I; a9 u+ U8 @3 T
4 ? Q' S7 @3 s
请高手指点迷津呀!痛苦中…… |