流程图方式建模,运行时出现错误。. _8 @3 e* g! x% {# |% P% b
表现为:小人儿和僵尸的icon都不动。0 N, d- Z e- W6 k. |# F* x* A. A
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()& q# u+ ]4 M9 w) ]( T* ^. U$ I
1 R; n8 Z" J0 i: q- b+ J8 @java.lang.reflect.InvocationTargetException
) P# a- i, K! A& g' ]: Z at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)& z5 H* Z# G( ~; d) v* x; {
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)" y0 {8 [( Z+ E% T' r( c3 f
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)! L7 m, e; |* m) Q; P4 ]
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
; }; m* U% y! A: S0 t8 w6 ] at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)* o- K) y! O% L0 |3 \9 Q) \' T5 d% U
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
9 R8 q8 Y5 j# }/ T# r" d at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201) t( p8 m$ I" `3 j# g/ L* B& X
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)9 s; x" w$ [, d' J# _9 J
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)3 N; J1 t% ?9 w. r7 w. R! R
at java.lang.Thread.run(Unknown Source)
6 ~) |- u2 \2 ~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]
3 f4 u3 h& W2 i% Q% Z, G/ f3 Z2 \Possible solutions: getNeighborhood(boolean)' d* ~0 Z% P$ n! T; J% E! L+ P
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
, f* t6 O) D! m+ S Q- l at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)( y4 o2 l( b" c* ]; ^, h
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)6 K7 w9 h0 y7 r' S& B
at FlowZombies.Zombie.step(Zombie.groovy:128). Y; T$ t; i9 G0 F
) R6 S7 Y% [1 o4 [/ E请高手指点迷津呀!痛苦中…… |