设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6787|回复: 0

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

[复制链接]
发表于 2012-12-1 12:42:02 | 显示全部楼层 |阅读模式
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点
* ~5 V5 d: E1 p2 s7 DERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays: ?( n5 @2 P" \3 S, h* y1 O& J
repast.simphony.visualization.engine.DisplayCreationException: Error while creating display.2 A8 U3 S4 k; @% h! O; R4 [
        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)! e; n9 w/ W5 y( g2 P8 d* i1 B7 D3 H" c3 V6 B
        at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)
6 W( H# ?7 [1 h        at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)
4 X. z" n# @( w; n' @        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)  P+ [, n, e1 o5 u
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)9 k& m0 c. V8 h/ \4 s+ h- B4 B" j
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)6 ]' N7 q' d5 m7 k4 `/ f
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)& M. i! k7 `$ K% p9 F/ l0 D
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)& n9 t( O/ c1 V& n5 m; |
        at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)( L! l6 ?9 L& k; Y! x" ~+ R; g
        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)9 _; H" G" h3 N, e
        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)
: u2 @* S5 Z4 C        at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)+ X( |1 P0 l+ X3 E5 `# W" s0 u
        at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)
0 u! E' w, i/ A& X9 h7 X1 _' j        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
% R) Z5 O* u$ P        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
1 @9 j$ T- p6 E- q) x+ \& l        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)0 h! a& k1 [" V& c% Q- ]
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)- u4 Y2 g5 M% T$ _4 S' ^2 V; N2 E
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
5 ^/ B7 B1 H7 X) o" J        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
  A1 f* R% E. g9 j- q" f# m        at java.awt.Component.processMouseEvent(Unknown Source)
" b! U) R) Y3 T) K% D        at javax.swing.JComponent.processMouseEvent(Unknown Source)4 e4 }- y' c# o
        at java.awt.Component.processEvent(Unknown Source)9 g" Y/ s) G# z4 I
        at java.awt.Container.processEvent(Unknown Source)+ |% g$ d/ X( j6 q/ M
        at java.awt.Component.dispatchEventImpl(Unknown Source), C! V0 |' C9 P  |
        at java.awt.Container.dispatchEventImpl(Unknown Source)1 K# D6 T+ m' y/ k; p
        at java.awt.Component.dispatchEvent(Unknown Source)
" j& Y0 g! P; H: x0 |! I+ k  l        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)# M( c# j3 B4 I& o$ [% H! K2 _
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source): J1 h3 s, Z4 }0 Z
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)7 A, R. y$ e0 W9 Q( n) j' m
        at java.awt.Container.dispatchEventImpl(Unknown Source)3 E3 K  f: X8 O" D6 w
        at java.awt.Window.dispatchEventImpl(Unknown Source)
$ Y8 L- W& y& L" @0 o9 W        at java.awt.Component.dispatchEvent(Unknown Source)1 C) ?1 h3 i5 r8 C# j
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)% s9 j% W" U- C: Z5 x
        at java.awt.EventQueue.access$000(Unknown Source)8 o, z$ b# |* E9 v8 E5 V1 o
        at java.awt.EventQueue$1.run(Unknown Source); f0 b0 ~2 y$ Y) a3 G7 F
        at java.awt.EventQueue$1.run(Unknown Source)
( L3 f! a$ i% a9 |  |  V* N9 I        at java.security.AccessController.doPrivileged(Native Method)! ~, m! S% u5 l& {3 _$ S% |, |
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)/ \& Z" O) L9 u6 j$ \
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
# N- a7 s7 k# S& C9 L9 |8 V" e        at java.awt.EventQueue$2.run(Unknown Source)" H) Q6 }9 s2 Z- _8 \$ G) |0 ^( Z
        at java.awt.EventQueue$2.run(Unknown Source)
& R- k/ H- ?; O7 W        at java.security.AccessController.doPrivileged(Native Method)
: t0 @6 S- {& v: e        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
5 P. \- F8 b0 U+ x9 s; c8 Y        at java.awt.EventQueue.dispatchEvent(Unknown Source)
$ i4 d4 D* \* E        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)& q! E& J0 M& w
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source): Y( |: U. m2 V- x) k
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
* V0 P; d3 Z: F) A        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)) l" @4 L) y/ e6 O, I
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)( ^( t, N) s) v( ]9 _: l/ G7 p0 \& m
        at java.awt.EventDispatchThread.run(Unknown Source)
8 T0 O+ r+ p: }. Z% o$ {0 \" {/ ~Caused by: java.lang.NullPointerException
) E4 `2 W' |, I        at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)
9 c9 w* P7 [3 l7 M! U7 A( d        at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)
$ t" H; \+ a3 B4 A0 C, T        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)
8 k: Q, O2 h; P% t  O+ x  _) \        ... 49 more
+ N/ y7 k4 G9 A# C4 k: g0 I
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-12-20 21:31 , Processed in 0.014621 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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