流程图方式建模,运行时出现错误。. j6 E0 y' V8 {8 B1 [, P+ ~
表现为:小人儿和僵尸的icon都不动。" h1 e ^7 O5 c; `3 N0 w
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()3 {0 z+ j1 e% ^' `. f- C1 u" @1 a
( M4 @# c; V+ Y: _
java.lang.reflect.InvocationTargetException2 H) r9 n7 m( L4 ]
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>); x$ B) [* `! H
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)3 u8 w+ q G: s( ~
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
# d9 {+ H( j- i2 T, Q at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)& ]1 a7 ?. p- H i0 T6 i: X) w
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)! P+ [0 T Z0 C3 p% g0 Y8 \+ ?
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
$ B1 p! G/ Q. S3 { at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)) m, ?3 L3 J2 ?
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
- }# L ^0 o0 t4 `, E; T. Q at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53): f( R" B+ E/ u: Z+ Q W
at java.lang.Thread.run(Unknown Source) G* T" |1 _+ s; m; r. I$ x
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" R: ~( C8 P- t- _
Possible solutions: getNeighborhood(boolean)
. d# h! b" j) F) z$ _* ?) J9 n/ P at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
* P: N3 _; Z5 W at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
( l5 O5 g% R, ^! r1 Z2 R at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
. c. q5 F4 s8 d0 j1 N4 ^0 V8 i- ~ at FlowZombies.Zombie.step(Zombie.groovy:128)6 V: P$ K8 {) d+ |
0 y$ A3 t. b: I! v& I' @# B6 c6 h
请高手指点迷津呀!痛苦中…… |