流程图方式建模,运行时出现错误。+ `( h2 A9 G' [) l1 C# t0 B0 F
表现为:小人儿和僵尸的icon都不动。
/ H6 O+ s* g$ R$ C- b, ^' N# Yerror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()4 x5 q) c5 H% x5 ~# ~/ N( H: Z
! q8 g4 a% ~3 s0 f+ V3 \* J: C
java.lang.reflect.InvocationTargetException+ D. e1 l/ O7 w5 G8 {2 X; e( _2 @: N
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
2 y7 `# H0 \* U. f* C at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
/ G$ K) n+ G* b; n! C- y at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69) E% q5 o" H) ?/ b) H$ V$ G# ] S
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
0 A% U% l1 F2 z& v4 m, o at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
* v2 k8 y7 {) s. M$ w at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
9 e7 M; l8 ]% t k# s at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201): `' ?- S( K$ _: n1 l0 J$ L
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
: k! u. i3 w, b; c5 h at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
# f5 H$ ?' G: a9 x& b) |4 w+ K at java.lang.Thread.run(Unknown Source)
* w5 [2 S7 d( ?, s, U1 SCaused 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]
2 `/ F( w y* p8 E6 C5 H4 tPossible solutions: getNeighborhood(boolean)
P! [2 V0 F* s at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
, r5 k3 |- _ C+ d+ Y# w8 a at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
2 t- p5 T- H0 b& X' J at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124), z) q( W0 i) c/ y% d0 P( E
at FlowZombies.Zombie.step(Zombie.groovy:128)
* G* m0 g( c# x
! J( i( q" Q2 V) ~8 F请高手指点迷津呀!痛苦中…… |