设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6949|回复: 0

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

[复制链接]
发表于 2012-12-1 12:42:02 | 显示全部楼层 |阅读模式
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点
$ m3 y3 i7 m; s8 UERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays- b" U' q  n) ?: p& v
repast.simphony.visualization.engine.DisplayCreationException: Error while creating display.& k: b( |7 k7 R- D2 H; H0 \
        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)
- \, c0 r& p  @4 P4 F- K, B0 ^        at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)
7 I" I! O5 _' }( x# o0 l2 U7 v        at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)4 _" ^+ w: ^3 U# C
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)
4 M9 k+ P3 G+ e, _% W+ B8 j: x        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
( i+ ^5 P: J) b7 \  @7 F7 N8 T        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)% S. [! D! h, E
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)( i2 D6 {3 m, ]( ?" s4 t& V
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
% Y4 P" M; j0 f4 o& s        at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)
+ j" Q8 d# O0 {6 f4 e3 ?' ]2 x        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)
1 H1 w; }! @6 U, P        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376); V$ n8 C* o' w8 L& p& P0 E$ B  [3 ]
        at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159); O" I* L& C" ~; R
        at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)
/ r/ e3 w' Y+ e$ S& g        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)0 T, ^  Q, p* U. w4 W! p9 {
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)+ y6 h0 v6 P. p3 K1 F
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
) k& _1 u+ ?, S* h  ^* b. y        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)5 h$ M5 E! f2 s
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
; u/ X6 D9 w( A( |3 `! ]        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)* b* _) q3 J! ~4 V& ]4 V% g* c/ r
        at java.awt.Component.processMouseEvent(Unknown Source)
- i9 [8 P/ ]" y1 w3 C% b0 m' j9 l        at javax.swing.JComponent.processMouseEvent(Unknown Source); K/ K. m. m0 X) u, E4 N
        at java.awt.Component.processEvent(Unknown Source)- j) X( q: v, H3 @/ L
        at java.awt.Container.processEvent(Unknown Source)
' V5 q; ^# E; b        at java.awt.Component.dispatchEventImpl(Unknown Source). L) ~  u; E7 X# S
        at java.awt.Container.dispatchEventImpl(Unknown Source)+ y9 F# x& g! ]. ?
        at java.awt.Component.dispatchEvent(Unknown Source). W6 }1 a" R& d0 t
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
, W1 W7 M( H; B        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
( S9 ~' N. ~3 I9 K) ]) b        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
. C1 U  N: W! }" I" t3 x& Q( _3 g4 ]        at java.awt.Container.dispatchEventImpl(Unknown Source)% b! H% V4 x) s3 ^. a# E+ S! s# c! k
        at java.awt.Window.dispatchEventImpl(Unknown Source)
4 o4 x9 N4 s( Q! a        at java.awt.Component.dispatchEvent(Unknown Source)$ H/ n" h' K! Y' ?& D0 y1 F) W
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)7 m2 @, j  f: B8 f3 n# R) }8 S
        at java.awt.EventQueue.access$000(Unknown Source)
7 q" Q; h; N5 Q- d( s7 b5 L4 A        at java.awt.EventQueue$1.run(Unknown Source)# X. v/ l; \8 a
        at java.awt.EventQueue$1.run(Unknown Source)
7 M4 C9 H8 ?6 |        at java.security.AccessController.doPrivileged(Native Method)
! P" U. ~' z9 v' ?) u% M        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
2 T* J5 K. ^6 r        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
4 A- [7 F/ c9 R; t7 {        at java.awt.EventQueue$2.run(Unknown Source)$ U! C& p' t8 t" Z
        at java.awt.EventQueue$2.run(Unknown Source)0 j5 J. _" R* _# K" ]
        at java.security.AccessController.doPrivileged(Native Method)
+ b- B# S/ S9 u  y; d( k        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)0 A5 C, i4 ^! B8 I+ w- G3 R5 q
        at java.awt.EventQueue.dispatchEvent(Unknown Source)* Z  R8 R( @! R2 O$ k2 }- D, X; [8 @3 u
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
" I  Z4 Q8 p* I6 @3 g* }        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)) f' \. {! C* A, q7 V8 ]( r
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)% h5 T/ r4 D7 d8 K" j5 k" s$ @$ F
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)$ Z! [! k& Q$ n- c2 }
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)8 w( E+ B$ \# u
        at java.awt.EventDispatchThread.run(Unknown Source)+ F. Y. N* h8 h( S4 a/ v
Caused by: java.lang.NullPointerException
; {0 P8 ^" a2 X- ]        at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60), \; H$ B8 s8 l" j  L
        at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)
+ g0 @' A8 G* ^( A- ~% I        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56). N7 ^% }$ R/ a% ^2 F9 y: e6 R. B
        ... 49 more( v. P2 E+ y& k# `$ H: Y  g% \
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-2-5 07:11 , Processed in 0.017646 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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