设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7940|回复: 0

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

[复制链接]
发表于 2012-12-1 12:42:02 | 显示全部楼层 |阅读模式
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点
) q' j6 `& P' v  aERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays% Z) K- ]' E  n1 R6 G1 r
repast.simphony.visualization.engine.DisplayCreationException: Error while creating display.1 ?0 e! \6 }* a6 y- F
        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)
1 d: E- E2 U5 V        at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)
0 ~+ F  G, N- c- E5 g& Y        at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)
, f3 \4 q1 @) k+ K        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)+ J3 c, v$ m: U( A5 Q, a
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
& \. a3 |- B2 G/ d, o# y$ q; M        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)
  a2 q0 r. Q: ]0 u7 `. m5 ?5 K1 V        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
, Y# C2 n9 W* R# ^6 I/ B; ]        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)0 m2 y6 R! `* i- ]
        at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)
/ |) a0 j4 k2 S        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)
6 @0 _: g, D* D' `; D( }% Y        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376): n/ p* ?9 }3 T' c; z
        at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)
9 O# M+ t, `9 t        at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)1 A9 R, R- p) x
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
5 z4 [9 g& ^  g. c; O6 w        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source). }' S% k8 v8 c! V3 w7 n, R: `$ U- ]- `) u
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
2 q. g5 {. a  s" {: q" S3 t: I        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
; M. O8 Y- p) B+ ~# S1 ~        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
6 J5 C8 h$ H# h9 Y2 B2 k        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
+ r) \8 H# c7 s0 G3 x/ L8 B1 C. j        at java.awt.Component.processMouseEvent(Unknown Source)
+ A' ^, t5 r# [/ ^        at javax.swing.JComponent.processMouseEvent(Unknown Source): b; O9 m2 d6 h6 A5 v
        at java.awt.Component.processEvent(Unknown Source)+ D" F, {& t5 _: U
        at java.awt.Container.processEvent(Unknown Source)
3 M2 Z6 _5 N  y% I0 J% A# [1 O        at java.awt.Component.dispatchEventImpl(Unknown Source)
& ]! n9 \/ L/ l$ i8 J+ F' {$ B, r/ \        at java.awt.Container.dispatchEventImpl(Unknown Source)* W; Y/ I8 F  ~# `' ~
        at java.awt.Component.dispatchEvent(Unknown Source)
% O! O7 g6 y# y. _0 u) R; Z        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)& E3 l# M7 b* E
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)* p& ?. Q) f" a+ R8 |$ U
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)0 L, V  H# |  l5 u( L( l
        at java.awt.Container.dispatchEventImpl(Unknown Source)
% g( c1 V4 F$ X% D- N        at java.awt.Window.dispatchEventImpl(Unknown Source). f7 M# F  q$ V$ W5 a) d/ E' V
        at java.awt.Component.dispatchEvent(Unknown Source)
3 X. }" R0 Z% K( T+ X( R        at java.awt.EventQueue.dispatchEventImpl(Unknown Source). M1 E7 z" `9 I& P: t0 U& _
        at java.awt.EventQueue.access$000(Unknown Source)  F1 e4 w( Y1 s7 ]- F
        at java.awt.EventQueue$1.run(Unknown Source)8 B" H" a- j  M: H' S
        at java.awt.EventQueue$1.run(Unknown Source)
/ r# B6 K+ l4 y$ u        at java.security.AccessController.doPrivileged(Native Method)
  B7 r: e. h2 J+ Y' W8 [) P        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source): Z  l7 R, G1 a( |0 X9 ~
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
0 u" I$ U9 R- m4 q9 b  r" j5 F" J/ |! W        at java.awt.EventQueue$2.run(Unknown Source)
" `/ t, S( G3 V3 ?# O+ w        at java.awt.EventQueue$2.run(Unknown Source)
6 `2 L0 q% Q( O- C9 U! Q        at java.security.AccessController.doPrivileged(Native Method)9 T1 n* f/ A8 n/ l1 B" _$ X% u
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)! K8 a1 v2 w" m' @
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
* m" t! l0 C$ Y; [        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)( G# j3 l* b* J
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)" V5 `, t4 F' w* z! f
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)8 ~7 T6 {, k3 H; S
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)" N2 [) T/ d' h& t9 N" g
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source); n- A: ^  L9 M. n% p
        at java.awt.EventDispatchThread.run(Unknown Source)2 z+ r$ U- W" s- a
Caused by: java.lang.NullPointerException* u( v) q6 T) e
        at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)
& t4 A9 r+ h/ E2 M! X; R' r: y0 W: S        at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)+ V* X9 W- }5 c  t: }
        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)$ m# a$ r: G0 n! j% g, N/ c) N, }
        ... 49 more
+ g2 d7 w, j7 G9 a& F
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-9-11 11:30 , Processed in 0.016839 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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