|
本帖最后由 panllrose 于 2012-6-13 10:06 编辑
* a- f2 `. t" d3 t, u' i, s$ e& c4 d: O* {% h+ }
运行程序时,repast给出的错误信息看不明白,怎么查找问题所在呢?我的版本是RS1.2.0,参考predator prey示例写的,context只有一个continuous space,上面分布pedestrian.agent。错误信息如下:! b o: \ ~+ x! {' r, V
) Y. j. y) U9 Q3 v3 a2012/06/13 09:59:23,312: Error while creating displays
# V" S! F2 ^5 l. X3 U8 ^1 x9 X* Qjava.lang.RuntimeException: Projection 'ContinuousSpace' not found." U* ~1 n% X9 n* k9 S+ z
at repast.simphony.visualization.engine.DisplayProducer.createLayout(DisplayProducer.java:540)
# K. W7 P# p1 K7 X4 o [ at repast.simphony.visualization.engine.DisplayProducer.createDisplay2D(DisplayProducer.java:187)
& s- B( }1 V5 ~9 k* Y at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:88)
% B+ A' ?; w" a/ R/ f at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)$ E: D0 X* K G; i: Y1 [
at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:171)
$ o! ?/ d" `5 U/ w& S at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
R: Y8 O6 |8 W2 M6 k at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)
* u0 w2 f3 W& D& I a b& l" ` at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
' T% Q& Q# q _( Z1 R at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)+ K2 x0 g2 |3 ~! @ D' @
at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283). O0 @- a. }- ^/ ]
at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:169)
0 g* h5 |" A9 ?9 V, H- u at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:324): ]8 N$ g+ o( Z6 ~
at repast.simphony.ui.RSApplication.initSim(RSApplication.java:134) [ e g/ f' j2 ?1 B8 H
at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)
, d+ L3 h2 }, X5 J1 p1 b at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
' w, L: A. [4 U5 t8 V at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
7 p% A( [" y0 k. N I8 s* I at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)6 D. I, h! D4 M7 i0 D, f- o
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
* f$ A- t1 @( d0 G- \& m at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)1 e/ `, @; F( M+ w, @/ a
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
9 h& @. }4 n6 L: r3 ^0 _; R at java.awt.Component.processMouseEvent(Unknown Source)
n% I9 E" i0 w( [% b( ~ at javax.swing.JComponent.processMouseEvent(Unknown Source)4 v( o0 u$ G: C# P0 P8 F
at java.awt.Component.processEvent(Unknown Source)
' A* p! w. w! q' Q) {0 j* W at java.awt.Container.processEvent(Unknown Source)
7 Y) P f- U) ]) A( j d1 Q at java.awt.Component.dispatchEventImpl(Unknown Source)' e$ }5 B, |& N4 J
at java.awt.Container.dispatchEventImpl(Unknown Source)* b5 r3 Q4 m3 I5 k* V, T3 s
at java.awt.Component.dispatchEvent(Unknown Source)
+ G+ h! K M3 g! m' b2 r at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
# l. q5 u6 P9 S5 x* [# V at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)6 i1 g# h; f& j: c* v
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)' h( }* s$ M. B8 `% y9 K
at java.awt.Container.dispatchEventImpl(Unknown Source)2 d& i' q' q* ]& |9 I: u* o
at java.awt.Window.dispatchEventImpl(Unknown Source)# X1 }' x" I5 U' J4 o0 _. F: w6 D
at java.awt.Component.dispatchEvent(Unknown Source)
! _, @! z8 k6 e% @- D; h) h at java.awt.EventQueue.dispatchEvent(Unknown Source)- N! \/ K, U; y$ Q
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
4 V; u/ i+ r X3 x at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)6 }) t2 a- j( [2 ?4 @# {
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)1 L4 j5 W3 H) A7 f
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)2 W2 M& _) N+ H e" K
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)( X& Q: `2 o+ p$ k
at java.awt.EventDispatchThread.run(Unknown Source)
$ T+ Q2 \% M, h7 e9 `! X. A9 p |
|