流程图方式建模,运行时出现错误。. \, x" B3 m [5 O' I! _. t* T2 L
表现为:小人儿和僵尸的icon都不动。" x& |$ x1 S. Z$ _, Q; {
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
7 q1 `0 D6 C& t9 {# I
3 j7 E( P6 m: Y* ^7 L" N9 {/ pjava.lang.reflect.InvocationTargetException0 M& N0 C! W" o) @) M' Q
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)0 v% i5 H* x+ {: T) p A/ W
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
% t z$ }: \7 n/ C7 d5 A, u at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)/ F# }9 O# d. y" q- A8 l
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)" H2 N+ z. i# D: V8 C4 ~9 T
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
, ?& d9 P' g o: q/ k+ C at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)# R1 N8 C* k, x& h2 h
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
6 e5 F* q8 h/ l( \4 r at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)8 u% H9 W" W: G, Z2 g
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
* P. H+ C. I7 c2 m+ s at java.lang.Thread.run(Unknown Source)$ J! N8 e' f7 s+ z- j- D
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]; J$ \" v# w H
Possible solutions: getNeighborhood(boolean)
9 t1 s+ D( E! I at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)1 _$ R: p" P, m0 a( E/ c) R
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
% ?+ l- E) ^% u0 C2 h at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124), z+ Q% d+ p3 t) D# i) \
at FlowZombies.Zombie.step(Zombie.groovy:128)
# N6 b# O2 x% `* S; Z& ~8 c4 d& r
, ~4 ^7 J- U# ~+ x6 Z% N0 h3 j请高手指点迷津呀!痛苦中…… |