设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6520|回复: 0

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

[复制链接]
发表于 2012-12-1 12:42:02 | 显示全部楼层 |阅读模式
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点$ U! N' r& s: g
ERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays4 v5 Z: W+ j5 m+ w1 o# S7 ]6 x& G
repast.simphony.visualization.engine.DisplayCreationException: Error while creating display.
) @9 s9 N/ a% Y. J2 |        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)
5 s) P$ N3 u! Y) |        at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)
: }2 P% L* f2 [. z! ?        at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)$ u. u) J' l; a# g
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)
- |' @5 z* `" m" L        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)% h5 Q2 |' J: Z) f: |3 I4 R
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)
# m: m% y8 Y( Z* R. H        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
; [* [2 s% \/ z, W9 t- R# N        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
! o  @- w5 E* Y1 P/ u) n        at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)& D' }. h0 p; N9 {
        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205), H4 n! \# z) \, G; B: {
        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)
$ ^6 }' ]. @) T% l. q1 T        at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)
. j, B. a( v4 @5 a5 ?8 z$ M        at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17). m$ r6 P" `" W3 K( H  ~
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
/ d5 K4 F- \0 Z; r# D( k+ v        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
4 V; \# `# N8 y- P8 e5 y4 u2 D3 H        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)" B# \6 S4 `4 E( |
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
% R5 n7 b: ]9 p: r5 o8 O  f        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)5 K. _  W* Y; N3 {
        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
7 v0 Q% [2 B* F' j; O3 m        at java.awt.Component.processMouseEvent(Unknown Source)0 p# @' C6 x  }1 @8 w( B$ X$ S& |
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
! Z6 I! c. b% Z5 L3 |1 q- E0 V8 c        at java.awt.Component.processEvent(Unknown Source); f4 I/ l4 F9 a; O$ c4 H4 b
        at java.awt.Container.processEvent(Unknown Source)6 r3 s. I. w" E, v5 v9 T' s, c
        at java.awt.Component.dispatchEventImpl(Unknown Source)0 {8 ^/ U% \. x9 a2 v
        at java.awt.Container.dispatchEventImpl(Unknown Source)9 t) F# O- ]4 ]& }) @7 E' N
        at java.awt.Component.dispatchEvent(Unknown Source)8 H1 M# s5 e9 Y3 Z3 {8 y* R
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
" d. F* ^8 Q- K; P1 K        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)2 y, [4 i7 ]: q# P0 w- Q0 X
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)  H4 S3 B) m, j
        at java.awt.Container.dispatchEventImpl(Unknown Source)
! l1 g: H. E( M  T        at java.awt.Window.dispatchEventImpl(Unknown Source)
) h2 C( D+ I. G" z! Y4 U        at java.awt.Component.dispatchEvent(Unknown Source); v) e8 B$ C4 ?
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)) Y* E0 R; s: S9 E
        at java.awt.EventQueue.access$000(Unknown Source). g& y' H' P. R, `; {
        at java.awt.EventQueue$1.run(Unknown Source)
: U/ A; Y$ i! _/ e1 C& u        at java.awt.EventQueue$1.run(Unknown Source)9 x" ~* i- Q& q6 h* n
        at java.security.AccessController.doPrivileged(Native Method)
* M6 K0 `2 v7 @) Q9 B: k        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)9 i$ U# d% Z/ u6 A7 D4 C
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source): Z7 G+ i5 B7 b! D
        at java.awt.EventQueue$2.run(Unknown Source)
" D8 h0 b# T0 t2 E        at java.awt.EventQueue$2.run(Unknown Source)
7 M3 G! N' \! {( D: ?$ O. f9 u0 w        at java.security.AccessController.doPrivileged(Native Method)1 C4 j1 L# h: s* k; E# D
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)$ j: R" u9 f6 d' F" ?
        at java.awt.EventQueue.dispatchEvent(Unknown Source)( l& {4 g$ l, x' r$ Z
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)  p& P' _' g1 K" E0 ?$ Q( U
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)9 Q( W9 ]) _. Z- W- w& v
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
! `# O/ I  O& O8 j6 y9 o8 R' w0 q        at java.awt.EventDispatchThread.pumpEvents(Unknown Source); ~8 p6 J* g, x1 ^
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)" f- C1 v3 M2 y
        at java.awt.EventDispatchThread.run(Unknown Source)% ?+ Y7 i2 b/ z: S; v3 h# ]9 ^5 t
Caused by: java.lang.NullPointerException
- H6 D0 [0 J3 Q$ n        at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)( t# f- @( l# L- n9 f5 i3 r, [2 K" ?
        at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)
5 A) Z6 h- V6 W: C$ O7 S        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)
5 {4 f! i* l9 A0 M$ S- g        ... 49 more
' ]1 ?  b% q, W! N% A/ E$ z5 T. Y
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-10-22 12:52 , Processed in 0.018071 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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