设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6296|回复: 0

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

[复制链接]
发表于 2012-12-1 12:42:02 | 显示全部楼层 |阅读模式
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点3 w8 k6 a" N5 n1 D$ K2 f5 ^5 K2 y
ERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays
4 M, v, R  Q  e* M; G* ?; C" w& p( jrepast.simphony.visualization.engine.DisplayCreationException: Error while creating display.
" Y+ Z9 N2 i* q3 y. m) t        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)# A$ h& N* O6 {2 i) Z( m
        at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)
' G$ q: o2 c+ n  W* Y/ K        at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)- m7 J. {  _9 _) U
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)1 ^3 Y! V9 i" |/ B3 F2 `
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)! d1 a3 t& t# L) a& ~2 T. O
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)
9 f1 \& k5 v& a9 \        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)7 x; Q7 l' }: ?/ D8 P9 Y: s/ ^
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)* d) J4 B( K9 t3 b9 y
        at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)4 x6 s( \6 Q( |4 \
        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)) t9 j* D8 P  X3 A: _# F1 f
        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)0 z4 A9 C4 z  ^) n
        at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)) F& d5 ?" Y+ `1 v3 D
        at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)$ W2 J: @  g6 N) b
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)# V8 M% Y) E! b4 s- l- b
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
- d2 q8 w/ ^; X9 V7 L- U  @        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)% v$ [% T2 _/ i
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
% l/ c/ C; L' k        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
0 D, l. T: Q( x3 ]% f# M$ @1 H        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)# a1 N- [% R1 ]! [' V' H
        at java.awt.Component.processMouseEvent(Unknown Source)
4 d  H& a4 k& [; }0 R        at javax.swing.JComponent.processMouseEvent(Unknown Source)7 u8 |  k" ^& b( S, I
        at java.awt.Component.processEvent(Unknown Source)" g9 j3 s" _1 |
        at java.awt.Container.processEvent(Unknown Source)( j% N2 \4 k1 h% e1 q& V
        at java.awt.Component.dispatchEventImpl(Unknown Source)
3 J. _( a/ ]; B- [: h4 t        at java.awt.Container.dispatchEventImpl(Unknown Source)+ f& y$ d  N$ U5 Z; O! q- h& u# Y2 g
        at java.awt.Component.dispatchEvent(Unknown Source)# D  T9 V( Q4 ]- B$ k" n- Y
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)9 M4 [5 I/ s# V4 j
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
2 }  m8 O$ p8 c( h( O0 V% E2 Q% @) F        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source), u1 V/ s& `- Z8 r3 C4 r! y
        at java.awt.Container.dispatchEventImpl(Unknown Source)7 @4 R! T& r2 A  {+ F5 A- x5 \/ a& J
        at java.awt.Window.dispatchEventImpl(Unknown Source)
7 |3 d1 P; n; {7 w        at java.awt.Component.dispatchEvent(Unknown Source)
* L8 V) i1 N. Y- q  F3 V; E        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)1 B/ x9 N/ W  O
        at java.awt.EventQueue.access$000(Unknown Source)
& P+ N  C2 O/ _& J4 X# h        at java.awt.EventQueue$1.run(Unknown Source)
& K/ I) B$ F& N4 F2 \# Q        at java.awt.EventQueue$1.run(Unknown Source)- C7 |8 g9 n% ^6 _! J
        at java.security.AccessController.doPrivileged(Native Method)' o0 L: w9 f( }3 W. ~# Y
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
$ D  R: _* C: Z% ]1 F1 a( u) R2 u+ A        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
  A6 t) R, [! f- @6 |        at java.awt.EventQueue$2.run(Unknown Source)" S& r! t* Z- U0 }- a8 ?2 q
        at java.awt.EventQueue$2.run(Unknown Source)
  r, X) ]: ~2 ]- `! l5 ~        at java.security.AccessController.doPrivileged(Native Method)
9 a8 s1 ]* M; \        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
9 q2 ~& ?6 G' d1 x( ]/ I        at java.awt.EventQueue.dispatchEvent(Unknown Source)
' {; `, K3 j' P5 _7 e        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)- Y+ G" n/ ^: [+ _/ P
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
) f# R, \" d5 p5 @) p        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)5 C; t+ M7 i) D/ s
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)* S. j+ Z9 m: S
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
7 X, D* e! K5 p3 `        at java.awt.EventDispatchThread.run(Unknown Source)3 [7 Z; U0 e8 u/ D" @
Caused by: java.lang.NullPointerException
! a# `& {& I2 V        at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)
/ ?) H6 _3 X9 M4 r        at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)
/ f) z! s9 Z( [0 o6 U        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)
: R' t" V8 @# m: ^% ]        ... 49 more4 f, {( n. m0 i
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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