设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4919|回复: 0

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

[复制链接]
发表于 2012-12-1 12:42:02 | 显示全部楼层 |阅读模式
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点7 x$ n0 l9 P) g" S# [
ERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays
2 h; U2 Y9 \% o1 i+ p8 k  ~1 xrepast.simphony.visualization.engine.DisplayCreationException: Error while creating display.9 c2 F$ F6 r/ T4 U) ?
        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)
5 \9 R) Z) l% j5 G0 E        at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)" G9 l# B+ b, I( ^% s2 s5 h) w
        at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)
9 @1 o" f; X! C: V* i: t% m        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)
5 E7 I( i& P! }; `( g. \        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)2 y1 w, U+ [3 ^' F3 i& M
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)' }: w" }- O- d0 _8 i( [. E' y9 T
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)# |" z: p( n5 c9 T
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
0 j, c9 O2 |9 \8 }        at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)( Z3 s) L- g" _" P9 H8 A
        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)
/ q" G- g+ h! B! i* ~        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)
( _5 g7 h0 k( t3 F: t        at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)
3 L/ E  n" d7 ]  E1 s        at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)8 b: y1 Q; S% U4 X+ X$ ?8 ?
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)& |/ ]% e, q  {; H; _8 Z( y7 V7 p
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)( p; L0 w) J  W$ p
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)! m8 k( O- j& c6 _6 t4 D+ m1 `- B
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
8 [7 f+ d% B1 E% D        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)3 y; J& G& e7 K- L& w' j
        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
- o; @9 m4 \% }7 i        at java.awt.Component.processMouseEvent(Unknown Source)
% |5 S1 f; A; ~0 c        at javax.swing.JComponent.processMouseEvent(Unknown Source)8 x' r' o+ @# ~7 P+ x: @
        at java.awt.Component.processEvent(Unknown Source)
/ e/ V6 t# A  [& D        at java.awt.Container.processEvent(Unknown Source)  k# \9 g5 _0 W; u% G7 n5 P
        at java.awt.Component.dispatchEventImpl(Unknown Source)
) ^7 C4 Z9 T9 B# A5 k  \        at java.awt.Container.dispatchEventImpl(Unknown Source)
, p  P% ]. m' b3 ^& Z  E' W        at java.awt.Component.dispatchEvent(Unknown Source)
4 ~: t, l5 R5 k( _* y3 L        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
4 c0 W* F' g; D* i; b1 \$ u7 r        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)3 L; ?. r+ Y; X! d- Q
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)( H/ t4 b! ^# `( v9 _7 E/ n
        at java.awt.Container.dispatchEventImpl(Unknown Source)- {+ A7 r# R! g6 V
        at java.awt.Window.dispatchEventImpl(Unknown Source)
0 F; Y7 r" w' n, f) s8 S* J        at java.awt.Component.dispatchEvent(Unknown Source)
7 `( B! G3 h  i# W- N6 E        at java.awt.EventQueue.dispatchEventImpl(Unknown Source), q- M2 M9 T2 P6 \' B: ]5 b
        at java.awt.EventQueue.access$000(Unknown Source)4 b/ s5 _$ a$ P7 m- x9 _( x" h
        at java.awt.EventQueue$1.run(Unknown Source)* a2 j* l# V# H6 k5 d2 Y
        at java.awt.EventQueue$1.run(Unknown Source)
# U7 H9 z+ i: Y- u$ [        at java.security.AccessController.doPrivileged(Native Method)$ A) ?; M. D# e' Y( e
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
' j; X3 {4 S. n# t  \4 @        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)- S) f; v. Z) C6 |: j" v4 p
        at java.awt.EventQueue$2.run(Unknown Source)! o4 k9 ^5 X# P, W: A
        at java.awt.EventQueue$2.run(Unknown Source)
# v$ {3 h6 X6 x        at java.security.AccessController.doPrivileged(Native Method)
8 Z3 B9 N8 H% l- m' `8 a        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
' x2 s" S8 X5 Y4 _' T4 ?. v& `        at java.awt.EventQueue.dispatchEvent(Unknown Source)  o6 ^1 \+ [6 r3 o
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
9 A6 d+ v* j- U1 v. t        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)8 y& P% t) n- X' v% T
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
! k. R) }% D* c/ {        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
- h1 M( {# y7 f! }/ V6 n# `        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
. i3 x) z2 P) ~1 I% j        at java.awt.EventDispatchThread.run(Unknown Source)5 S1 b# P5 i2 A# L+ l) c7 v
Caused by: java.lang.NullPointerException# ^) X# z6 g/ h/ f6 V% k( @, k
        at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)
$ T5 i/ N; w* ?3 f+ S% _6 T        at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)0 c6 Q0 ?. Z( g; q. z% |
        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)8 i) p& D6 ]! V/ {4 |
        ... 49 more! Z  D1 M" ^- a
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-6-16 04:01 , Processed in 0.013637 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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