设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6790|回复: 0

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

[复制链接]
发表于 2012-12-1 12:42:02 | 显示全部楼层 |阅读模式
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点7 x" q8 R* |$ z0 I
ERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays! u5 x+ D% Z# G9 |+ y5 m. G% g
repast.simphony.visualization.engine.DisplayCreationException: Error while creating display.
& _8 o1 L! Y2 ?+ H; l! M        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)
! C4 P: s, J9 @0 K' A) |        at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)
4 M1 ^$ c2 d' M3 L- \/ b        at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90); D& y2 R+ g- g+ S6 ^) R( y6 b3 J
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)1 T1 {$ r1 w3 m4 ^7 J
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)8 @- U* |" c6 L3 ^8 k8 \
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)" _0 ^$ H0 r" v- ~! j
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
& l' @  [8 b  u. g        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)) J! e- B. d1 f( s* z9 c
        at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)+ S( ~# E7 O0 o) T$ H. E
        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)
  u7 U8 F# g& u5 w2 d. y0 q        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)
/ z! C; k% i. ^, M' R1 O( s. R        at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)' J7 V7 X) `$ l/ Y* y
        at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)3 V6 M7 @0 o; X+ Q+ {
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
0 o" F* e1 I  ?) {        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)% [9 b( o6 F+ m' ?8 z
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
# v! n1 T$ {8 m" z" R% D1 V        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
+ ?7 V& t: X; O  ^: l        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)/ f- v/ |8 b) `1 X
        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source); s# f" X* Z# y0 o3 B! J2 V$ a
        at java.awt.Component.processMouseEvent(Unknown Source)- ^& r" N! n+ J  _, ~+ z$ I6 W& z1 A
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
+ Z- c4 P4 O( D8 W2 G0 V8 o( ?1 N        at java.awt.Component.processEvent(Unknown Source)" U4 b+ J; R" N9 l9 `$ _3 _% e
        at java.awt.Container.processEvent(Unknown Source)
" `/ S$ F, `! K5 r        at java.awt.Component.dispatchEventImpl(Unknown Source)
: h5 j8 s* ]/ C" d! W9 k        at java.awt.Container.dispatchEventImpl(Unknown Source)( D6 N; a5 ^" c% |8 A8 A1 B! H5 {% Z
        at java.awt.Component.dispatchEvent(Unknown Source)
6 A* S4 L$ l- p! R' {' [        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source). G5 C* N4 h0 y" n
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
0 y0 P4 [3 r$ N& q- b) N        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source). Z$ D- e: N! j+ `2 y+ K
        at java.awt.Container.dispatchEventImpl(Unknown Source)
; b9 q6 r- P" m9 A4 \9 z" {" |  l        at java.awt.Window.dispatchEventImpl(Unknown Source)) ^! E8 a) G7 O; A4 w7 P3 Z
        at java.awt.Component.dispatchEvent(Unknown Source)! f+ H- _' v# M) h) u9 w
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
% j+ e( l0 ^' \2 ~! K  f        at java.awt.EventQueue.access$000(Unknown Source)
$ |, j( [9 h6 T( a0 _        at java.awt.EventQueue$1.run(Unknown Source)* k6 V9 L( J6 \' \; k
        at java.awt.EventQueue$1.run(Unknown Source)4 D8 u+ b) ?0 h0 y$ @9 K
        at java.security.AccessController.doPrivileged(Native Method)
' D! Z$ |0 @! n: E8 |: a        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)7 \, q& f7 A0 L* ~5 F8 `
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
2 _, Z, @" c- p0 g3 L# f. D- w        at java.awt.EventQueue$2.run(Unknown Source)& K: a3 }) w1 Z3 M) P- i
        at java.awt.EventQueue$2.run(Unknown Source)' G! J" d3 \" K; V. s/ Q
        at java.security.AccessController.doPrivileged(Native Method)
/ A8 O* b4 e$ P3 f# d8 b) b/ t; |        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)! {7 ]- U. S8 E- y5 ~9 a2 g
        at java.awt.EventQueue.dispatchEvent(Unknown Source)& X* P2 m9 l5 R5 }" g+ q5 y
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)9 M# v$ a: S6 B3 v/ x4 y( J
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
7 l4 _0 J$ @( g& j        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
1 V  Y* P0 B& i9 A' {3 Q% R        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
& Y: c1 S7 [8 N7 U7 \# P        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)' O. S: H5 Z: ^. Q
        at java.awt.EventDispatchThread.run(Unknown Source)/ P6 B/ e& v4 G+ E
Caused by: java.lang.NullPointerException
+ |) y2 _& x* S4 \6 {$ h" A& X        at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)
% F2 E; {; ^4 q; \' ]$ n        at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)
# B) [) \# T- |; n        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)
2 V" Q6 n$ i! j1 I3 @) c1 c        ... 49 more0 }7 O) V1 I" w5 y+ u6 ]; }3 b6 y
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-12-21 09:46 , Processed in 0.015088 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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