|
|
本帖最后由 panllrose 于 2012-6-13 10:06 编辑 : L3 k# K: E: n2 t0 a3 \# r
# ?. J/ `. w6 X1 p Y+ E/ i+ ~
运行程序时,repast给出的错误信息看不明白,怎么查找问题所在呢?我的版本是RS1.2.0,参考predator prey示例写的,context只有一个continuous space,上面分布pedestrian.agent。错误信息如下:3 Q6 ? }) z! C. i7 S0 y* w! A
( G, N' P0 C J) C! B% `( F6 G
2012/06/13 09:59:23,312: Error while creating displays9 J0 @( _, q/ ]' a) C2 c- B$ @7 }
java.lang.RuntimeException: Projection 'ContinuousSpace' not found.
* E' x% |: {# p at repast.simphony.visualization.engine.DisplayProducer.createLayout(DisplayProducer.java:540)0 P) t, ` m U: y, W r
at repast.simphony.visualization.engine.DisplayProducer.createDisplay2D(DisplayProducer.java:187)) Y+ `( z, h; W1 X: P' N! n
at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:88)
. i; p g' T) l7 M at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90). H7 }$ E4 _" j! Q( f" B+ i* J9 C
at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:171)3 s1 W& U! N& d
at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
9 K. r+ O3 G9 X3 G5 B" ?( r at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)
( I& T9 w2 G* ~2 t( }( \0 W at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290) ]1 F4 ~8 ^+ U1 l
at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)5 A$ [9 p+ s4 I+ j) ] r( A5 @
at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)
r% B% a" L: N$ A5 |( i3 _ at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:169)5 ]! J4 G8 r, z y) m3 ]& ]
at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:324)2 o8 r7 Z% F" z9 w
at repast.simphony.ui.RSApplication.initSim(RSApplication.java:134)4 L6 ^5 T0 ~- G# q1 c- ^- ~' O% K- {
at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)% {. E, L% _* m# _: a
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) s8 P. I! {+ C
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)5 C- r+ W' s- c& ?$ M( U( Q) W
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
* ?5 T, C# ?$ y2 A1 U& [8 x at javax.swing.DefaultButtonModel.setPressed(Unknown Source)6 k9 b. M5 l. w2 V4 k
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
' U0 Y& d* G3 l0 A3 w8 { at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source); |) l/ }8 G/ I
at java.awt.Component.processMouseEvent(Unknown Source)
~ h3 x+ F' o) @% A) L at javax.swing.JComponent.processMouseEvent(Unknown Source)
+ o3 n0 C& J/ B( I" ^5 K at java.awt.Component.processEvent(Unknown Source)+ }9 E6 b0 o b( `! R2 {
at java.awt.Container.processEvent(Unknown Source)+ X2 j. ?, R6 d/ O
at java.awt.Component.dispatchEventImpl(Unknown Source)8 i5 z' W4 j9 r1 G, R
at java.awt.Container.dispatchEventImpl(Unknown Source)
. y4 ?2 j& X5 F6 H7 x6 f at java.awt.Component.dispatchEvent(Unknown Source)
7 d/ `1 R9 \* l' g& Z: [" x. G! p at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)6 W( p0 u. E: F: M2 [8 S4 h" |+ x& b
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
2 C! @* Y2 }- ?$ k$ ] at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
0 q) ]6 [* i- C# k- S6 c; x at java.awt.Container.dispatchEventImpl(Unknown Source)
% y" ^% G8 P* q3 r at java.awt.Window.dispatchEventImpl(Unknown Source)
" G; F& F8 V' A3 f( | at java.awt.Component.dispatchEvent(Unknown Source)$ J2 C. b" ^' J' U* E: V1 |1 ^" h% X
at java.awt.EventQueue.dispatchEvent(Unknown Source)* C6 b2 V2 u' z, Z- w" N( P
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)6 E' V$ M2 T9 @( w
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)% r6 q" m" r- i
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
! k# V# m; {$ S: P0 }2 W; p at java.awt.EventDispatchThread.pumpEvents(Unknown Source)& k$ L7 Z9 `& D, I+ L- ~% n
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
2 j# v* l8 J1 b% N6 o; E8 t }; v at java.awt.EventDispatchThread.run(Unknown Source)0 B4 o7 \ X* B2 f+ P" m$ O
|
|