流程图方式建模,运行时出现错误。/ h9 R& e* d0 I
表现为:小人儿和僵尸的icon都不动。
/ c4 R9 r7 V4 O4 Rerror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()3 L* k# `3 K$ [5 W
- W/ A$ N5 ?; F2 c) f) \ ~java.lang.reflect.InvocationTargetException. c& \$ S2 z2 M* R5 K3 _8 y
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
: k' n/ d" U" Z( H7 T at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)) W( e* [, e% o) Z+ f2 h
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
8 a8 t: j. T" [8 b7 |8 g at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)0 v9 u5 s& W' Q0 R, L
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)$ K- g& x3 N9 U$ a1 A
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)+ P0 b# v7 U3 s: i7 |& R- d
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
3 ~1 ?$ e5 h! v: E; r at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)- m. r$ u+ e& M7 p3 }& N3 Q1 w
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)' h) g5 @5 }0 F" ~3 O6 v. J
at java.lang.Thread.run(Unknown Source)$ o6 q, l( t, O# h) H0 `1 Q
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]
: H7 E6 `- v8 ZPossible solutions: getNeighborhood(boolean)/ n1 f1 `6 x$ t6 h1 _0 V; B* g
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)9 C, U4 m% @! s8 V
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
. O f7 Y' ^+ \+ T at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)/ O: x7 b4 F! U! ~
at FlowZombies.Zombie.step(Zombie.groovy:128)( g+ l0 R. d1 z3 L* x
; S$ a2 l- I/ M
请高手指点迷津呀!痛苦中…… |