流程图方式建模,运行时出现错误。
1 }+ R/ M# {* x0 M6 `; f) d+ Q1 G表现为:小人儿和僵尸的icon都不动。! ^3 e; X, T; p
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()/ U& q6 O1 r% ^+ Z& J, N
# j: {5 q) ` L" Y
java.lang.reflect.InvocationTargetException; c; O0 m7 W" q
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)( S1 K$ C3 J) v5 ~6 G( U
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
- ~ q5 N+ ~$ c$ e at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
+ K) y' H, ?# q4 r5 z& L! l at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)* U6 t$ [. u. v0 G3 O9 g
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)- \, Y5 T$ p' x1 k: @
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
2 g( ]' q) l4 ]7 ?. A: y at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)0 Z1 c6 }; _* g# |% K
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
- t5 c$ G B6 p: r2 W; q- o) k at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
/ S4 s9 @( ~3 r! [ L% ] at java.lang.Thread.run(Unknown Source)
! G3 n( J0 M6 g& K* \5 T: r3 T X$ nCaused 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]* q/ O+ B% P# Z# R {" d
Possible solutions: getNeighborhood(boolean)# V5 ?! F( Z, U
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
7 u" J' `# `. `; `% ~& I at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)$ {( D% K* y e
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124). B5 l6 q6 p$ E) {1 z7 G
at FlowZombies.Zombie.step(Zombie.groovy:128)
: F# {2 n) U/ j5 M
2 t. ~) ~) o: V请高手指点迷津呀!痛苦中…… |