|
|
本帖最后由 panllrose 于 2012-6-13 10:06 编辑
( w$ s7 s% m) E- }3 `' @" v2 s( [8 O$ u5 H: ^
运行程序时,repast给出的错误信息看不明白,怎么查找问题所在呢?我的版本是RS1.2.0,参考predator prey示例写的,context只有一个continuous space,上面分布pedestrian.agent。错误信息如下:
j5 A' X& A D2 s! B7 Y2 `1 P3 J! b3 w! X' U
2012/06/13 09:59:23,312: Error while creating displays
- q3 ?$ }& f% L% ?java.lang.RuntimeException: Projection 'ContinuousSpace' not found.
! F) S: I* W: x$ s& p8 W, P9 C% s" H9 o0 R+ M at repast.simphony.visualization.engine.DisplayProducer.createLayout(DisplayProducer.java:540)
9 P/ ~% a# T6 V# U2 W at repast.simphony.visualization.engine.DisplayProducer.createDisplay2D(DisplayProducer.java:187)1 _# k% I( l2 {0 N% T/ j8 U8 D
at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:88)
/ p$ J3 w. d# g, K) E at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)
l" x3 v$ `" d2 c! g8 I" o at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:171)6 K# |1 a6 u/ Q* P" p
at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
$ h6 N; u5 ~1 X at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)( s' f! R: N: F2 X+ G7 T
at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)% F) b a- N$ {/ I, t7 W* O- E: F
at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
) Y" j7 U5 r% j1 D, J at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)
6 M1 P" \; J x2 {6 c! @ at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:169)
; m G: ]# t% G" m at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:324)
/ G! z. [8 j+ ^/ X ^6 @ at repast.simphony.ui.RSApplication.initSim(RSApplication.java:134)
! Y" _8 |& u& F; N8 H: t" j at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)
! {+ q+ U, x5 i. ` at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)+ f5 K. B$ L/ w7 _: f
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
( }% `8 `) ^0 Q0 R& ?. u at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)& z+ n3 o; w0 `
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)5 R3 q' {- R2 }: P" R( m8 T
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
. n4 \# j! ~3 U7 R8 v" Z at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
% {: i* s& T0 j7 l3 M6 N) N( ]6 c at java.awt.Component.processMouseEvent(Unknown Source)7 v+ N1 I3 L& w2 L% M
at javax.swing.JComponent.processMouseEvent(Unknown Source)
: b( f# j; y% e2 J: y5 G at java.awt.Component.processEvent(Unknown Source)
/ r* H9 p% S, T' b" ?! P at java.awt.Container.processEvent(Unknown Source)
" ^6 `7 d# k. K" c! |9 Y( j( ~: A at java.awt.Component.dispatchEventImpl(Unknown Source)% @# G& d6 Z/ g9 B3 l" b% k9 l
at java.awt.Container.dispatchEventImpl(Unknown Source)
/ f' h5 a: z8 Q0 [& v9 _ at java.awt.Component.dispatchEvent(Unknown Source)- {, q5 d+ }- K9 J5 R3 V
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
9 W* e" h; o/ o; I, q' W at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
4 Y- ^( h# R* \# N/ X, r at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)" @6 E7 T" o) z6 O) C
at java.awt.Container.dispatchEventImpl(Unknown Source)2 F9 Q) g$ ~3 d+ ^7 D" }) d
at java.awt.Window.dispatchEventImpl(Unknown Source)
& B3 X0 P! t, k5 v8 Y at java.awt.Component.dispatchEvent(Unknown Source)
; G2 S; Z( _. Y at java.awt.EventQueue.dispatchEvent(Unknown Source)6 T6 W1 g4 t. q0 u
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)) V! \( }1 ~; [( l5 x
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)" m9 K. o% e9 A4 L, n1 b+ K# t) p
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
! Z0 D- T' g, M7 r at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
8 O- z4 g3 R8 |2 V* ]6 G at java.awt.EventDispatchThread.pumpEvents(Unknown Source)3 S! x+ ~ a: R
at java.awt.EventDispatchThread.run(Unknown Source)2 h) j1 f' X- j5 y$ \
|
|