流程图方式建模,运行时出现错误。
# B0 i1 i' m! D0 h4 A; G6 q' A表现为:小人儿和僵尸的icon都不动。1 V. T& ~6 _; T* ?
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()7 |( j ?. l/ n8 B5 r
3 ~; R) l7 ]8 I, ejava.lang.reflect.InvocationTargetException
4 g" B8 N; h: b( x i! A6 P at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
0 l, K! ]6 S! N/ h: n at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)/ ~: D: m; g+ Q& F: u( c) G. s
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
. o1 C) x; o& c" I at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)3 G$ R& h( A: w
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
: K; V3 o5 H2 G+ T at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)5 B9 m8 `- b0 e! Y. x
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)7 o1 R1 g7 t. H( N
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
7 M- W* s# V6 b9 l3 v) |" p$ [ at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)0 b) }$ S0 V2 R7 D, N
at java.lang.Thread.run(Unknown Source)
6 z" V# J3 U2 O- Y0 O. _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]" B( r6 \3 f3 T) o2 O
Possible solutions: getNeighborhood(boolean)* h: ~9 K3 Z" ~0 w; ]) U+ r
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
& n: G4 o Y" e, h0 z at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
" G9 l( a9 f, r/ i8 G at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)! N. ]4 ~% L$ c6 @9 {; l
at FlowZombies.Zombie.step(Zombie.groovy:128)
9 F! q# {- Q, x3 ^. \
; ]- P) x, o1 W7 k4 y, h请高手指点迷津呀!痛苦中…… |