流程图方式建模,运行时出现错误。
6 v" t) f G1 r* C4 y9 T表现为:小人儿和僵尸的icon都不动。0 S6 ~0 ?5 c! C! { P1 ~) l
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()' f; N/ s! s# J s y
3 H% j0 ]6 E) C3 `/ l6 ?
java.lang.reflect.InvocationTargetException
5 M% }/ _1 h4 ~& g at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
7 T" Z6 x6 D% L" x+ I7 g' r at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
; E$ [9 D0 T! M0 Y' ? at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
: k. S E- L4 c# A% d at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
0 x1 D, I2 R; F6 n4 D% ^2 R U$ C at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38); G8 y2 B( P/ H* v' f, s. e- }
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
P: ]! N o+ E! ]0 { at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
) |" C" G# r/ W" l- d( { at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
7 I& U7 n `/ [% M at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
1 L7 F" F" E. j at java.lang.Thread.run(Unknown Source)
) n( D* X- K r9 i( A# fCaused 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]# I2 B) m) _, `& i3 P. H
Possible solutions: getNeighborhood(boolean)
6 \9 y! R3 u e' a+ o# [) k at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
, q) a, D* y& U& `. h. D at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
2 ?) x- ?' [2 `4 W at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
9 ^$ |' r ^2 |% {# h# j" X at FlowZombies.Zombie.step(Zombie.groovy:128)$ ^: a8 A; v0 m! y2 q
9 T4 Y( f' v, Q! B3 e- w& B0 L4 T
请高手指点迷津呀!痛苦中…… |