设为首页收藏本站

最大的系统仿真与系统优化公益交流社区

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6548|回复: 0

[求助] Repast Simphony 2.0 中 Error while creating display

[复制链接]
发表于 2012-12-1 12:42:02 | 显示全部楼层 |阅读模式
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点
. G  ~/ n+ w: a9 s. h( YERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays2 y# h, K2 c4 \5 a* d
repast.simphony.visualization.engine.DisplayCreationException: Error while creating display.
* G$ }, N" A6 U        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102), u2 c7 L% S2 c% D) o3 v
        at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)0 n( L6 D) n& l" M) ~. Z
        at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)$ C7 k' `, }, ]0 B% x: @% e* h
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)
% k5 m  G' P9 f; G9 y4 B5 }" i2 S+ k        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
# U+ R$ r6 q0 j8 e) G5 {& J        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)* q6 y2 |3 m( W) q9 s, B
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)* a* j- E- V8 `' |- l
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)/ _1 T* m. I2 G: b3 O
        at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)$ t3 Y; H  `2 ~1 h5 p+ j- _* p7 D
        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)
! k1 R, M* X/ }5 E: K* [: o        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)
5 S$ [- s6 q3 @, w% n5 u        at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)
# M: A  ?2 T) E0 R. x2 q        at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)9 l9 u7 ~4 V4 E. `* }7 u1 f
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)$ g5 b4 j9 Y! G* k1 @2 V0 p
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
6 r1 r; ~# R& ]        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)' u$ I7 H: Q* T5 c! A$ F+ x" p
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
5 z# F. d% g) P* {+ f: w6 L        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
% F! y# d- h; \4 G        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)# E$ B9 W: Y+ u
        at java.awt.Component.processMouseEvent(Unknown Source)
5 A! v+ p& ]* m, h        at javax.swing.JComponent.processMouseEvent(Unknown Source)
+ _- B$ w  l9 |- H% o        at java.awt.Component.processEvent(Unknown Source)
" _- u, h( W2 h: {5 h) u        at java.awt.Container.processEvent(Unknown Source)* i! @9 e8 q$ |0 N& o# z) K
        at java.awt.Component.dispatchEventImpl(Unknown Source)
" t: l! D; F: ]6 c        at java.awt.Container.dispatchEventImpl(Unknown Source)
7 f+ U# p* l* M8 _8 E; v+ Y        at java.awt.Component.dispatchEvent(Unknown Source)( x& p- U/ k& J+ y) [; g; P* k8 r8 ]
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source): q$ C& i! N9 a
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)7 m8 a3 w+ Y% k  m) y5 t9 `: g
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)1 V. }; n3 k- z) s
        at java.awt.Container.dispatchEventImpl(Unknown Source)
. J6 C8 b8 k* V* }        at java.awt.Window.dispatchEventImpl(Unknown Source)0 s# m  L) ?; t( q8 E( d
        at java.awt.Component.dispatchEvent(Unknown Source)
# }! X) f# ?) \3 m. B! r        at java.awt.EventQueue.dispatchEventImpl(Unknown Source); Q! l: Y. P! b. D
        at java.awt.EventQueue.access$000(Unknown Source)
- m) `) ]! H9 f' V2 s        at java.awt.EventQueue$1.run(Unknown Source)
- |3 a" n9 b/ z# v; s( r        at java.awt.EventQueue$1.run(Unknown Source)8 a+ x$ q6 D2 c( q4 W) G
        at java.security.AccessController.doPrivileged(Native Method)! ?& Q' \; A! N2 q+ l
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source): c# l& t& |3 _
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)8 R- M8 f3 H! }( \
        at java.awt.EventQueue$2.run(Unknown Source)
+ ^# g. s; z0 ~3 T6 L% _" D/ M, ^        at java.awt.EventQueue$2.run(Unknown Source)
) q! n: F$ s7 ^$ J        at java.security.AccessController.doPrivileged(Native Method)9 I* C/ i6 Y$ s/ F  F3 I9 R0 _( b
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)) x8 d1 ^* V: X7 S3 ?* @
        at java.awt.EventQueue.dispatchEvent(Unknown Source)1 C( f0 M2 l0 d
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)" E/ \5 [0 q% d8 `
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source); W. L/ U* s4 N7 k4 U
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
1 \( h/ r7 F- g( ~        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)) G; K$ V$ t: I' O
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)- p) {" r, Q' A/ A: Z
        at java.awt.EventDispatchThread.run(Unknown Source); U0 \; S6 {1 K- ?: J
Caused by: java.lang.NullPointerException$ |  {+ ?# Z+ n! l. ^6 x
        at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)
4 V9 `5 V% \5 o$ S: x* q        at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)0 u- v/ j) L3 p% M
        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)
, r. {$ @+ V* m% d        ... 49 more
  l. I/ u, Y. X+ q
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|SimulWay 道于仿真   

GMT+8, 2025-10-30 04:46 , Processed in 0.015949 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表