流程图方式建模,运行时出现错误。8 E2 T! s& X5 _- s, O1 S8 B
表现为:小人儿和僵尸的icon都不动。
! e; Z! h8 X3 o4 B: m' Z0 Verror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
4 U i. p3 m' d" |: b
0 I \6 v; Y& @- E/ z) Ojava.lang.reflect.InvocationTargetException
5 Y+ Q' x; l# {8 G4 U$ P0 E at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)6 U4 |! K$ W( B/ [) m# V
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)0 ]5 o$ U. j( `0 I
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)+ T1 w; m" r0 ]4 u6 b8 R, x
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)2 M6 y+ J8 d3 A/ d+ F1 Y/ K
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)- d9 A# Y' P/ r
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)' _$ y+ K1 w6 x6 r& i8 r5 X
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)) r8 H p& E# y# k) {. N
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)! |5 k9 P' c$ d3 T1 G8 O
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53) @$ S& V/ w/ g( e& c3 }' D& Q
at java.lang.Thread.run(Unknown Source)
& A8 `. v, i( q& d/ yCaused 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]* f, Z4 K3 W# z( e
Possible solutions: getNeighborhood(boolean), P( M' p9 S; K1 t. ?
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
9 k4 R4 t. k/ i4 ^ at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
4 }) g/ O' M& Z, z1 z5 s at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)( X. Q, S3 R1 w* u" U/ V
at FlowZombies.Zombie.step(Zombie.groovy:128)9 [* n, t" y% l
7 w9 P5 s0 i" \8 s0 v& C请高手指点迷津呀!痛苦中……![](static/image/smiley/default/mad.gif) |