流程图方式建模,运行时出现错误。
0 J. h' D: S" c) \: y9 h表现为:小人儿和僵尸的icon都不动。
" E& d. \2 ~4 U, g4 ^/ |error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
0 G- I$ G( b' C" o( _7 @- A& n
! N# X6 ]+ `3 X% k6 D$ }+ W, U/ I- Xjava.lang.reflect.InvocationTargetException
1 }! H; X' \$ A- B6 h) C2 X! H, ` at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
1 i) |! ]: V+ I3 b; j; L7 q at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
. y- I1 X+ n5 H) c at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
' W: T. r4 H3 K' t! D) a/ a at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
+ K9 ]2 f) {$ s* h at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
) q. k0 c3 l7 V+ Y; X at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184); T( ]" Q5 ]/ A
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
- l' n o" r+ V# w0 f& S+ ]+ K- m at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
! d4 q4 U0 ]- _$ t( \' h at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)& K, s8 O% Q' B1 u/ e
at java.lang.Thread.run(Unknown Source)
% ^- g& \0 K0 n5 O- w _2 b2 FCaused 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] e1 J7 l0 Y! M+ @: F$ L% d
Possible solutions: getNeighborhood(boolean)$ S2 S3 w3 j; \- _$ f
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
/ Q# ]4 i) ?1 x3 a! |; x' N at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)( C( y! Y4 `( Z& z; g
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
' B* A& X0 b3 ], X( o% n( l/ A at FlowZombies.Zombie.step(Zombie.groovy:128)' e, h' j; Z9 r
, C0 f# d4 t9 Z- M6 r' h请高手指点迷津呀!痛苦中…… |