流程图方式建模,运行时出现错误。
& n2 m |9 v) K' N9 B. I, F5 o表现为:小人儿和僵尸的icon都不动。4 \7 C n1 Q/ J% ]: C; {
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
9 K" M% Q# X# h( _% G% ^6 I4 r6 Y+ N T- F5 Q5 H
java.lang.reflect.InvocationTargetException/ F+ |+ p A1 q
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)/ O- b. Q/ [& K+ J" Q
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)1 }; D' `* `# J' k1 c' V( h
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
+ G, |' D' J3 R6 X- J, s+ P0 S at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
6 z( j; C; _- Y1 s. ` at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)* k4 E4 L* E: |* Z& E$ Q, M
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
* @# E- _# ] A- J- f at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)- o& |. S! y2 B, k m, \+ _! g# L% I( M
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)9 Y8 }2 W6 A' t0 }4 H; t: x
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)8 f, K: l H7 O% c: p
at java.lang.Thread.run(Unknown Source)( y: O& S; A" _6 o8 y9 m
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]$ I) z- M( Q0 s' Y$ a
Possible solutions: getNeighborhood(boolean)+ ~% o& o1 U4 H: T* x5 r
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)% v# N4 A2 f/ v; t1 y3 q/ w* U
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)- M$ _4 B. z7 Q1 j; x
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
$ X# u7 H( C5 i9 Q8 l: G at FlowZombies.Zombie.step(Zombie.groovy:128)
* Y: S- c: y a
. D! C, V" D( M5 R请高手指点迷津呀!痛苦中…… |