流程图方式建模,运行时出现错误。1 o( d" `# ]) k- F; Q; \- Q
表现为:小人儿和僵尸的icon都不动。" g& h+ U5 h' R5 n- y4 z2 D5 x5 T5 T
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
$ n6 s6 ^9 d; a7 G e- r0 d' b" X7 v* p& n6 k
java.lang.reflect.InvocationTargetException8 r( E+ K, r& ]0 _# n9 l( i
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
0 [$ o+ l% C+ w. H3 E3 O at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)% ]; l) W9 ]& k9 D. w" N$ H
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)6 G7 E; E( O) e! c6 w
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
9 t0 e, U. b+ c# [1 r* [ at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)3 d7 O2 C3 D. Q3 N4 Z! M1 |8 I, r
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)1 z6 g2 \. U9 ~, c
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
6 x' V% s' _: P at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)9 i, |. a; s/ d$ k3 L. s" ~' w+ q
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)+ |% m5 G) R7 h. A
at java.lang.Thread.run(Unknown Source)
$ n; m* F! V, t2 f# m( M5 H$ Q5 z* ICaused 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]. N2 _" h- N! O! w" \& k
Possible solutions: getNeighborhood(boolean), r4 a3 q6 E9 K' n7 c) H
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
B: e( z* D: f: X+ _2 H8 | at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
/ Y0 V3 }3 r) S) a( u4 h( L at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)% k* G/ _' \2 X) H4 L
at FlowZombies.Zombie.step(Zombie.groovy:128)2 Y4 d' Q( e1 W# [8 L# T; B
8 `2 H$ X5 a6 ^5 s( B' e: r( D0 K请高手指点迷津呀!痛苦中…… |