设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5863|回复: 0

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

[复制链接]
发表于 2012-12-1 12:42:02 | 显示全部楼层 |阅读模式
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点: U, x9 N" _9 t* M7 a/ k$ w
ERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays
$ Y8 l  k  L- N* P7 Zrepast.simphony.visualization.engine.DisplayCreationException: Error while creating display.
! Y, O( r7 J( m$ l- |0 ~        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)
" I7 m& @! t! r$ ?$ T        at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)# r8 A9 [/ l$ M) y/ Y8 P
        at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)
9 m+ N, B3 _& x3 L# Q& I6 {        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207); W+ k/ a+ S1 c) f8 j# _
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)+ M9 S4 {; C1 a# |, [
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)
* m8 x" y- e! j$ k$ P0 X/ n  @$ v1 {        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
- X( Z6 \, Y2 Y) H9 }        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)2 H( G, _) o8 B
        at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)
- o. z+ x: ?( m2 E% j' z        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)
$ Z$ ~. c! @) U4 t" N+ u        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)" D/ D  _( g# z
        at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)2 I6 c) G2 b3 t& ^* f4 m# a
        at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)8 t  F6 b+ N* x' y- n7 |
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source). D2 f/ O* x. b" U& z
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)! _0 s+ A' U4 v1 d2 t7 _% X6 j
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)2 `% I+ |/ z) q0 k: P% L
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
6 F! _; Q5 S5 K0 g, x4 H: Z) {        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
' u9 E" r  g5 X' d% x6 ^; `5 T        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)- k0 B! d1 e5 C9 D/ P9 m; P
        at java.awt.Component.processMouseEvent(Unknown Source)! c2 B. N, R$ n3 A$ |3 \# J
        at javax.swing.JComponent.processMouseEvent(Unknown Source)( p: R" W5 Y6 d( E1 G
        at java.awt.Component.processEvent(Unknown Source)  B! C3 s2 O. e! ^; b+ X% Q# j! _
        at java.awt.Container.processEvent(Unknown Source)
' n, ^8 |' S, k6 a# R        at java.awt.Component.dispatchEventImpl(Unknown Source)
3 q+ o+ e+ U- r/ B/ H        at java.awt.Container.dispatchEventImpl(Unknown Source)7 A0 M$ w/ ]: P6 m/ E8 C& g
        at java.awt.Component.dispatchEvent(Unknown Source)( n8 I9 z& L" G3 b- M* D
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)( W4 M, v3 E% r( w0 F5 J* W# H
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
# D6 \4 P; }& U) s- S        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
& q% j, {% n' y" _# s* A" s0 X6 C        at java.awt.Container.dispatchEventImpl(Unknown Source)
( C# z/ @7 F: E' W$ q# L        at java.awt.Window.dispatchEventImpl(Unknown Source)( p: q) Y" r' z7 ]. T7 X8 R) [
        at java.awt.Component.dispatchEvent(Unknown Source)
, l/ J5 y3 D6 \1 [        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
+ A* k) i3 x# Y  B; P8 `- @        at java.awt.EventQueue.access$000(Unknown Source)
  p7 N! N$ @% X+ o5 f) u& F        at java.awt.EventQueue$1.run(Unknown Source)) M$ f4 R1 C: N, {+ N8 q3 r6 S
        at java.awt.EventQueue$1.run(Unknown Source)6 X% Z+ n% k" `) f
        at java.security.AccessController.doPrivileged(Native Method)) ^" l! M# r7 p3 q/ \( X& i
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)* B0 |! d/ R7 m# l# W3 Q+ i
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
% `2 P2 j' l0 H, V5 `% M* j2 G        at java.awt.EventQueue$2.run(Unknown Source)
% ~  h2 K9 j% e. X, t9 M        at java.awt.EventQueue$2.run(Unknown Source)$ M3 H1 U0 F) w0 N" i
        at java.security.AccessController.doPrivileged(Native Method)$ c; D, m/ ^0 X) c5 L6 ^& [# W- j
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
- Y  h$ x8 y/ z% q" D9 Z& U        at java.awt.EventQueue.dispatchEvent(Unknown Source)
8 A% S4 r" r/ d  m  N4 h* ^- }, b1 p        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
( e- ?$ [, n: F# w        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)" v8 J8 m, U4 n6 I
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
* a' @* d" F5 @. h# ^        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
) e' i; t# U( k& B. k* J' G0 d        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)3 X, i* V3 s4 F1 ?0 f
        at java.awt.EventDispatchThread.run(Unknown Source)4 ]# R4 s/ i' B) a7 T! f+ @
Caused by: java.lang.NullPointerException9 r, ~. c0 d, d( ]
        at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)8 y$ e+ o* S5 ~8 n
        at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)( G3 H. W( U) W! u
        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)
& a" r& v# ]4 W- @, r. b* Y# D        ... 49 more
2 `* `0 Q; o- P. m4 l' q; D
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-4-3 15:53 , Processed in 0.018946 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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