设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6299|回复: 0

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

[复制链接]
发表于 2012-12-1 12:42:02 | 显示全部楼层 |阅读模式
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点  p4 g) g, c' f
ERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays
! @) |1 V2 x9 e7 O* brepast.simphony.visualization.engine.DisplayCreationException: Error while creating display.
* {2 K! F2 b; |: e, j& p7 F4 t        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)
4 J7 x, ^% [  @& c8 U        at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)8 J+ p6 u' ]: {* I! e9 k2 H
        at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)3 q; d1 r, e5 V' P. S7 ]
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)% ^. E# }3 Y3 U- |, S
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
2 g3 t3 @( d; m8 C/ O  Q9 C5 R        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)
, }/ @$ l" j8 M+ Z2 Q        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)5 U& B; O# R4 I
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
  _$ S. S1 ~# `; p' @8 C3 ^        at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)
2 v) c% N+ H* s8 d+ ?        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)
1 R+ S! [$ b) y& G- O        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)7 U0 ^, m% {0 r8 w9 J
        at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)4 E) V' G* Z( [+ r
        at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)
( p- ^* d! `& }9 Q# Z6 z' [7 S        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)) p2 b2 y) q: |. x# E( r
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)* N- Q. @4 g' r% M; f5 b1 x
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source); h0 W" C) X2 A
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
# ?/ @9 k& D5 J' Z. l        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
6 G; J6 h9 B% S  `        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
' x' H: `6 T! c5 O, l        at java.awt.Component.processMouseEvent(Unknown Source)
. a7 |" u( ~# ^: }. k        at javax.swing.JComponent.processMouseEvent(Unknown Source)0 L8 U; o) w, r5 j' r! t
        at java.awt.Component.processEvent(Unknown Source)* d) L/ ?0 Z& {2 G! n# C  t$ b  Q
        at java.awt.Container.processEvent(Unknown Source)
! e1 [+ Z, j& ^! C  _        at java.awt.Component.dispatchEventImpl(Unknown Source)
1 @+ E; j! J! Q; `2 g( |! |" O        at java.awt.Container.dispatchEventImpl(Unknown Source)# l  C$ B; t; K+ a) S! P* _) H! g2 S
        at java.awt.Component.dispatchEvent(Unknown Source)! ^2 R! o8 G  q! G8 G* l1 {- M
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)2 Z" u4 l" [& F. X/ G5 ~4 K( @  D
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source): T! m  n% K8 G8 U
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
4 E" r7 @/ ?' s/ e$ q+ r        at java.awt.Container.dispatchEventImpl(Unknown Source)4 J4 B& ^9 b5 Q2 K. w9 p" Q
        at java.awt.Window.dispatchEventImpl(Unknown Source)
$ l& X8 y/ ~8 K; P% O$ s        at java.awt.Component.dispatchEvent(Unknown Source), r5 m" A! j4 W  d1 `  p3 v. f9 ]. z
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source), f; K! {0 t5 }8 {$ H) L- ]9 |
        at java.awt.EventQueue.access$000(Unknown Source)
) y) K) r1 A8 ?6 k$ D/ q" c/ K3 n        at java.awt.EventQueue$1.run(Unknown Source)& B: y' k' F" F2 ]1 N3 ]# R
        at java.awt.EventQueue$1.run(Unknown Source)* F$ R8 g. u. r$ W3 l2 {; Y& l
        at java.security.AccessController.doPrivileged(Native Method)
+ X2 g; F) K) M/ [) x3 a) v& Q- G9 v        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)5 K, Y2 Z# F/ v$ \, p0 d8 q3 G3 o9 T% B
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
* f: K! l8 v0 i* p: L        at java.awt.EventQueue$2.run(Unknown Source)
$ k3 V, d7 D! x7 P/ ^: g7 v        at java.awt.EventQueue$2.run(Unknown Source)
; |" i: z2 m( B, N4 x        at java.security.AccessController.doPrivileged(Native Method)* n* \1 P+ d3 Y
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
- M% p1 |) s: A        at java.awt.EventQueue.dispatchEvent(Unknown Source)$ _# W$ p& E- s% e
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)  @6 }9 x3 X+ @: l, \( H  k, Q+ g( k/ I
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
- D9 w# v, w5 o4 ^# l        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)' D; f1 _$ e( Q" K& t5 g
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
/ s( h" O- L- w$ e- o3 _2 A8 W: z        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)( C2 [1 f  W" i; K% }" d% V' J. A0 Q
        at java.awt.EventDispatchThread.run(Unknown Source)2 ~" y' C8 p3 T. ?
Caused by: java.lang.NullPointerException
' l  Q. L. ^' G" W; F5 _+ I) b        at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)6 r5 S( B1 ]- Q) W! T' a
        at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)# i5 [# v/ k$ c$ c- L. K2 j" Z
        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)
$ W# Y" G1 s, h' K. Y        ... 49 more! A; e; o/ E& ]3 A
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-8-18 00:59 , Processed in 0.012197 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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