流程图方式建模,运行时出现错误。
5 ]4 q3 M, w7 h- E表现为:小人儿和僵尸的icon都不动。
, p5 A a! b O" i$ w( w9 [8 ]6 berror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
8 l" L, y' H' M3 s
: r X# S: r; C3 Y2 H; |java.lang.reflect.InvocationTargetException7 d f# s: K1 |: L
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
/ ]. L! s: i5 Y at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
' m j* o2 U( V* i; B$ e at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)8 J* [6 z, V+ e, L% H5 e
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
* b, q/ |1 r' K9 V4 F at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
; S; a) e/ C$ B" Y; Y! W at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)$ t7 r" z8 K% J4 d
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201). Z6 m1 w0 y- k1 {5 h
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)) m& O! m1 j) n. ]: M; T
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)# v) O/ L) f* ?% Y7 Y! u* F
at java.lang.Thread.run(Unknown Source)
3 o. D- I" a$ F& MCaused 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]& q4 ]; \% t9 l5 J2 G: g/ P
Possible solutions: getNeighborhood(boolean)' T0 y# ?! f) b: u8 {6 [( b4 D
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)' L& j& F; d' P) Z3 C1 s, {' q/ M
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)" j7 V5 `3 q( U2 _& o) @
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)( O7 Z0 L. r5 H
at FlowZombies.Zombie.step(Zombie.groovy:128)( V7 G. R0 K5 Z% u9 H
_, J. L: Y/ T5 e9 v. X请高手指点迷津呀!痛苦中…… |