流程图方式建模,运行时出现错误。
2 p/ n2 S3 v9 n* L- j- r0 P表现为:小人儿和僵尸的icon都不动。9 E0 B2 A [; u2 X9 D
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()+ J0 @9 l' L7 C9 I# w
* |2 L) F; O5 u# j. v" p
java.lang.reflect.InvocationTargetException: M4 t: |5 w& }, S9 S
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)' ?5 m8 S& t8 V a
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
) Q5 f6 p4 ~7 z4 F* U& |7 D% o6 ` at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)2 y/ d* s( `2 C3 j5 F' D$ f
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
& b2 G, X& R5 @ P: V5 g. i4 k+ }8 z& W; U at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)+ O( v, x: }1 L% E1 ~/ V! O& D
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
/ k( \5 m& _4 r at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
" R1 }; V6 w" |- j1 M) h! u1 @ at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)* I3 B6 H5 s3 A) R
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
8 k5 C) j2 T5 a$ G at java.lang.Thread.run(Unknown Source)* _* [* D) {* ~$ U- h, s
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]9 r! B- r) z' n4 ^) [9 i
Possible solutions: getNeighborhood(boolean); X. N! H4 y8 l9 \, I- g
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
: a- R* N5 Z4 G! s: s, g" u at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
4 g! g3 u; d& F at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)! v+ `5 Y7 [! \$ y$ l
at FlowZombies.Zombie.step(Zombie.groovy:128)) }4 v B" P# E, m+ }: n" T7 F
# h Z0 P2 i2 b: I请高手指点迷津呀!痛苦中…… |