设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6415|回复: 0

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

[复制链接]
发表于 2012-12-1 12:42:02 | 显示全部楼层 |阅读模式
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点% S- n  j1 }; u! G3 x8 b: B& h
ERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays
; W, R( M: f$ B! z6 `9 ^# c# Zrepast.simphony.visualization.engine.DisplayCreationException: Error while creating display.
: t  O3 @4 F! ~! a* ?6 |+ L        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)
6 C3 ^% V( i6 L* z6 _- u        at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)' O$ f+ L- a: H3 @. A. g
        at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)( v) B1 V8 r) t! Y- F
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)+ Z  f4 X% K( y' e0 O
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
' ?. J( \5 b& p( }/ p# Z( M        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)
# D! r/ D( l! _  y        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)- P2 _8 O" J$ x
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)3 P- h. |! K. P) J8 b
        at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)* J  F; o9 L$ m/ g8 P* g; p- @
        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)
( k) y) E! J  n5 R/ g        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)( }$ K. H) e3 E( v9 f1 ~) T. P4 E! |
        at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)
% }9 O/ {6 \% |5 u5 A        at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)8 d/ e  U+ Q/ w+ j' M5 N! P
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
$ \. }2 [0 `7 x; |) ]3 s& @! _# ?% k" {        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
; j- Z' E9 f+ Q6 i& ^        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)) ~$ D5 [4 Z. [: i
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)- z3 ?8 F, ]' ?5 l9 j$ g* v
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)* g* S7 X- N4 S. `6 X- s
        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
. v$ Y0 g& g8 m! x: p$ w        at java.awt.Component.processMouseEvent(Unknown Source)5 u4 r5 q! N4 j% P
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
+ w1 ]+ C% M1 M        at java.awt.Component.processEvent(Unknown Source)2 S+ h; }9 q4 e( Q2 `; G
        at java.awt.Container.processEvent(Unknown Source)
8 R$ B. K; T( m- l7 Y0 ^5 E, m; ^* `        at java.awt.Component.dispatchEventImpl(Unknown Source)
" o7 f8 L6 G# ?- {7 C        at java.awt.Container.dispatchEventImpl(Unknown Source)3 o  n" W. }" \% x8 ~4 Z
        at java.awt.Component.dispatchEvent(Unknown Source)
4 n9 z* r- F: E4 l, k" u: O  T        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source), `2 D6 I3 i& `2 e3 R& k
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
4 g1 u! b' f$ |3 r1 E0 D        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)- O* W! r, _3 D( [) F( a5 H7 i
        at java.awt.Container.dispatchEventImpl(Unknown Source)
! S$ Q, Q) X9 r% |        at java.awt.Window.dispatchEventImpl(Unknown Source)
5 p' H" L$ P# D+ h: i* P5 n; |        at java.awt.Component.dispatchEvent(Unknown Source)! w6 \' k2 t# M4 c
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)' s" ^8 O0 b1 ~) d  n. a* Z
        at java.awt.EventQueue.access$000(Unknown Source); b) @0 ~& I* T8 P( s; ]. U) A
        at java.awt.EventQueue$1.run(Unknown Source)* ^0 s, U- O1 |3 Y. \# Q9 O
        at java.awt.EventQueue$1.run(Unknown Source)! x0 P, G5 G) |. @
        at java.security.AccessController.doPrivileged(Native Method)8 S8 a6 i' f6 P" D/ V) [
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
3 |' E) _) s. A" \0 C; E        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)) X; h- |# U* _0 |- G/ v
        at java.awt.EventQueue$2.run(Unknown Source)9 k! K3 O0 o, J5 ?
        at java.awt.EventQueue$2.run(Unknown Source)# {0 ~+ x* B1 f" L- A. J; D3 F
        at java.security.AccessController.doPrivileged(Native Method)
' r% u) }5 t+ U1 o+ O/ C- Z        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
( r, X# h$ @. `* r        at java.awt.EventQueue.dispatchEvent(Unknown Source)) {( I- f1 s0 k( }; j
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source), V7 w8 J: r( f7 L8 @
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)7 B6 J$ _3 M( ^- F2 J4 G
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
0 o$ P2 Y9 R$ c5 G5 L2 u        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)' n$ Q4 ~  s: ^% d: t1 s! B# x
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)! N% `0 M% l' L7 c
        at java.awt.EventDispatchThread.run(Unknown Source)
% z( U( B1 \& g. x! D( S, t+ xCaused by: java.lang.NullPointerException- i* w9 g8 J7 G0 o' Q
        at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)0 p2 @' {( N; i/ i4 W' {  `! c( I
        at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)
0 R' f8 M* P; i& G4 j5 C3 g        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)2 c- s/ l6 U; ]5 |7 a
        ... 49 more
! K( L( J" g8 O) ?) g! e
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-9-14 11:09 , Processed in 0.013543 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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