流程图方式建模,运行时出现错误。4 e$ p1 ]1 Z" q$ T- _' o' b
表现为:小人儿和僵尸的icon都不动。9 O: s8 }% P6 ?- }
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
5 ?' w4 V- j3 A; J: X( N
* A/ C! J- Z. l. Y) [: qjava.lang.reflect.InvocationTargetException
6 m( _" n4 g3 ]' D* W/ Q- l at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)' q: z m; @& r- g6 w# h5 K
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)- h9 q, v& s4 B- S) u+ M
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
3 e2 t; k" [) E. @$ e at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
( }# n0 W/ I3 q& r! D at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
' k% z% M, o# }9 F at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
: |- l4 } C( W8 l at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201): M3 j7 k$ G% q/ O$ y. @
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
3 K7 {( O; a# c5 g& Y, u at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)2 H& t9 F( L; p2 ~6 u
at java.lang.Thread.run(Unknown Source)
9 t6 O6 h& k# X5 Q& f/ R# jCaused 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]
) g: _$ `! c, _2 [9 E6 `' xPossible solutions: getNeighborhood(boolean)% f: B* V' o' e9 t$ p5 D* \1 O
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
3 \& D* N% x1 `5 t$ d9 r, P at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)1 y$ W1 F# r) Q) t
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)0 B+ `( F4 q) r# w! e4 R# g- k' P
at FlowZombies.Zombie.step(Zombie.groovy:128)
. j, |! r( }- t7 A/ d 4 Y$ ~# A* u) E3 x: B& t
请高手指点迷津呀!痛苦中…… |