设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6297|回复: 0

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

[复制链接]
发表于 2012-12-1 12:42:02 | 显示全部楼层 |阅读模式
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点$ ~" i. b4 G! U( n4 \5 {
ERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays
( a9 H! u7 x) q! R- S# ]repast.simphony.visualization.engine.DisplayCreationException: Error while creating display.1 I; E) l* m3 B7 v! x
        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)9 b1 ]+ P* H+ z, L. R  x: [$ O! e
        at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)* W) U* c; |. a6 O) y4 z; ~
        at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)+ ]% |) t7 j: ?1 {# s
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)
5 R! U, d! V9 T4 r# m1 V) y        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
& _9 \& _* q+ A, e        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)
- I3 _9 j- l7 M        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
6 p6 k+ u! o8 ]) O7 f        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
6 }, C: |& y% e8 `2 H        at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)
4 i( E) ^) z. m# L8 Z2 k        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)8 j( |# p. \) m/ x) b
        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)# S: Q+ Q. u4 s( z5 _
        at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159). {" `! O( J- c
        at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)4 k) H7 ?, q- Y
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)& q$ w, ~8 T9 W) ]
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
  W3 B: {+ ?$ l/ I& `, ]* w        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
" A8 _' S/ A* o8 j        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
+ Q; U4 V  \: a; ~' B3 H8 g; w        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)( {5 \' M" S/ S; j2 g
        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
7 ^5 |- z7 @( u; m2 w. N        at java.awt.Component.processMouseEvent(Unknown Source)
7 |+ c: j, |! P6 C' G        at javax.swing.JComponent.processMouseEvent(Unknown Source)* @% }" W% O1 S" M6 S: }
        at java.awt.Component.processEvent(Unknown Source)
- p+ S# G& d# i7 ]5 n5 r' @& N        at java.awt.Container.processEvent(Unknown Source). k/ [+ N) C3 p0 i$ ^7 P
        at java.awt.Component.dispatchEventImpl(Unknown Source)
: |  W! c& \, U+ C, j        at java.awt.Container.dispatchEventImpl(Unknown Source)
# k5 f# z* a& x  c6 }        at java.awt.Component.dispatchEvent(Unknown Source)% n: S4 {0 D; _; X. k; ?5 P
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source); W& j5 }! y. y6 l" O2 S3 g& A
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)* r2 {5 [8 H- r
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
2 w; Q: c, j3 |) ?1 Z        at java.awt.Container.dispatchEventImpl(Unknown Source)
. G  I  D$ M  x: r* |0 r        at java.awt.Window.dispatchEventImpl(Unknown Source)
5 n4 n! A2 Z1 ]! K% j' z        at java.awt.Component.dispatchEvent(Unknown Source)
2 @# V% F( [. b% r/ A$ [1 B        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
6 c, t# K1 ?8 x" @* F6 }  p# [        at java.awt.EventQueue.access$000(Unknown Source)
9 A2 Z$ t0 C6 E+ k6 E3 v        at java.awt.EventQueue$1.run(Unknown Source)- m; l) T0 g3 c+ d2 ]
        at java.awt.EventQueue$1.run(Unknown Source)
$ R% j% q5 f7 o, {/ W0 S        at java.security.AccessController.doPrivileged(Native Method)& }# d) E: n9 ?
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)9 K  _) \; G5 O7 t  _+ Z
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)/ l0 C5 h: [% G) B; l. u
        at java.awt.EventQueue$2.run(Unknown Source)3 b  D; ?6 [6 N  ^8 l  K0 g' X+ o
        at java.awt.EventQueue$2.run(Unknown Source)
+ v6 K& P! F1 R        at java.security.AccessController.doPrivileged(Native Method)- k2 o1 U$ M0 Z4 Y
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)) g% Q# g8 S( ~/ {
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
2 ^. X# d0 b& X3 l8 s$ I+ d        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source); l" t+ `4 _! N, I# J
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)8 t' F  m; G1 M2 N1 g3 L
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)9 K' d- b1 n# P6 P# ]
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
6 n+ W) k* Y; b4 r. a        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
7 X; H  \7 Q7 I5 a: F) _3 ]        at java.awt.EventDispatchThread.run(Unknown Source)
$ e% W" A# O: f  T* k9 m, m' VCaused by: java.lang.NullPointerException- u9 i$ a; D1 O) R' d0 d+ Y
        at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)
) k( t2 S) k9 Y* `& o) C        at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)9 s7 r( e# \2 M, G
        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)
7 n* R' j; o2 H: l# y        ... 49 more
9 e! r) g8 z# j. X  b" k0 W
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-8-17 16:40 , Processed in 0.012138 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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