流程图方式建模,运行时出现错误。
, u$ w6 q+ Z% J1 T/ v+ K4 R3 s表现为:小人儿和僵尸的icon都不动。% b7 }. L% g' h A) ~, P' {1 G, h
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step(); D6 t0 r: t5 T/ l+ r. H! g/ K5 N& s9 h
- n" L- F; _1 @" ijava.lang.reflect.InvocationTargetException% B3 { i7 O$ V
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>); h% v" |+ v f2 B( O$ D7 \9 |
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
- ^$ t" Z2 v* v6 @3 U3 D at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
0 R1 F. S6 Y q0 C0 r3 Q8 a# h8 e at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)3 c8 a- v$ Z4 V; ^' j# J& l
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)" J6 k6 a) J x. i
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)$ r7 e/ v9 o7 c- n
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)2 z9 F% p6 \; c- e' i6 A4 J3 R
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)6 v" _& i6 L4 h" Z
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)5 L5 L9 m3 _0 w
at java.lang.Thread.run(Unknown Source)
2 i# S, _7 N; B( J: y- w1 ~1 eCaused 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]! I. M/ C* s' G, e. W
Possible solutions: getNeighborhood(boolean)0 M! M6 y3 L: ?! {% y7 X( g
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
( D; }% @" p/ D2 S5 H) P! Q at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
. m" r* c! L6 H at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
3 G" I+ z6 O; s- G: ?9 | at FlowZombies.Zombie.step(Zombie.groovy:128)
! k6 [; B4 T. m: ^ 8 b" {( A8 p$ b# c5 w/ T
请高手指点迷津呀!痛苦中…… |