|
本帖最后由 panllrose 于 2012-6-13 10:06 编辑
) _* y( M) W) x2 H7 U% b: U( [
: ^. x; X! p0 h运行程序时,repast给出的错误信息看不明白,怎么查找问题所在呢?我的版本是RS1.2.0,参考predator prey示例写的,context只有一个continuous space,上面分布pedestrian.agent。错误信息如下:
# e1 o5 r6 X1 H e t+ w) \" [, k
7 I: V% [% Z4 {$ b3 ]3 K) Z2012/06/13 09:59:23,312: Error while creating displays
+ C7 F, S" Z0 U4 F0 N4 m% O O) ^java.lang.RuntimeException: Projection 'ContinuousSpace' not found.6 D$ N' [2 S/ C3 Y
at repast.simphony.visualization.engine.DisplayProducer.createLayout(DisplayProducer.java:540)
0 N* P. i! `- Y6 q at repast.simphony.visualization.engine.DisplayProducer.createDisplay2D(DisplayProducer.java:187)
- s& u V! @' Q5 n6 b, i6 O at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:88)
1 |/ ?8 _) ]! o at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)+ |" U, Q* a6 }7 Q
at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:171)
3 u2 W! O% k' `3 f4 D! }) R at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
- M' l3 |4 F- Q' ]+ x at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)
+ ^% g7 h) Z# E. I1 d$ Z at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290): g! H( c) e1 d+ q
at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)5 }2 j9 ]. V1 l1 {, t! C5 O4 l v
at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283); W3 Z) S6 p5 }( P H' b8 f2 n
at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:169)# J4 X- Q: _$ N/ G
at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:324)1 M& V& m& l: n4 m: m, H
at repast.simphony.ui.RSApplication.initSim(RSApplication.java:134), @( L! k& t) X* }6 O
at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)
5 u6 ]9 ^ C: o# A) ` at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
+ R9 f/ E% ? `. u& Y+ G2 m at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
9 t: _! v. L9 R# _ at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
3 O3 H! e( x7 F3 c% h at javax.swing.DefaultButtonModel.setPressed(Unknown Source). u- O1 F/ [$ x m( ?
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)3 T o) L* k% U1 u' @, n7 w' R
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)2 r) U/ _. h. `, i8 P7 u* d
at java.awt.Component.processMouseEvent(Unknown Source)
O/ O% I, n* ?6 J$ k- P' w5 Y at javax.swing.JComponent.processMouseEvent(Unknown Source)0 N: k9 a a: m: M2 [; X- x# [% u
at java.awt.Component.processEvent(Unknown Source)
* t6 W1 J/ [: r' O/ E at java.awt.Container.processEvent(Unknown Source)3 F6 U: k% l8 _ U/ ^5 s3 Q
at java.awt.Component.dispatchEventImpl(Unknown Source)- }4 s( x% N X; M/ x
at java.awt.Container.dispatchEventImpl(Unknown Source)- I! u- r( w/ q
at java.awt.Component.dispatchEvent(Unknown Source)8 }/ e- A/ ~6 _1 h1 e; A2 F; X
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)$ U3 d. _% b% b! |. F" @
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)7 g5 X- v9 f# r/ f5 B/ q: a9 N
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)+ J+ Q) H/ t) G* h3 |; D
at java.awt.Container.dispatchEventImpl(Unknown Source)5 u8 z& v9 C$ m8 \9 b: c3 y9 m
at java.awt.Window.dispatchEventImpl(Unknown Source)
$ Y g4 ^3 V+ b4 { at java.awt.Component.dispatchEvent(Unknown Source)
. T( _/ v# j# w+ ? at java.awt.EventQueue.dispatchEvent(Unknown Source)
. n) M5 L% `8 [0 s, p& V' g6 [( } at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
7 z g2 @9 H- q5 R# i* R at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)- J; J. D; D# s) Y
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)& U' a' a2 ^2 _+ A P
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)& P' F2 X# f+ K8 n2 W6 Z
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)5 C! w0 c- J, r+ F4 h
at java.awt.EventDispatchThread.run(Unknown Source)2 a8 B+ o3 L; t: y- i7 Y, x
|
|