|
本帖最后由 panllrose 于 2012-6-13 10:06 编辑 * s0 H e* T- U2 d) {, J, u3 T+ W
& P+ A" M8 `. [/ f/ t0 F8 Q运行程序时,repast给出的错误信息看不明白,怎么查找问题所在呢?我的版本是RS1.2.0,参考predator prey示例写的,context只有一个continuous space,上面分布pedestrian.agent。错误信息如下:: D0 [; ~" B1 W _, n
& q u4 R3 N8 K! ^( k s2012/06/13 09:59:23,312: Error while creating displays0 ^/ G; t$ C8 j0 w6 {2 }
java.lang.RuntimeException: Projection 'ContinuousSpace' not found.
: r; z) L+ |5 h6 x at repast.simphony.visualization.engine.DisplayProducer.createLayout(DisplayProducer.java:540)
5 q% L; Y) N) m- U: ] at repast.simphony.visualization.engine.DisplayProducer.createDisplay2D(DisplayProducer.java:187)
8 S) y* _( `& m; ~6 c1 U4 u3 M: ~ at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:88)
/ v O" P! u6 c; Z/ @5 c at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)$ I& l1 `# [. P) G3 p! C
at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:171)
9 V4 X2 Z# ?, q) M at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
6 g7 `8 E+ @* l) F at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)
% u( b$ I& a, j6 ]- W at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
; E" V0 v3 R! H& Y at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)$ c' P/ v" j8 Q- A' _- c. ?
at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283): ?% z4 e9 j2 c3 `, z% k: U
at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:169)
/ F8 N0 u3 l) Z at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:324)7 |$ R1 ?7 Q" _ K. G% r) U
at repast.simphony.ui.RSApplication.initSim(RSApplication.java:134)
/ S1 B6 `5 X! |( ?0 |- W$ v at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)- j# _3 @. v" U7 b& ^
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
3 }2 L9 d, K- l2 T6 m; u at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)! S/ V6 R' V2 C" H/ E; x
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)2 i' H# \$ i) r4 ~
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
( B4 s. b/ A/ X* {" p! O at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)" `9 Y8 |$ _: H4 }/ o
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source), p. `# o4 P& o
at java.awt.Component.processMouseEvent(Unknown Source)
! A) w2 \3 I0 ~7 i9 |* n- \- @: t at javax.swing.JComponent.processMouseEvent(Unknown Source)
; L! } n. M6 S+ f at java.awt.Component.processEvent(Unknown Source)
& R. [' L0 m% I& \/ O( X6 F at java.awt.Container.processEvent(Unknown Source)
$ }! r5 m+ H' w% A at java.awt.Component.dispatchEventImpl(Unknown Source)6 z9 {9 L; ]* O( u' w( I
at java.awt.Container.dispatchEventImpl(Unknown Source); w6 r7 l, K0 k1 h" U
at java.awt.Component.dispatchEvent(Unknown Source)' m& c7 L n9 g3 J& b0 V
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)( M5 ~+ Y& e0 h0 h* V
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source), U8 \" }, m3 @+ R# E) M7 y4 p/ b4 B
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)3 n, Z9 p/ U% J- W* z' N
at java.awt.Container.dispatchEventImpl(Unknown Source)$ w$ i; u8 ~( @
at java.awt.Window.dispatchEventImpl(Unknown Source)* u s" F. Y$ U9 o* B
at java.awt.Component.dispatchEvent(Unknown Source)7 `+ j3 d5 b) k3 o" J
at java.awt.EventQueue.dispatchEvent(Unknown Source)8 _. M% F8 c1 R6 ]/ x% ?. O0 V
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
9 m' Y1 j* L9 t# N! ` at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
4 d3 u( J0 ~5 H# l9 X0 ^( d6 P+ l at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)) [. N @6 A+ Y
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)# H8 c# p4 P2 S6 _9 N
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)" G8 [5 O0 w2 g z) `
at java.awt.EventDispatchThread.run(Unknown Source)
5 M; a. t+ B0 @ |
|