|
|
本帖最后由 panllrose 于 2012-6-13 10:06 编辑 ! ^, {3 ]9 }, O. f$ u( B
$ Z2 Q0 U* }" y/ ~8 G' k运行程序时,repast给出的错误信息看不明白,怎么查找问题所在呢?我的版本是RS1.2.0,参考predator prey示例写的,context只有一个continuous space,上面分布pedestrian.agent。错误信息如下:
4 e3 ~' W! v' i% Y* N6 K
3 C1 S9 F! w6 V2012/06/13 09:59:23,312: Error while creating displays/ {! w9 t1 L' b! D* k
java.lang.RuntimeException: Projection 'ContinuousSpace' not found.
" V$ q- A1 C* K. T at repast.simphony.visualization.engine.DisplayProducer.createLayout(DisplayProducer.java:540) C" I$ ]" w; @# Y$ ^
at repast.simphony.visualization.engine.DisplayProducer.createDisplay2D(DisplayProducer.java:187)
$ h: A( q7 |1 V! Y' R2 B9 N at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:88)
. k: c* m0 `( z* P- g, Y& K/ l8 S at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)$ s3 j' f; ?& L" K7 m
at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:171)$ J" F8 N% d. Q1 n \# |
at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
, C3 [; y. x$ f G S& f# i! @ at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)+ u- S2 b! ^6 J, _6 q) k" `
at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)$ r% W7 a+ S" k7 d
at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290); O6 w, ~9 p+ F$ \7 t
at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)( ^- l3 Q! F8 S$ D& w- T6 f7 ]
at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:169)
8 g3 K* l0 _8 j% V8 }3 l2 u at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:324)
; u' Z( C) g8 R9 D; _ at repast.simphony.ui.RSApplication.initSim(RSApplication.java:134)/ F& A O3 q( m6 ~ Y( C4 [+ R
at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)
, x: ]$ G* }) ]# S at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
9 i D( g$ P) k# s' G at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)5 [! F, F+ {# h* s+ t! [" M
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)! U7 I, T% j8 J
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)1 V: Z$ U0 w9 H1 X3 U, ], `
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
7 L. H1 a6 Y$ ^7 Z9 f at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
9 \8 Z- R4 U* K) A4 [! o0 R& S at java.awt.Component.processMouseEvent(Unknown Source)6 ^8 l: u! h6 M( N; x
at javax.swing.JComponent.processMouseEvent(Unknown Source). @6 L$ Z, d M" q
at java.awt.Component.processEvent(Unknown Source)
9 ^9 }( i% d( j1 p at java.awt.Container.processEvent(Unknown Source)- t/ V' X7 q9 X2 Y
at java.awt.Component.dispatchEventImpl(Unknown Source)+ T9 q% D* u; Z, i
at java.awt.Container.dispatchEventImpl(Unknown Source)5 @; {' D$ I& C9 O$ z
at java.awt.Component.dispatchEvent(Unknown Source)
" B1 N2 J P+ q$ }, ^, u at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
$ u" S5 z# M1 e' o( F at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
4 B4 ~- _9 j& I4 o- w' S% S/ I at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source), {' h( |5 X- M3 ~/ ] E
at java.awt.Container.dispatchEventImpl(Unknown Source)$ m; C& N: f$ z5 P3 c/ f
at java.awt.Window.dispatchEventImpl(Unknown Source), Y9 Q7 ?4 A8 i4 r, I
at java.awt.Component.dispatchEvent(Unknown Source)
, K, z0 k9 V4 F0 [" g0 A at java.awt.EventQueue.dispatchEvent(Unknown Source)% B) ^/ x$ D6 B' V6 C% \, \, j& X3 x
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
0 b0 c9 D/ O' u) v6 s, ~ ? at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)) r1 M4 K- F0 @6 d- l# Q; X
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
) R( h! q* r0 l0 S5 q, l# K& k at java.awt.EventDispatchThread.pumpEvents(Unknown Source). T, s+ j1 v+ Y0 A9 J5 o
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)( s: V$ z8 [( w
at java.awt.EventDispatchThread.run(Unknown Source)
4 r0 o. I" G+ d7 [8 Y |
|