设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6359|回复: 0

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

[复制链接]
发表于 2012-12-1 12:42:02 | 显示全部楼层 |阅读模式
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点5 s, N+ v' A1 |9 J9 ?
ERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays
/ \3 I# s/ c/ r. p9 U. Crepast.simphony.visualization.engine.DisplayCreationException: Error while creating display.
7 D+ r3 ~) p" l) G( @9 f1 t9 c/ [        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)
) q; q  V: A+ ~" C2 u) K6 X/ O        at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)7 B+ H  z$ \! I+ p. R1 P& G$ j
        at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)8 w/ |7 P* \" }
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)8 P7 C! y* S* I) Y  k8 @* f
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
! c( B) B+ r6 w; z$ `/ \8 ~        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287): U3 g! ~0 _5 J% g1 T
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)9 r# w) S8 v" f/ m3 ]6 ^
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
' K( N4 \2 B) @- w1 J  E0 Z        at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)
* n* ]9 F! z+ s; r+ k( g        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)
2 a. V, i3 z7 w+ C4 K        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376). B  M# H1 l; d8 B' y+ P) \
        at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)' f7 b9 @) m; N" z
        at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)7 r  j# V$ d( r: A* o% \
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)5 q& h% h& _5 P1 ?* l* a: |
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source). M' X9 E: {- B# W. i6 w3 a$ S
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
: c% Q' g3 @4 d. N4 W        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
9 _: Q5 {) E! s! {        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
% ~7 t) M# A$ {: I        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
; S4 g+ s) L! A! d" C6 `9 I        at java.awt.Component.processMouseEvent(Unknown Source). z8 ?7 |: j- G7 I/ U, f
        at javax.swing.JComponent.processMouseEvent(Unknown Source): h! a( x- M: ~5 z
        at java.awt.Component.processEvent(Unknown Source)) X0 v/ Y9 L' |" |" }
        at java.awt.Container.processEvent(Unknown Source). X. |9 r' j# z3 D, m, k
        at java.awt.Component.dispatchEventImpl(Unknown Source)1 Z6 s) |6 H/ q* K! R1 K
        at java.awt.Container.dispatchEventImpl(Unknown Source); ?1 r4 `  g& C% b# H9 r
        at java.awt.Component.dispatchEvent(Unknown Source)8 ?5 j! R/ z2 E5 e8 W
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)/ L6 d9 Y- ?3 U* ?
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
5 r3 l) S& }& r- K9 k$ F4 ~- r! i        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
  Z3 ~/ O4 u) n; z- k        at java.awt.Container.dispatchEventImpl(Unknown Source)1 `7 C0 i, o# E" u1 G0 @
        at java.awt.Window.dispatchEventImpl(Unknown Source)
& J, M/ m2 v& J: D$ E        at java.awt.Component.dispatchEvent(Unknown Source)) t/ ]( ?; ?2 ]" X( Z! e
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)! f9 E6 j# W8 ~1 q
        at java.awt.EventQueue.access$000(Unknown Source)
. q; R) T& r2 Q. N; U4 a. z8 ]        at java.awt.EventQueue$1.run(Unknown Source)) E0 Y" c: {/ h
        at java.awt.EventQueue$1.run(Unknown Source)
/ `( i# p( a2 g. p$ Q$ q        at java.security.AccessController.doPrivileged(Native Method)
3 V2 e1 Q2 L9 d5 M" i; H        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)! _% h0 o! f# F' E
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
& u% N% w  i# ]" o9 V* y: @( y& ~        at java.awt.EventQueue$2.run(Unknown Source)
- w  ?  V9 T. n# V& Z7 _( m        at java.awt.EventQueue$2.run(Unknown Source)
+ V8 t+ v8 j# x( o" l1 W3 V        at java.security.AccessController.doPrivileged(Native Method)9 j: g7 r9 U% f$ \, T+ E$ L$ }
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source); V/ C6 Q1 g4 s! H
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
& q, o6 n4 Z7 f& V/ s        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
5 B' G. x0 I' f6 _6 g        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)" t1 g( V- Q! w- }0 S0 s: T
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
6 O+ o5 i  D. `1 `/ ~/ k        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
/ W  W$ u5 h8 o& l        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)& m. ?4 ~+ o. T/ p4 V
        at java.awt.EventDispatchThread.run(Unknown Source)! D2 H# ?5 O1 x" f
Caused by: java.lang.NullPointerException
1 W* v% o/ x$ J        at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)2 K( ^- ^  g0 y1 k: M
        at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)
4 S( j/ q2 `1 Q5 D) o5 i9 n! W        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56); A7 J/ w0 H3 f# \8 n
        ... 49 more
3 F2 a3 C1 v/ B  X# S4 M
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-9-7 12:50 , Processed in 3.177207 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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