流程图方式建模,运行时出现错误。6 [8 i4 l- N% G/ K, Y/ f
表现为:小人儿和僵尸的icon都不动。
* H, h7 C1 t* L0 M$ l5 v9 w# Y1 Berror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()- C# b9 {' y; G- U) x
3 |1 a* H% {' V4 [6 W( b/ W
java.lang.reflect.InvocationTargetException
8 R& @8 B5 ^* W- r at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)8 F: H* H; ~: _+ E" q. `) Z# L
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)" ?+ B0 x4 E1 K& V* ?8 k( u# |
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)/ _7 q6 k3 }' F& i J ~5 T" L
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)0 v% {- D; _6 U$ _& M2 I+ B9 g. s
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38), z' s: G; V( B! h
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)* X1 U' |+ L3 h( S. s
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
5 {( `8 d3 \/ O" i% P at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352). r6 e, c A9 C3 {
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
1 Y- w1 e7 F" W2 [! a at java.lang.Thread.run(Unknown Source)
% ^& K. L( n9 T; ?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]) L' @4 w7 p6 m/ L3 {: ]" \
Possible solutions: getNeighborhood(boolean)" q! z0 [) J$ K+ d( x$ U5 ^# d
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)9 I2 p1 O3 M: `, @1 ~9 y
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
% q5 x% l+ z4 _1 z8 d1 [ at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124). `3 r& Y# L$ u0 E
at FlowZombies.Zombie.step(Zombie.groovy:128)
: f K5 I2 O2 c$ S, R
) U& _, {! b- J% y请高手指点迷津呀!痛苦中…… |