流程图方式建模,运行时出现错误。4 P3 {5 T, `( O c) Z' ~
表现为:小人儿和僵尸的icon都不动。% h9 W) n/ |7 H' c2 B
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()" T6 |, W- [+ M* r8 o# h# ^! l
3 q* G7 s0 q6 k0 t/ s, X, W
java.lang.reflect.InvocationTargetException
. m1 p$ O. ]( g E! m6 w1 ?* A5 r3 _; p at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>) c2 E# Q3 f6 s- z: b
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53): w0 q9 J# T& j4 w
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
- W7 g9 Y' W. G( i2 |$ E1 u! v at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
) K* |/ W9 }+ b& R at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
. b! q8 x5 D T# V& |2 O! @ at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
9 {4 |: F8 e# i+ F2 c9 Z& P at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)3 Z; _% e2 J, @
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
7 F; V% b9 t& E# E at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
6 ~" C/ E3 r9 p i! E r9 f, \8 v- \- T' [ at java.lang.Thread.run(Unknown Source)
/ E. q. }9 T L& i: _9 HCaused 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 X; w$ V3 k2 y
Possible solutions: getNeighborhood(boolean)$ y3 X+ n4 D6 k9 y( r/ a0 W
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54), E U, o' W" w+ {! C
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
0 x( h' Z" W" a% w at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
# U, k# E- O* c$ ~- j% a9 f+ s at FlowZombies.Zombie.step(Zombie.groovy:128)
( ]8 d6 e0 r" [, B - L( s- J# L- V! \
请高手指点迷津呀!痛苦中…… |