设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7508|回复: 0

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

[复制链接]
发表于 2012-12-1 12:42:02 | 显示全部楼层 |阅读模式
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点
; ~0 G2 E: B( s7 _1 [ERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays
6 Y) I5 s) R. C9 ~7 q3 a+ Krepast.simphony.visualization.engine.DisplayCreationException: Error while creating display.( C$ c) N; d6 E. u
        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)% p6 Q2 F$ X6 A+ w8 I! d4 D" j
        at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)
& f8 j. K+ k) R8 C9 O        at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)
* L& a" y, o% z  u& u        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)
+ ^+ `0 x9 M+ Y  J3 R        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
5 K/ T# C" [& ?) n! g3 l/ `; W        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)& g# T/ r; n/ _! J2 n
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
+ ]( w( y% `# b$ I4 k4 j        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
  U/ |( S' ~3 k8 d1 F        at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)' v4 T$ v" ]  y; _% O
        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)
: Y1 q* o6 u0 _8 p1 r5 U, I        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)
$ w( t. W) h* o" }6 Y2 _, p, N8 b        at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)$ V* ]0 b6 W7 q+ j
        at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)
8 v+ _- p, r# R. Y  j        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)4 d* g2 L$ i: K) U# E+ o/ ^% K+ E1 _
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
2 ]2 Q, Z/ G3 ?5 g) t        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
. x% F, [  b, B" Y3 Z: y: `        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)7 f, w4 {2 h9 c- k$ u% E
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
# [. V. q( _6 q$ @; D        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)! l6 e3 E; e3 x4 t
        at java.awt.Component.processMouseEvent(Unknown Source)$ C# k& f8 r7 B2 @3 G
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
- ]% E) m9 W3 o        at java.awt.Component.processEvent(Unknown Source)
) d. C: g6 [' J+ m& c        at java.awt.Container.processEvent(Unknown Source)
' k) @( ]6 ?2 o        at java.awt.Component.dispatchEventImpl(Unknown Source)1 i7 j0 H9 S: M9 O' [
        at java.awt.Container.dispatchEventImpl(Unknown Source)
& q  }' n1 X; d6 Q2 T        at java.awt.Component.dispatchEvent(Unknown Source)
2 `" P" j% @2 b7 {        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
3 i' }2 U6 C7 ]$ ~+ |0 S! n7 q        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)' D2 C  ^( d( \5 o+ e" B, o
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)% v) H! H/ I+ e3 z) |
        at java.awt.Container.dispatchEventImpl(Unknown Source)6 j2 v! l. Z% @( a- _4 m
        at java.awt.Window.dispatchEventImpl(Unknown Source)6 L4 H! y# [3 w/ G. A8 m
        at java.awt.Component.dispatchEvent(Unknown Source)
0 @" `* Q0 A# ^8 W        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
" l# \! Y6 ?3 m$ B        at java.awt.EventQueue.access$000(Unknown Source)
% ]3 [3 A, F2 d- @% k3 m        at java.awt.EventQueue$1.run(Unknown Source)& N2 P7 T6 ?* O/ {2 p
        at java.awt.EventQueue$1.run(Unknown Source)) \3 r" v2 ]/ a  y
        at java.security.AccessController.doPrivileged(Native Method)6 \" }/ Q  ~" v2 L& \" @  L( D
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)  \; {- i) y0 G, i' K# R
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)3 o( I5 I; R$ R: G( `0 U( \' j! W  ~
        at java.awt.EventQueue$2.run(Unknown Source)
0 F/ D5 V- c8 R# o; _        at java.awt.EventQueue$2.run(Unknown Source)* o/ u4 t. K% b/ P5 M- A& K
        at java.security.AccessController.doPrivileged(Native Method)
1 D0 b; S0 i( M# X' d  d8 w        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
5 `) [0 d: [( C" T8 S8 i        at java.awt.EventQueue.dispatchEvent(Unknown Source)
; h4 @$ y" }8 J: ], S5 T  M! \        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)6 Y( ]6 b( G& |! i6 \4 m3 U
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)+ m. Z) J+ t% n) j+ L/ @. c- H& B
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)6 Y5 \, [3 q. c$ T% y
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)* ~5 d" M9 X3 F+ }" D# i  ?1 a
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
* J  X6 z% F: G# d/ \        at java.awt.EventDispatchThread.run(Unknown Source)
6 i& \1 y: o* N0 B' c! }0 z+ T/ RCaused by: java.lang.NullPointerException
* [' ]. a* M. q% m4 L        at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)
% g2 ~4 j! H9 K6 f9 i# j        at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)) j: [5 Z- D% E' N) H0 @& w( f
        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)
6 G2 K1 n: `7 b, f, @  y        ... 49 more
9 A) D/ o# n# v9 e8 F  x* l
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-20 04:13 , Processed in 0.015809 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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