设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7377|回复: 0

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

[复制链接]
发表于 2012-12-1 12:42:02 | 显示全部楼层 |阅读模式
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点
$ N- `+ }, e" Y$ N  P: kERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays( A% [# m7 z* D; k, \/ `
repast.simphony.visualization.engine.DisplayCreationException: Error while creating display.# w3 {$ ?: d) G7 F
        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)  P! _0 w  H4 t/ D9 \* q
        at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44); s% S; |) F, M4 D: x# I5 Q
        at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)/ k5 n" p' P1 j+ u% W
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)
6 M# k' H7 K; ^8 m. H" T        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
2 {- \; O  ~) x. z$ ]        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)
" ~8 Y7 f0 w& e2 x! i( F% f) [        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)1 d+ Q, D- m6 N
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)6 }( t1 {1 K( ?
        at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)9 {- B+ w( `: z* z- t, T4 d
        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)9 R& T& K( g7 Q* T; P- \# ?
        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)
! M9 G' M3 B, l4 p/ z8 M/ ?        at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159), G3 `7 E' D5 |0 o2 A
        at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)
+ o0 t3 z+ ]% ^  C: O) @/ ?. R        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)& z: t2 r4 q& M6 \
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
1 Q% a$ }6 ]# T: x        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)2 r) \0 z: ?4 T' ?( S# {, w' F; F  ?
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
( x4 T8 `" A( ~" G7 k; @9 W  L" o  ]        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
7 S4 {& F7 M6 r, g1 O0 V        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
4 S$ J7 M' t- g! V6 C. A        at java.awt.Component.processMouseEvent(Unknown Source)
( N4 \) R+ _" q  f' V+ L        at javax.swing.JComponent.processMouseEvent(Unknown Source)4 ~2 q, c" _( e9 Y' B7 W" S
        at java.awt.Component.processEvent(Unknown Source)2 h$ M) ?  S* R* P' J
        at java.awt.Container.processEvent(Unknown Source)  b: g( z. X! K
        at java.awt.Component.dispatchEventImpl(Unknown Source)
9 e, E: M+ B. N2 S% x' i        at java.awt.Container.dispatchEventImpl(Unknown Source)" C/ P4 o1 q5 p
        at java.awt.Component.dispatchEvent(Unknown Source)5 q" f. `5 o; l( M( |
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)( `" k1 V; q& y# m& f, b
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)# A; {  v, _+ ]4 {8 G" @+ @! G
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
9 c( d: `# p5 |        at java.awt.Container.dispatchEventImpl(Unknown Source)  ^: F' [) V$ G) e5 I8 Q& a
        at java.awt.Window.dispatchEventImpl(Unknown Source)& G( q* c) J! h* d- {+ |2 u
        at java.awt.Component.dispatchEvent(Unknown Source)6 N% \0 p6 ?' \8 Y9 a' [
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
+ S& q; G9 Q, B/ ?" v        at java.awt.EventQueue.access$000(Unknown Source)
- H1 U! h, j, q% L" H        at java.awt.EventQueue$1.run(Unknown Source)% F4 E1 S+ x6 g* Z# s& E7 `* K
        at java.awt.EventQueue$1.run(Unknown Source)- V3 e; x2 e! C: g4 o9 @5 x% ~
        at java.security.AccessController.doPrivileged(Native Method)
( j% c- B! e5 z: U" j        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
% C$ k# I) l$ C' U7 k9 O) d        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
! D3 u6 n" m. g+ c4 B9 s        at java.awt.EventQueue$2.run(Unknown Source)
( B# q$ B: o( s& v; {        at java.awt.EventQueue$2.run(Unknown Source)
, D& i) q" W. E6 r, k3 N/ w7 ~% A        at java.security.AccessController.doPrivileged(Native Method)
6 {" d* y0 A0 R% l# U3 V. H        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
4 Z) C2 }% d, _7 }% D$ w        at java.awt.EventQueue.dispatchEvent(Unknown Source)
$ Z' T. V  i4 a8 x9 c# [        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)  v2 }; H; ~  k6 \4 ^/ x  \$ P
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source): L. G. L/ c- w+ p* q7 d
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
% f* r+ a3 ~# N; ]        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
! z$ j# i- y/ i        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)6 M2 G* h/ a+ ]& E* k  N! ]
        at java.awt.EventDispatchThread.run(Unknown Source)
8 z; e+ P8 n0 @/ o' aCaused by: java.lang.NullPointerException4 E: l. \6 S( K
        at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)
, H4 C6 L  Y$ j) A1 `. e: L; w+ h  Z) \        at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)  f0 r: I& m# v* j1 E- O4 L
        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)
0 U3 u" T5 m, I, h" S3 y1 v2 u        ... 49 more
: ~: C' {4 P8 G5 Q! w3 y# R
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-5-5 20:34 , Processed in 0.016282 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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