流程图方式建模,运行时出现错误。, b2 l5 s5 ^9 D1 s0 V
表现为:小人儿和僵尸的icon都不动。
1 [0 `% N# T. g+ werror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()* t+ l9 T) W& a
; L- h2 F- R" K& F0 r1 c- d# Vjava.lang.reflect.InvocationTargetException
3 e- h \& {. {0 m0 ~: P# C at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)( b) p$ u% m# f, n
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
* C/ \8 i. Y0 z4 Z8 z ] at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
7 V& y2 R1 Y/ b1 b; M/ o( p+ B at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
e- T* H; h$ Y! k. k1 R at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
9 H: ~% x) D. W0 o6 ]5 U+ p at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
/ P8 W# b# U! w+ I# O5 ?8 C! J. u at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
9 n* G' @" H) p' H) r at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
0 \/ y4 z1 j: x' v4 g* e; o at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53): u& N& e/ h ^
at java.lang.Thread.run(Unknown Source)% |7 ^/ n# N$ E8 q8 j# o' F
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]$ G8 U5 x5 U( \* b
Possible solutions: getNeighborhood(boolean)
0 o& O) X3 e2 M3 _$ M* n at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54); \7 U: l3 r+ V- D0 M3 p
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46), Q3 D" \4 I) z* H9 f1 I( e
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124), Y$ C8 ?! k7 h( g% G, h
at FlowZombies.Zombie.step(Zombie.groovy:128)4 ?4 U7 b3 R' H" T" c5 R
# R/ F" o4 c! M" m! T请高手指点迷津呀!痛苦中…… |