流程图方式建模,运行时出现错误。8 j# Y( ^* T/ y; P* g" ~
表现为:小人儿和僵尸的icon都不动。
# A) n/ u( n# X$ m% B3 yerror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()7 N2 K- Y5 l- {! L( Y) r
+ H/ E9 [ u' g$ x+ H/ h4 g
java.lang.reflect.InvocationTargetException T0 @, n; ]7 t
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)+ c' Q' W9 E) Y$ o2 ?
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)# [, D) U8 v- Y9 d
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
2 B4 i3 r4 M. G/ T) I. N4 W at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
+ r/ y$ h0 j7 K' j! F& `2 \ at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)0 T, l: Z) w/ s+ b7 \
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)7 p! B" |# ~( a S4 s
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201); F2 g& v* M8 A# v, p
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
: C5 g7 S3 Q+ F7 G; S at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)# N: y& n, a: R2 ]0 [
at java.lang.Thread.run(Unknown Source)
: W9 ?* ?3 a; u6 Q$ y: V7 `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]
& \4 T% u. T& ?& BPossible solutions: getNeighborhood(boolean)
$ A L# Z: a/ V1 ?9 Q at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
! q& J/ l6 x# l. n' ?: U! w) B$ ? at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)0 I3 i- {+ s7 I- @) F5 ?7 W# c- }
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)3 T0 W0 w4 p, |& b) {! L
at FlowZombies.Zombie.step(Zombie.groovy:128)
3 e) P' O! B& S/ [ * v$ P: A2 J7 _/ k9 N
请高手指点迷津呀!痛苦中…… |