设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7202|回复: 0

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

[复制链接]
发表于 2012-12-1 12:42:02 | 显示全部楼层 |阅读模式
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点; |' d) L. H- x' J1 B; f! c1 Z0 L6 U
ERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays9 b* r) X; Y5 R. f! k( G
repast.simphony.visualization.engine.DisplayCreationException: Error while creating display.! E: l. ~6 W' s8 r# ?
        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)
' m$ B3 j; R, R1 s0 q( H& a; z2 `        at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)
0 M' h% O/ P3 s' @. D  a+ c; Q. j5 `        at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)
& l7 C) g4 F. ]% @+ x        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)0 w  t& {! W3 P: v0 R) b6 m5 ]
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
/ ^! P4 V, N6 h* @% L5 y  o        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)
# \: k' l* m( V7 s2 ?, R        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)6 R$ Q: ]/ v$ y% H
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
* U; }, Y/ o& Y6 }8 R        at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)3 S* U' |8 l/ J& f6 ^2 n0 R, z2 Z+ B
        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)& z/ Q/ {5 ?  a- M* O6 H
        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)0 h0 u3 T/ h' i0 W) A2 z
        at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)( M; v; ~  F) N# W' c# f8 ~
        at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)
/ Z$ ?6 S) d% r% F5 g( f        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)) K2 s; S$ N9 v" D
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
- m5 Z5 A/ B! k6 w        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
6 J' n. P/ Q/ g6 V: `3 }        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
. g  R+ ^% `( _8 u& A' h        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
3 ^. Z# v! `" z# r# G$ K        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
8 W; u" q+ s7 i. c4 D4 C0 b        at java.awt.Component.processMouseEvent(Unknown Source)8 |3 K: }3 n7 R5 w+ w. s. E
        at javax.swing.JComponent.processMouseEvent(Unknown Source)+ Z- e$ z8 [# P' H; H/ S8 N
        at java.awt.Component.processEvent(Unknown Source)& q. B2 O# b7 A( P; x9 b4 ~
        at java.awt.Container.processEvent(Unknown Source): a  W- m) y) M' q
        at java.awt.Component.dispatchEventImpl(Unknown Source), V3 x6 e8 S% q% B" J5 C
        at java.awt.Container.dispatchEventImpl(Unknown Source)9 i$ \0 t! {& t1 d. @' I) ]
        at java.awt.Component.dispatchEvent(Unknown Source)0 x4 Q; {" K9 h+ |6 N
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)* t, P8 k& |: P6 B7 y  E+ _
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
# O& h) X$ J7 R/ I9 q        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
$ b6 O2 t% K" e        at java.awt.Container.dispatchEventImpl(Unknown Source)
& H3 [& a+ S, z! }4 l: \        at java.awt.Window.dispatchEventImpl(Unknown Source)! |0 u) [! u6 z' R+ Y
        at java.awt.Component.dispatchEvent(Unknown Source)! _2 r8 r  ~7 p* [3 k; ^  ?
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
! z, T& C  v0 A; b        at java.awt.EventQueue.access$000(Unknown Source)
  I& F; R- r4 i' v' B        at java.awt.EventQueue$1.run(Unknown Source)! O" w4 r% r$ U  j# H: E. I
        at java.awt.EventQueue$1.run(Unknown Source)7 F- t+ S4 ]/ W2 V* G
        at java.security.AccessController.doPrivileged(Native Method)
3 _3 V! z9 M, [6 V/ u# N        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)4 H* Z) F$ [. L
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
# P4 _( g1 p; o1 E& v# _        at java.awt.EventQueue$2.run(Unknown Source)
, ^, @- D7 L, g$ y  E' x        at java.awt.EventQueue$2.run(Unknown Source)
" |# U$ f5 L9 c& U0 [& w        at java.security.AccessController.doPrivileged(Native Method)
! M) l8 v) s& n! i5 S        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)2 T0 X' E  i" J
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
* C) I" t$ G4 a7 H- R        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
8 T! `% t( ?7 V) O        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
2 T* Q: z: r( @5 g% w        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
9 h* d* m+ H0 e9 `1 A8 \) E* ^/ m        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
- A) \; b- R' R        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)8 J, X; z5 i, d8 a1 g
        at java.awt.EventDispatchThread.run(Unknown Source)
$ w, S6 Y* L9 C6 gCaused by: java.lang.NullPointerException& L. }9 c3 O( m& m  I4 a/ v
        at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)2 `  s& [7 A3 d( ?
        at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)
! r* m8 h( _. U$ F$ W' x        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)6 V( R/ D8 c* C6 G$ a6 K( W
        ... 49 more6 U3 T; n) z1 b6 @- i( S
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-4-3 02:41 , Processed in 0.018307 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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