流程图方式建模,运行时出现错误。
0 i! L1 ~4 z7 w7 _6 O表现为:小人儿和僵尸的icon都不动。
/ M$ ]6 K6 X3 L8 e9 D/ N$ e. nerror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
" W$ x! l( U, k4 i( x; V; E0 N- y% O2 S" q8 M" w" L
java.lang.reflect.InvocationTargetException
$ w2 h) b5 K8 S* ^9 \* _# N at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)" | [: p, g. b0 C$ ?
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)6 g3 D" W j! @& h
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69) G% H+ B5 j f& I5 q
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
7 g, l* X. X" G* d! q/ m at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)1 K9 @- p% p0 [9 H4 i0 \
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184), w V U1 v2 H: Q$ \
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)* v# Q% ^' V+ O2 X; b
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352). | x* h/ \3 u1 ? ]& l
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
! U8 ^/ ?) m3 q' {4 Z6 D at java.lang.Thread.run(Unknown Source)7 M6 {7 ]- V: C$ t# }6 P
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]0 E' I2 j0 a: ]5 C) t2 {
Possible solutions: getNeighborhood(boolean)
! I( F Q( f/ K$ F at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
' Y& P, [4 l; j5 I' D# }% \9 p. A at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
4 Y3 f& e+ ]8 g3 K4 M' F at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)7 y0 ^) j! L3 _ c
at FlowZombies.Zombie.step(Zombie.groovy:128)
6 l2 n( Z- ]8 x/ j! ?$ V c * I6 X* M: w+ M. T8 R' u
请高手指点迷津呀!痛苦中…… |