流程图方式建模,运行时出现错误。) n2 B! o2 g, e B, {6 H$ Q- R
表现为:小人儿和僵尸的icon都不动。
. q7 U1 J, M2 v( H) o% Z- X) Y: werror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
. V6 b: q4 }/ _( i) h0 U" h% B }( Q* R6 u, M/ M5 V
java.lang.reflect.InvocationTargetException u) p9 v# A: F, \. Z! R6 D# `0 X
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)+ |0 a' ?3 \4 X- x% i6 R1 L( m
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)! N0 Y' s) B2 k& L7 N
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
; e1 M/ c& U8 d+ {& M at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
& Y5 ^ H. |) h: }1 s at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
3 O* S9 {5 `/ ^5 E8 D at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
4 J& m# r2 c% p+ L at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
5 R/ `; J4 F2 b7 p at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)# ?% z, ?6 H1 G# Y
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)& t* }( ?1 z7 Q+ B* A! _) c4 C
at java.lang.Thread.run(Unknown Source)
' ^* e$ i6 s; E4 oCaused 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]
0 `% t( l. e! `. A; QPossible solutions: getNeighborhood(boolean)
9 [! h! K; o! d- H" B, a/ H! b at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54). l! h+ |/ f, R, O9 ]0 N
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)' {% K1 Z* J$ z
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)- k6 z. x7 X4 u# r7 _7 ?( V9 w
at FlowZombies.Zombie.step(Zombie.groovy:128)+ p1 Z7 H9 O8 o
. z4 X# j) v; p0 Q8 a4 P6 J
请高手指点迷津呀!痛苦中…… |