|
本帖最后由 panllrose 于 2012-6-13 10:06 编辑 " P; ]3 V% n' ^: v
9 |5 o- l6 v, `
运行程序时,repast给出的错误信息看不明白,怎么查找问题所在呢?我的版本是RS1.2.0,参考predator prey示例写的,context只有一个continuous space,上面分布pedestrian.agent。错误信息如下:
2 R) ]$ Y. Y+ C) n- X: v! V
: G, A1 m3 J6 T9 R, ]/ Y2 f5 s0 B3 }: [2012/06/13 09:59:23,312: Error while creating displays# p5 w6 j# y! ~( v2 i) u
java.lang.RuntimeException: Projection 'ContinuousSpace' not found.1 m7 C( |, P) E7 T# K! a9 ]- i
at repast.simphony.visualization.engine.DisplayProducer.createLayout(DisplayProducer.java:540)
% `9 L7 |; M3 h9 T9 \& L& ]: M5 j' S at repast.simphony.visualization.engine.DisplayProducer.createDisplay2D(DisplayProducer.java:187) U: h6 ]& N8 l5 S. V
at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:88)
5 W8 k1 ]! R5 E/ k! \4 D at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)
) C! X8 {7 f1 F7 a( l1 ]0 ^- r. M at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:171)0 m! Y4 P. S2 H5 s8 \: f
at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
/ `3 _% i- T. i% F7 [ at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)
! a$ z/ U0 {+ `9 u+ x' V at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
$ f% I# N6 m! B+ r5 c( q( O at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
( M/ h3 W0 V7 w. [* p at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)
4 N0 o% ~$ C4 {5 J" a6 y4 V2 c, _4 b at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:169)
( i3 l+ J: w1 ~' T6 S1 ]1 \ at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:324)- Q9 g/ \* k. k1 u+ @4 g
at repast.simphony.ui.RSApplication.initSim(RSApplication.java:134)
' D( Z, C9 D1 n) D7 E at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)5 I8 U8 O1 U, @3 u+ _
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
# m. h" x' w9 t( c at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
9 I/ C; E m: s6 w. n; f at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
2 z U1 \3 r9 o+ x: k at javax.swing.DefaultButtonModel.setPressed(Unknown Source)9 Z6 \6 J' I8 ]
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
0 _% F o2 O% ~3 m$ |0 L at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)7 _3 J- f. d7 |# m- F
at java.awt.Component.processMouseEvent(Unknown Source)6 e( `# m' x: p3 f; V) Q
at javax.swing.JComponent.processMouseEvent(Unknown Source)
; a+ v" ^& X6 T at java.awt.Component.processEvent(Unknown Source)
" b$ G6 y7 l9 e9 B0 n% o at java.awt.Container.processEvent(Unknown Source)2 s9 m3 p3 V1 h: W7 i4 Y3 J
at java.awt.Component.dispatchEventImpl(Unknown Source)8 c8 Y' z, t: e+ x( E( `
at java.awt.Container.dispatchEventImpl(Unknown Source)
3 w3 Q1 b4 J: X2 B ]) b; q+ z7 } T at java.awt.Component.dispatchEvent(Unknown Source)1 ?* ], R# E1 r
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
& ~' _' l/ r+ A4 R1 v3 |3 Y at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)# f4 D( F$ J, f/ S+ ]* i# v
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) b4 L9 J5 P7 C1 Y
at java.awt.Container.dispatchEventImpl(Unknown Source)4 ~2 ~# Y: g% y3 n
at java.awt.Window.dispatchEventImpl(Unknown Source)
+ L, M# T# D- P9 Y( Z) f1 B' s7 J at java.awt.Component.dispatchEvent(Unknown Source)
7 \' O6 ?+ g4 x0 V at java.awt.EventQueue.dispatchEvent(Unknown Source). u0 O% c0 t, C# y1 J& p* R7 C
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
9 a3 m6 |8 f9 I% ~. { at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)* F7 Q$ Q+ t( t; C$ N1 _0 \( o
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
) [7 j: M/ n6 i- a9 E) f at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
# W+ b7 a; c: {% c! o" `. H) | at java.awt.EventDispatchThread.pumpEvents(Unknown Source)( w1 |2 i& p8 @/ u- g* y
at java.awt.EventDispatchThread.run(Unknown Source)
; H; {6 z' M( g { z |
|