|
|
本帖最后由 panllrose 于 2012-6-13 10:06 编辑
% e l8 l. E8 d: t; v: |# L. S; L5 Z# c, q% G( e: w
运行程序时,repast给出的错误信息看不明白,怎么查找问题所在呢?我的版本是RS1.2.0,参考predator prey示例写的,context只有一个continuous space,上面分布pedestrian.agent。错误信息如下:
; f/ z" z% }4 q s$ y- i8 L) J) p1 n: Z* L( c( m" W, B
2012/06/13 09:59:23,312: Error while creating displays4 e. D- b6 c6 I
java.lang.RuntimeException: Projection 'ContinuousSpace' not found.
% D/ s( f: z6 r, ~3 ` ] at repast.simphony.visualization.engine.DisplayProducer.createLayout(DisplayProducer.java:540)
) ~. ^' \; U0 R9 c" x at repast.simphony.visualization.engine.DisplayProducer.createDisplay2D(DisplayProducer.java:187)
! W' {+ r2 [7 }+ v8 W' b4 S at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:88)
* F4 g. t: A6 ]! u, ~' ` at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)
9 m- u7 ]7 M" S. @4 n6 p at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:171)
1 O& `+ W) f% `! ? at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
% ~/ s2 f# { W; a; a6 y2 z at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)
8 d4 @( D2 l/ _ d# F. t) t at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)( o& `5 r# u" ^5 g2 b6 Q
at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)! R2 I& P2 z+ Y" i
at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)7 Q X: g) u* G. s Q0 ]
at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:169)( d9 R+ P& z- B- Z: N8 e' o. L9 b
at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:324)4 _4 v, l+ L) m* N
at repast.simphony.ui.RSApplication.initSim(RSApplication.java:134)
# A1 x; [/ D. |5 X6 J0 h [4 N at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)& @; U' i* D5 _ z, p# E
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
' _: q6 o8 L: o% d! x( ` at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)% m( `$ f1 y1 X
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source), T. L! x- |) R& c1 L" w8 }1 f) |, E
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
2 D) Z- ?2 K; H/ Q/ c' z at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) |8 V7 H' [, p3 \& I! {4 q J3 y6 o
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)# V2 I8 B8 h) x2 M
at java.awt.Component.processMouseEvent(Unknown Source)! }% Z) H( O! D3 ?
at javax.swing.JComponent.processMouseEvent(Unknown Source)
5 j/ y2 `* ?7 b3 y8 ~/ c, G at java.awt.Component.processEvent(Unknown Source)
( ?+ ]& V) l# h; u4 _1 O4 t0 S" L at java.awt.Container.processEvent(Unknown Source)
( Q p) u3 x! `5 { at java.awt.Component.dispatchEventImpl(Unknown Source)% j1 e- D2 @+ h# [9 b1 B1 c( [: K
at java.awt.Container.dispatchEventImpl(Unknown Source); }/ j( t) S3 @8 B. Z+ M
at java.awt.Component.dispatchEvent(Unknown Source)
& t% ]6 w* K z% p+ ~( Y" F5 M+ P3 k at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)" }5 u( g. E; n$ I0 |; d
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source), `0 }' `/ G: m9 e
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)& A. z* \* P5 i' k, P/ o9 {
at java.awt.Container.dispatchEventImpl(Unknown Source)
* {& P5 x1 s" U+ r' V at java.awt.Window.dispatchEventImpl(Unknown Source)
' E2 e, B$ \+ H8 T' _: ? at java.awt.Component.dispatchEvent(Unknown Source)3 a: N$ T3 x- N* x8 W% v4 [
at java.awt.EventQueue.dispatchEvent(Unknown Source)8 Z) p: c) d% P2 `. l( r! T0 @3 S
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
* I( S% a) [- B) \4 s0 `7 ?, d at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
4 d% P& y4 ~6 X% m( H at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)1 O, s4 a+ X4 J' T+ D* H
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
+ b- ^+ s9 F5 L$ e$ O; [3 x at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
2 b# \ s; \& r. j- Z( K8 s5 t( F at java.awt.EventDispatchThread.run(Unknown Source)
9 G9 |* f: `' @8 ~1 T" v" [ |
|