设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4781|回复: 0

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

[复制链接]
发表于 2012-12-1 12:42:02 | 显示全部楼层 |阅读模式
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点
8 H5 L% x; g, |' `  O) PERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays8 \8 ~+ a& n1 Q( N! h# }# p0 _
repast.simphony.visualization.engine.DisplayCreationException: Error while creating display.
+ o+ L8 N3 B5 D        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)3 W1 z) l% A- c
        at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)* ]+ e# z+ J* _7 [0 t2 P: i4 y8 D
        at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)
- K3 _$ O/ B8 k2 ?9 M3 A. H0 N7 O        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207), w; c8 a7 }  h- f3 e2 r
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
" V1 ~4 ]0 L5 @2 l+ _        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)
5 X* q! s+ d4 w7 j( ~7 l        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)7 U5 P! f0 ]8 D
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290), [+ t- w/ n$ L' j  k# x
        at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)+ ^! B5 M5 ^. D6 e; D
        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)+ v. c2 D& C) g  d" y% r/ p3 [
        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)( e' U1 j/ t, W& E5 z! c/ U0 X& f
        at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)1 u7 z2 C" J, |$ ]
        at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)
& ^- }( Z+ T$ |2 v+ R        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
+ H2 [- k, d. f! L        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
/ W* E6 o; Z- n  }        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)+ [4 T' d+ b/ c6 u9 F# I! b7 m
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)# B( Y" ~4 X1 {7 k2 f7 T
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)3 r, A( c  _; s: ?
        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
  [3 P) q( e) @" j5 b# z        at java.awt.Component.processMouseEvent(Unknown Source)
! [8 T; ?; t- h4 J% A# A        at javax.swing.JComponent.processMouseEvent(Unknown Source)5 X+ I4 J  t9 d  T
        at java.awt.Component.processEvent(Unknown Source)+ F7 S$ C- h+ r6 @* e
        at java.awt.Container.processEvent(Unknown Source): q" j: T4 @9 ^6 L+ j) f4 m' Q
        at java.awt.Component.dispatchEventImpl(Unknown Source)
) [0 q! H9 o) H$ o' ^% m        at java.awt.Container.dispatchEventImpl(Unknown Source)
" a1 Q& T9 C# n' p# Y" F- h7 m9 p' o& ^        at java.awt.Component.dispatchEvent(Unknown Source)! a  [2 L4 I% y
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)6 b, `7 e4 ~0 J$ ~" f  T
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
9 w  y+ m9 i1 N; E        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source), |& U1 D1 Z" O8 z; F3 B* u: L
        at java.awt.Container.dispatchEventImpl(Unknown Source)+ e. h, z: f, N7 L( \% W
        at java.awt.Window.dispatchEventImpl(Unknown Source)+ E& O7 p" \- C+ S8 z
        at java.awt.Component.dispatchEvent(Unknown Source)0 @4 y4 V) c% z( G! k( e3 b
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
6 L7 _4 Z! Y& C: D* K1 G+ }1 S4 j        at java.awt.EventQueue.access$000(Unknown Source)
$ m/ c# p. D1 N& F% }& U        at java.awt.EventQueue$1.run(Unknown Source)
) f3 `6 y0 J6 w  I        at java.awt.EventQueue$1.run(Unknown Source)# Q9 M) d) m2 r( q8 h; A" S' A5 @
        at java.security.AccessController.doPrivileged(Native Method)
) p$ {) `, D$ O( {/ p9 @( U        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)) C7 V) ~- ]0 I' `
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
; u; r& q0 I7 [8 {) l        at java.awt.EventQueue$2.run(Unknown Source)7 Z  J/ |+ A) ?- r3 z
        at java.awt.EventQueue$2.run(Unknown Source)6 O& H% A6 |" Y- L2 k$ i
        at java.security.AccessController.doPrivileged(Native Method)
$ m6 Z0 m+ m- D& i- T2 P! |        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
, Z$ s4 v/ ^  u% n+ m2 \        at java.awt.EventQueue.dispatchEvent(Unknown Source)$ d; z# A8 }* R# |  V
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
+ Q* V' t! j6 b% Y2 B2 j        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)# c+ s$ p) C& `- c
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
9 i4 |% t# @4 X# z  @- k& ]        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
: F) ?; A. |; `        at java.awt.EventDispatchThread.pumpEvents(Unknown Source): ~5 P7 P& ]. g8 k7 j. J9 m
        at java.awt.EventDispatchThread.run(Unknown Source)8 x% I! z- c, f4 v! P* g7 a
Caused by: java.lang.NullPointerException
. N$ Q) M8 @2 v) |, y- d        at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)
! y8 V5 y; f; N' ]2 A9 n: U        at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)( v! q& @$ V3 Z2 T. J9 _' ^
        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)7 e6 u- ?" T& ?0 c; K7 \( h
        ... 49 more7 ~5 h7 i( n1 L8 J
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-5-7 10:35 , Processed in 0.012148 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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