流程图方式建模,运行时出现错误。* g/ E* Y6 f9 e" S
表现为:小人儿和僵尸的icon都不动。6 z$ Y( ~, y/ R8 \
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
5 K7 q( V1 d3 V; [' z u, ^" S7 ]' k- F
java.lang.reflect.InvocationTargetException
: Y [2 V# G9 z( ^+ J' }/ j3 q at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>); `( Q- [5 j9 V% c+ T: R
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)1 ] c8 J4 d# J, V/ ^! |6 Z
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
( [4 R) L9 E/ B7 H, N at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
- Y) F2 |. V% M at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
; G' P# |3 m: P- p( j) e at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)0 `8 G! F% T1 u3 L, N
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
3 o7 O, U! i8 b5 {; P at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)1 d! |: B/ V' M
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)6 J+ N7 X' |0 V4 x) H8 W0 `
at java.lang.Thread.run(Unknown Source)+ F/ V2 | _: p! ?( [
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 }! w l! T. u: G3 z
Possible solutions: getNeighborhood(boolean)( e! v& g2 `! O! }( ]' ~0 O
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
, r3 e0 b% t! B- W' @) J/ Z- _9 ~ at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
% L$ l2 B7 y* R+ p5 X- P! R at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)8 Z% B# a# @+ B
at FlowZombies.Zombie.step(Zombie.groovy:128)
; ?8 z8 I$ V+ x2 x+ m. H& |5 a 3 P6 X S; G! R& [4 C
请高手指点迷津呀!痛苦中…… |