流程图方式建模,运行时出现错误。
9 J6 E5 T! a2 y4 O- k表现为:小人儿和僵尸的icon都不动。
* u: e- N; [! l, yerror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
" w5 J7 {+ A% _; ^7 P$ I8 W+ T- e3 h: a& U2 p
java.lang.reflect.InvocationTargetException
7 R! X, g( I8 B" p! ?4 ? at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
9 k2 j% ^" j9 k5 Y/ L- Q/ C' G at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53): L) h) V/ I# V$ U4 k
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)0 O/ h5 T4 y; o
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
- g$ F* J; g3 B L, J& s6 K; m& j at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
! A# u. x) U2 j% ?! n6 y0 V" V at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
( h2 Z3 J! h0 e( H* y/ H at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
% ?* O! d; Q, a! k' g at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
$ w' l' M8 u+ f' m2 P at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
4 S1 C+ B; d) f7 q- l) N at java.lang.Thread.run(Unknown Source)3 m- C+ S5 o8 ?. ]
Caused 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 D9 f. q% q3 |8 o! fPossible solutions: getNeighborhood(boolean)# V5 G8 S, N. p0 ~* _! F
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
9 ?0 M+ U9 i' H$ b0 ]. `2 x9 y8 ~ at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
: z2 n* A, ^! z6 d3 j& `4 I at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)8 _+ K5 p6 R' X7 y: O
at FlowZombies.Zombie.step(Zombie.groovy:128)
9 E& Z0 X; H0 F) M
* F6 }" A d5 k. b请高手指点迷津呀!痛苦中…… |