流程图方式建模,运行时出现错误。
0 L! C% Q, N% j: `2 b表现为:小人儿和僵尸的icon都不动。. F5 f4 C2 [5 U
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
. F$ i; V c* n) X
) \7 V# ^/ G( Ljava.lang.reflect.InvocationTargetException
: G: Q2 x% R% N8 p3 E at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>). u7 t- ^, I: s `6 Y" `! V
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)+ b& y/ T) _8 G
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)& o1 L2 x; Y6 O$ |
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
, m& Z7 I" G* x9 f8 C at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
$ U+ `" l- x' C$ U+ \" ~ at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
% D H/ f d' q$ Z' o( U at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)3 x0 L& M1 [( m5 Y, {! P1 e5 D
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)( `% i3 Q( `, {8 h
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
8 W7 D$ ~3 ^& b/ f% f/ ?" ?- ? at java.lang.Thread.run(Unknown Source)
3 a, M8 I+ ~$ @5 T4 kCaused 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]
) p! X4 n( c( d( Q* S( c$ tPossible solutions: getNeighborhood(boolean)/ e4 A- i# D5 w5 o! W* ~8 x
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54); [; M, J6 d/ |8 K ?
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46), I% W4 f- K" b2 g J" W
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)/ Y) D2 x1 x: W6 u
at FlowZombies.Zombie.step(Zombie.groovy:128)
* b1 [$ D# p4 N. q5 }; K
+ W: `- Q1 j& @0 G2 i% x请高手指点迷津呀!痛苦中…… |