流程图方式建模,运行时出现错误。5 N2 W1 p! }5 N" l- M
表现为:小人儿和僵尸的icon都不动。; i& P. W& e3 E
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step(): B$ |/ [% R7 Q6 V; B
$ d' k! Z; o( A* m6 \; `; S
java.lang.reflect.InvocationTargetException/ D. @4 l6 I0 i i/ K
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>). [8 \' {3 H' B$ u
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)8 i9 `$ `, ^& q& q' u6 w
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)4 c4 S% y6 Q8 @9 o
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
- C- r9 ]) [/ E7 h at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)3 \ V2 d4 k2 B" e& K+ Z
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)8 k% B+ K% w- w |, u$ \$ f! D4 v0 N! O
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)! _+ D r" D0 j/ {8 n8 f) v
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)9 t: w0 ?4 D; k+ `; D( ]6 |
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)* |2 ^+ A1 K, O4 i$ w4 [! C
at java.lang.Thread.run(Unknown Source)
& P6 X9 P1 O) z' l: a- u3 M! xCaused 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]& {% H/ V+ M# X5 N% p1 @) r, t
Possible solutions: getNeighborhood(boolean)$ K4 g8 _" n) u* ?, `
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
# s9 I' d* a& P$ N( R2 ?! l at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
* S" ^6 U' t3 L, c- ^4 M. f8 H at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)2 H' X, {/ l/ L- Z
at FlowZombies.Zombie.step(Zombie.groovy:128)
# c q# F% h2 A+ n/ q; T 3 @, a0 W4 V" O* ~. y s8 ?- O) }, Y4 \
请高手指点迷津呀!痛苦中…… |