流程图方式建模,运行时出现错误。 3 X6 x% k. V q% L. q$ L表现为:小人儿和僵尸的icon都不动。 6 E. l9 a: I s* Jerror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step(); v" c+ z F' K; ?. ^
; C l* i4 q2 l! n- i/ ?6 |java.lang.reflect.InvocationTargetException 0 q# q6 v4 p9 {" S# ]( v at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)3 o: U4 Q) Q. w- l ^' e
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)% n f* |6 L" |1 E' h& I
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69) ' h2 ?: H5 U- D: n, e+ q" V at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253) - J/ O7 i5 G$ o/ S at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38), M+ n! }3 U8 T: C+ t
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)5 i6 }% X( m v
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201) 4 k" a3 d& c d% m at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352) 7 O& E/ |0 o/ l0 U+ e/ T at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53) " S, ^- A/ |$ u at java.lang.Thread.run(Unknown Source)# z2 R+ P+ v8 l `
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] ' x0 C4 B( V5 g2 i' CPossible solutions: getNeighborhood(boolean): V* I5 x# j. ^& ^0 G
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)8 z0 q8 w% C! \3 Y3 H9 W/ N4 U( f, S
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46) $ t( \8 `2 O7 _/ A( Q: r1 g; ]( P at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124) 3 r+ x* W- f$ j$ h at FlowZombies.Zombie.step(Zombie.groovy:128)* E. B T/ k0 j! V& C% w& R: h
9 R$ z" `! C3 g2 u5 E( T$ g+ J- C
请高手指点迷津呀!痛苦中……