设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7506|回复: 0

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

[复制链接]
发表于 2012-12-1 12:42:02 | 显示全部楼层 |阅读模式
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点
" F8 W; k) u: w, R+ J$ I+ C4 ?  ~ERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays
2 o1 Z. S- r# z8 I  I; t9 Zrepast.simphony.visualization.engine.DisplayCreationException: Error while creating display.* d8 A0 d  m8 D% _3 f% f; B3 T# O
        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)- I: K- T& F& B5 [: Y" A  I
        at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)
; A7 Z2 d6 h1 N  W        at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)
# _, U# B0 {! D" H) m% j        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)
) |' ~! s) G$ a; ^* O9 c- M2 G        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
/ x5 C" s) |' ^        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)4 \% P# {3 e& Y1 |
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)3 l$ I0 F7 k' D, ?  C( T0 W
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
3 D7 @' ~+ h) y( C0 }, D        at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)
8 p; F7 t+ l& ?7 H  G" U+ W/ M        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)# r5 P: x( J2 J5 p6 g
        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376), L9 B4 I0 g0 f+ V
        at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)0 S( @" f9 U4 B  h# G. o: w
        at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)% ]. N7 F8 D. y# l% V$ g. a1 b, o# ^
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
9 z& ~4 Z7 `7 z5 O4 Q1 O        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
& ^5 ]- ^- c9 v6 u1 j: N        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)' b  ~0 i. U/ H/ K( H
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
" t8 e: O8 b) `* z. E# k. @+ K1 R        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
$ X4 l! T4 v1 {4 w        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
: d# j# R* |" W- v. d3 ]* g; a        at java.awt.Component.processMouseEvent(Unknown Source)
2 [* e0 P* I4 J) D' L8 F  u: ^( T- y        at javax.swing.JComponent.processMouseEvent(Unknown Source), N' s  y% d1 k( e- N) `7 Z7 A
        at java.awt.Component.processEvent(Unknown Source)
; `$ f, W, `2 V& v- I        at java.awt.Container.processEvent(Unknown Source)
& }7 h3 j9 M2 z1 C/ I* t        at java.awt.Component.dispatchEventImpl(Unknown Source)& [/ R* u) l' v+ x
        at java.awt.Container.dispatchEventImpl(Unknown Source)
9 C9 ]6 b; Y+ @4 `4 u) z$ [        at java.awt.Component.dispatchEvent(Unknown Source)
; {, D+ {. p8 L- e2 ]        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)5 A3 ]1 r) _% D) p
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)5 K6 s( @% V! _: ^, a
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)+ U7 l3 {; G0 M. j. A+ w
        at java.awt.Container.dispatchEventImpl(Unknown Source)
0 F& `- \% [* n; x2 D( b; F        at java.awt.Window.dispatchEventImpl(Unknown Source)
0 ?+ v+ p- R0 J8 h        at java.awt.Component.dispatchEvent(Unknown Source)$ a1 I* w* B" S
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
$ O1 r1 ~" v9 t! r- f/ g+ g% ^        at java.awt.EventQueue.access$000(Unknown Source)
5 I" V% e6 S8 u3 t        at java.awt.EventQueue$1.run(Unknown Source)2 u9 e; h7 b9 _; Q4 r5 _
        at java.awt.EventQueue$1.run(Unknown Source)3 w/ a& e  t7 I' Q2 b
        at java.security.AccessController.doPrivileged(Native Method)
( K- x# f# j: e- g* [4 |        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)/ n5 E% ?$ ?( w* o
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
: I/ R5 o, F1 s& A+ f' b* H9 U; |6 p        at java.awt.EventQueue$2.run(Unknown Source)# u- G1 S, C' [& v
        at java.awt.EventQueue$2.run(Unknown Source)
; \8 z9 q1 l: t        at java.security.AccessController.doPrivileged(Native Method)6 j- t% |" q4 g- A/ p* j' Q
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source): i' h- P' p% H. M9 p5 L
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
7 J3 o$ w  N; g. s+ |; ]: f. K        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
/ G8 c0 M. }6 V        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
( }/ F+ D8 T- k. S        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)2 i' g6 N, b4 D, s2 P. N
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)1 a# Z; H" _( n0 U, u# `7 c
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
  K+ ?8 V; d( R7 S# O8 w        at java.awt.EventDispatchThread.run(Unknown Source)/ Z9 W; S) H0 D8 T. Y3 m; A
Caused by: java.lang.NullPointerException
9 T. B+ o) F; l9 v5 j        at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)
/ |0 j+ S" O+ W) q6 F! B        at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)( }- k7 R3 B* a+ q1 |( o. C+ B
        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)
" m1 S$ r$ B  y3 `0 x1 `' u7 C        ... 49 more
1 i- Q, q" u9 _
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-20 02:17 , Processed in 0.015653 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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