流程图方式建模,运行时出现错误。
) M0 E1 `. N, `- P% [1 v# F. x7 Z表现为:小人儿和僵尸的icon都不动。
" J. l# i. ~& r. }, Merror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()0 m1 _1 S, G) M1 L; K, N0 o
2 C$ K0 N2 a- c- Cjava.lang.reflect.InvocationTargetException1 Q2 Z) o6 j7 q: n- F8 }6 ?
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
1 X# Y; ? Y- h% j at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
9 @9 G7 I& Q1 r, c q at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)- E* {' }, v7 p4 {
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
' u, H2 b$ N9 K- a5 R" \ at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38), p0 S. Z9 Y5 c. K/ @
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)& Z( \. o) C# B; [/ Z9 }4 T+ z
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
( a" ~, W3 d7 V1 _; y* e at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
+ C: O$ O5 |/ D: k% I8 j at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)6 i! Z0 h9 T1 D" ~: y' K+ O! A" O
at java.lang.Thread.run(Unknown Source)
% v+ [4 T) A& dCaused 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]
+ C- x4 i8 v+ M7 G; c W/ @2 KPossible solutions: getNeighborhood(boolean)' q6 Z6 ^9 Z3 `% E) v$ @) z
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)% ~$ T: o1 _. g& u7 b( c
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)# e$ f! y5 N% M7 K
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
7 m; l1 L. I5 Y7 P% C- n! m at FlowZombies.Zombie.step(Zombie.groovy:128)
/ l. [, R+ ] g3 I" }
# Q0 K/ o8 O( D3 V+ J' b5 g请高手指点迷津呀!痛苦中…… |