流程图方式建模,运行时出现错误。, U$ h5 s- i, I
表现为:小人儿和僵尸的icon都不动。: V* l# \) y+ Q) P: Y' B
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
( s) k$ F0 U+ a& h1 k/ ?$ i2 w( X( [' a8 O& _
java.lang.reflect.InvocationTargetException
2 m0 |; E; g& I& |# s) ? at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)0 K# x& e, Q# ?& }
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)7 h5 m" Z- o3 S: f2 E' s
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
. @% d3 W1 L; q0 }5 X at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)7 N7 V3 x* s9 f( O* C
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
3 ^% {% h( |3 l- q( u1 s at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
. d8 ]; w9 o& c& Y: ~2 t$ E at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
' M! y* E3 r& e0 K7 h at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
0 x' D* w9 U- O/ d; a, _0 ^$ x at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)4 a1 F( K& Y) c0 A
at java.lang.Thread.run(Unknown Source)
# h4 X7 Q0 E! z; I- kCaused 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]3 s3 `/ U2 M$ h3 |; a1 i' l# @/ h
Possible solutions: getNeighborhood(boolean)
0 p$ d. k9 G4 \; }/ m" X at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)% y5 U+ w$ x9 Q" M2 e/ a4 ?
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)4 i3 }5 C x% |+ V; p( a$ {
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
! B+ k7 E" |7 }, [ u1 m9 D at FlowZombies.Zombie.step(Zombie.groovy:128). d% J6 b9 A: [) Z0 T; f, {. S% ~
2 t$ I, B8 k9 E- E# o- M7 Q
请高手指点迷津呀!痛苦中…… |