流程图方式建模,运行时出现错误。0 m$ Y, i2 ^" x5 V2 d' e; {* W
表现为:小人儿和僵尸的icon都不动。
. \! n- |4 M8 nerror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
" k9 v1 l% C- \3 g* F- g8 u
. n- }) @( f6 ~# x/ |1 Tjava.lang.reflect.InvocationTargetException
7 J, u# E$ D2 ~ h at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
: Q5 K* ^2 B F3 W- c at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)7 E+ D5 O9 g# r( y
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
q Y7 U" h" r, H4 A! ^5 ^. u at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)1 x: a( k2 O& g; O5 B9 t8 n8 ]
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
4 n' p+ p" s$ ~2 c at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)5 W( L( ?: m7 r
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
( A# \* O& u2 S: a" A at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)1 n( E4 k8 X, U3 T
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)) _+ R" Z) ^+ B* h
at java.lang.Thread.run(Unknown Source)( _, n) q1 P4 h( ^" U
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]6 c) b6 M7 u. e3 m; }
Possible solutions: getNeighborhood(boolean)
( J( b5 N8 {9 O/ e4 {& Y3 y. e% t at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)( s9 J' D$ \1 r0 X A$ c+ N5 O
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
, m; M1 `& Z. A1 w& \5 t at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
4 m O$ g: e N, p8 W v& y- N at FlowZombies.Zombie.step(Zombie.groovy:128)
9 |5 J& t8 g9 e2 ~
2 c0 A/ l! B' g* Y9 |* M请高手指点迷津呀!痛苦中…… |