设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6352|回复: 0

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

[复制链接]
发表于 2012-12-1 12:42:02 | 显示全部楼层 |阅读模式
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点! n7 T$ D$ U: |  @3 t& m9 h
ERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays9 n  \* r0 P1 U8 s
repast.simphony.visualization.engine.DisplayCreationException: Error while creating display.
" [% W  g. r* I* |( W/ w, P2 B        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)
& \2 P  c( }* u( M0 U        at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)
/ \5 U8 {& c, @3 @% q' a( x        at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)
0 S; ?5 J/ H, V. d; G        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)! @  t( x% K" p6 ]. H- ^: r" _
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
  I+ q7 A7 L1 `% F, q) _        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)
$ S  @# k( L8 h# S* F9 j2 a, J( E        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)* I! Q4 A; `( T3 d9 S  d9 n
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)$ i+ t- c6 c% x4 v8 G3 V/ a! d
        at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)2 B: H4 h6 j# D7 Y8 i# [" t
        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)7 L  t2 r( W3 H) X
        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)7 R- h2 e/ @8 W/ M: B# M
        at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)  o6 {+ O( [/ k
        at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)
4 @* {9 j" c5 B8 A& p2 E7 @% o        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
3 R) W; P* i" K' N- o4 I1 v% U" H( N        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
  h$ d7 y; i" C/ z7 e0 S0 U        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
  n9 @( k& D- V) d1 h! v        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
4 u1 ?2 J8 L5 D& F; y        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
6 C; S5 \/ Z* P* C4 \; K2 P- ~        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source). B) `" ]; Y7 Y$ @: Q
        at java.awt.Component.processMouseEvent(Unknown Source)7 _. |! B: s3 T
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
  F0 ]" i5 o) d' y. e- h, w5 l        at java.awt.Component.processEvent(Unknown Source)
  X8 L' K5 N2 v1 I. O+ [- Y        at java.awt.Container.processEvent(Unknown Source)8 @+ b$ n  `( ^
        at java.awt.Component.dispatchEventImpl(Unknown Source)
* w7 H/ y" B. F; q/ @. g        at java.awt.Container.dispatchEventImpl(Unknown Source)& A2 y' g! p. Y& ?
        at java.awt.Component.dispatchEvent(Unknown Source)
6 o9 m8 p2 @/ G* L4 ^! `        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)) m( l; G3 }5 C! y) `0 _
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
% R0 j! E+ {; C+ c" u        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
  i( B! y- T1 O9 x* f" {( w  G        at java.awt.Container.dispatchEventImpl(Unknown Source)1 g- M4 c7 j! G- U9 Y9 y
        at java.awt.Window.dispatchEventImpl(Unknown Source)
1 W0 P( R& G# R+ U: D        at java.awt.Component.dispatchEvent(Unknown Source)
! m) O. {; U3 F+ k        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)4 j, K! o( c( O+ n4 w8 V
        at java.awt.EventQueue.access$000(Unknown Source); S  d  }5 y& B) L* p) F
        at java.awt.EventQueue$1.run(Unknown Source)" J& i6 ~) Z* Q. i, R1 I
        at java.awt.EventQueue$1.run(Unknown Source): ^% e4 s3 h& o, |5 _! k& _& H
        at java.security.AccessController.doPrivileged(Native Method), D8 c3 B+ L/ ^6 b6 J- t/ k
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)4 G. i5 i6 ]) g9 ~8 R! W
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)& r7 M7 Z; @2 \) w! w2 `# K
        at java.awt.EventQueue$2.run(Unknown Source)
% u: x# A3 i5 g; R$ p9 M( N. j        at java.awt.EventQueue$2.run(Unknown Source)
+ d$ ]* S* c# b. V8 {0 V3 ~        at java.security.AccessController.doPrivileged(Native Method): C, U; m; @2 s
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)+ C( I6 H/ z: H0 v- Z8 I
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
) d: h1 @% Y0 k        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
0 V  A: G+ c* F2 I% _        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
4 q4 J+ p& p/ l$ N5 j% U% Z( f        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)& q. ]  R$ n" m! c
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
3 X3 v* L+ N& J8 }        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
' |8 e! N1 N9 @$ E: |/ k! q        at java.awt.EventDispatchThread.run(Unknown Source)% n3 u! y' x2 f! }
Caused by: java.lang.NullPointerException' z, g4 ]9 L1 d/ B* `8 b
        at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)
/ R4 E" s& ~; H1 Z        at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)
! g' w7 N2 T. H# r# H) z, q        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)2 o. F6 W5 J0 A  J' }- Q+ L! E
        ... 49 more
* X  E3 F7 x* k3 m- U
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-9-5 03:26 , Processed in 0.013297 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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