流程图方式建模,运行时出现错误。" {7 l/ S2 _( l% C
表现为:小人儿和僵尸的icon都不动。" A1 r- u% d3 D F- X) `
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()8 Y2 g% z. V9 u% f5 h) u
9 L+ K. L) B$ N g, }+ P+ R5 Jjava.lang.reflect.InvocationTargetException5 Y- P9 h# G I+ _
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
u& a3 `3 b$ E4 l+ d at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53). G' g1 H' o$ f7 D
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)7 e- _' \. d0 q
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253): b7 n+ M9 r+ G) r
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
8 f3 ?, ?2 {- Z, k' `' h! s4 _- G at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184). Q* P% W( Y# A$ q3 L( n* k
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
; S) W4 ~ K: K, v7 h8 O5 O6 A3 r at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
5 A' F- q; |# b- \7 V at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)) M/ K9 m/ T F, B* z' H0 ~
at java.lang.Thread.run(Unknown Source)
4 p2 y" t- F! QCaused 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]3 v9 v( J7 t6 P1 V- w) Y
Possible solutions: getNeighborhood(boolean)4 l ^. c: J+ Z* ^
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
( @9 H& E2 @9 v( h at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46) `/ m9 x; h5 `3 @) i4 \9 w
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)1 m2 I" @( U/ u3 R
at FlowZombies.Zombie.step(Zombie.groovy:128)
% b# { w8 e. g, S1 k
0 Q+ Q- W% y8 z8 U; h请高手指点迷津呀!痛苦中…… |