设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7548|回复: 0

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

[复制链接]
发表于 2012-12-1 12:42:02 | 显示全部楼层 |阅读模式
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点- T: P7 H8 S! h, u, v! M
ERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays
, P, ~, M1 @$ C9 i* }) @0 h3 E5 c% Drepast.simphony.visualization.engine.DisplayCreationException: Error while creating display.
5 U; G8 V2 m1 M8 p        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)
( S( e  D; B; }9 b6 P" ^        at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)  e4 \3 C2 a. p
        at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)2 D; o3 f4 Z( l2 W
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)
" E! ~1 h) ~+ P& p0 c        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
  L. U& i1 L2 C' b        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)9 ?7 M6 }  R2 l/ h
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290): a% b7 T2 f' i
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
: C0 _! ?6 ^& }) V        at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)
4 b9 g9 I) i8 Q8 P  c# V        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)
2 l9 e7 u# T+ _6 [$ _0 F( V* R        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376), @2 j, D" P& d- s. x2 Q. @2 ^8 I) M' b
        at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)3 f/ e2 G( r6 N2 [. q$ F6 c
        at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)- w3 ?) y* w6 p2 j
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
* @! _+ e+ p7 }. j9 [        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
9 u7 W* F( A! S5 k3 P( ~% |        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)8 y! t$ i6 R3 X/ l( @1 k, S6 p
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
% D1 e$ }7 ]1 s! j3 I1 u8 U2 V        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)! v" v& S; ~; d6 R' \" X: F0 j' C
        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)7 T; Y$ P6 ]6 Z1 s* x4 o' m& U
        at java.awt.Component.processMouseEvent(Unknown Source)( w7 R" o$ u, k/ ?1 _' m9 M" f2 |
        at javax.swing.JComponent.processMouseEvent(Unknown Source)- W3 P4 s* F' v/ P1 Q9 _- O
        at java.awt.Component.processEvent(Unknown Source)) p' f" J1 {* O7 ^' n
        at java.awt.Container.processEvent(Unknown Source)) D  L; ]& Q2 ]* b, S1 ~
        at java.awt.Component.dispatchEventImpl(Unknown Source)
% q: A( D7 m. u- _, k        at java.awt.Container.dispatchEventImpl(Unknown Source); J. }* w$ E% e: ?
        at java.awt.Component.dispatchEvent(Unknown Source)
- t$ x3 H% h2 X        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
& C/ e7 t) T+ a        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
$ N: B$ A/ [$ m        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
; D  B) V% a3 J% z4 \        at java.awt.Container.dispatchEventImpl(Unknown Source)/ V5 r/ }& Z. n( t8 j
        at java.awt.Window.dispatchEventImpl(Unknown Source)
. m' K% a7 ?3 I        at java.awt.Component.dispatchEvent(Unknown Source)7 p& e3 x. K* Z! v, d- n
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)7 V/ P! m7 N4 y$ J$ q
        at java.awt.EventQueue.access$000(Unknown Source)& l6 M/ d) d1 m# a& {
        at java.awt.EventQueue$1.run(Unknown Source)
3 h. ^9 O4 P% x* A        at java.awt.EventQueue$1.run(Unknown Source)+ j% b7 J6 T2 h/ B9 [' w& E% o
        at java.security.AccessController.doPrivileged(Native Method)7 U6 a2 `' F$ ]$ x( D4 e
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)4 l$ L" F1 O7 O9 o
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source): _) S  z6 L" x; X" J* S$ d5 l) C/ d
        at java.awt.EventQueue$2.run(Unknown Source)9 A5 |; @  {/ a, {; K3 X, ?. z) m
        at java.awt.EventQueue$2.run(Unknown Source)
# `1 s( Z+ E) {: o; ]) m: {        at java.security.AccessController.doPrivileged(Native Method)
- F5 V8 V% S% @4 h3 P: O4 z) A) E        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)5 f' r* q8 j  A( ?" k/ S  O
        at java.awt.EventQueue.dispatchEvent(Unknown Source). q+ L. i/ t4 J% \+ n
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
3 D( `$ P! i9 g$ I6 n        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)/ _. E* d7 [) T% O$ a3 u$ ^( O
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
. m0 [* ^  l* l! }9 t$ w        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
4 M0 K0 O  v: r1 B0 l        at java.awt.EventDispatchThread.pumpEvents(Unknown Source), }+ N' o2 Q. W, W" Z  e* z
        at java.awt.EventDispatchThread.run(Unknown Source)
; F7 c, X% G) Y8 r1 J4 v- @Caused by: java.lang.NullPointerException
; X2 J7 Q/ K5 P. F5 K        at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)
$ Z0 d+ a) H. ^  U; s" i        at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)
6 H5 x: t! N- P6 E/ S        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)
3 u5 D+ U/ {+ T  b        ... 49 more- h( t% u$ P6 [: d$ j! N" I
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-7-2 09:21 , Processed in 0.013444 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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