|
本帖最后由 panllrose 于 2012-6-13 10:06 编辑
. Y& D, L; x) y# r7 C9 _* [6 _2 j- u+ g6 j
运行程序时,repast给出的错误信息看不明白,怎么查找问题所在呢?我的版本是RS1.2.0,参考predator prey示例写的,context只有一个continuous space,上面分布pedestrian.agent。错误信息如下:% p% ]+ r1 x5 _% C2 k2 k9 D
: U% l7 f5 R3 c5 l" Z
2012/06/13 09:59:23,312: Error while creating displays
" T! ]9 y1 R! Gjava.lang.RuntimeException: Projection 'ContinuousSpace' not found.
5 r' V8 R* L2 [* }8 P4 G/ b+ M at repast.simphony.visualization.engine.DisplayProducer.createLayout(DisplayProducer.java:540)
8 V% y/ {! L/ q at repast.simphony.visualization.engine.DisplayProducer.createDisplay2D(DisplayProducer.java:187)3 u. B; O4 l# T' x
at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:88)
& a+ V# ^# \0 w$ Q* h! S at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)
- ]: j1 B3 F- ]; F/ d+ W% |$ } at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:171)& K2 m0 O+ c0 m6 v& A5 W
at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
: o! w0 ^5 \6 N4 j: [! K2 \. s at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287), ^% O# f, m+ K% n, f
at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)- S( g$ h8 B/ f$ t0 F
at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)! d; ]& i/ C2 u& a' `
at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)
9 g7 C5 B8 P% E: z7 X at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:169)8 F/ o! ]- w, p; s/ }# A5 [
at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:324)7 J- w# o* c" m+ T+ C) o
at repast.simphony.ui.RSApplication.initSim(RSApplication.java:134)2 {5 f: @9 M5 P. k% X
at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)+ z7 _6 k, n# ^2 Q- s# o
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)7 x; j2 |. H' ]+ ^/ ^) z- g
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
& a9 R( B% [" c5 o& T0 e/ G8 P at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source): Q* q7 Q) p9 P
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
& M2 d+ R9 c( ?# p0 \+ F% r at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
3 e+ l+ S1 K y% ?, a7 E9 g) [ R, a/ H at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
0 j' ~# v2 e, v) h6 u at java.awt.Component.processMouseEvent(Unknown Source)
" X8 e0 F2 l. L0 a9 t9 z/ l5 @ at javax.swing.JComponent.processMouseEvent(Unknown Source)
2 q; ?0 ^) A$ B+ a: d1 T at java.awt.Component.processEvent(Unknown Source)4 y8 }& {: D* c8 c
at java.awt.Container.processEvent(Unknown Source)3 p- ?6 n( \2 G
at java.awt.Component.dispatchEventImpl(Unknown Source)
: u' p/ C6 i& q9 m! D) R, K% a at java.awt.Container.dispatchEventImpl(Unknown Source)' } b0 H$ ]2 G
at java.awt.Component.dispatchEvent(Unknown Source)% i4 [' P8 f# A* g
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)1 T& d. s5 F/ U: A
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
0 Z9 r+ q; I9 y/ M4 A at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
1 v% [9 l9 D9 b at java.awt.Container.dispatchEventImpl(Unknown Source)
I ?6 b( ]6 B# m+ ^6 F at java.awt.Window.dispatchEventImpl(Unknown Source)1 J. b+ Z9 K I2 k* b3 B7 E
at java.awt.Component.dispatchEvent(Unknown Source)0 g* E; Y' h0 R6 w
at java.awt.EventQueue.dispatchEvent(Unknown Source)
+ V! d# h! b1 W, M: C) K at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)7 j3 V0 X2 I/ p4 }* d
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
4 m% c! q2 x v at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)2 j7 i! ?! ^ t* r F+ L& c
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)+ V1 s) P: C+ Q; e" L
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
3 T# z, \% Y5 i; S7 K at java.awt.EventDispatchThread.run(Unknown Source)
+ D$ u9 f1 q q) X3 `% ?7 u( j |
|