设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6410|回复: 0

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

[复制链接]
发表于 2012-12-1 12:42:02 | 显示全部楼层 |阅读模式
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点; M' I8 c% x- `0 u) C7 o; J
ERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays
9 f* Z8 c$ W( e8 N+ A% Srepast.simphony.visualization.engine.DisplayCreationException: Error while creating display.
$ _3 s" l. c6 F4 l$ @  M0 X" I+ P        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102): F7 r, C0 V0 J( o0 t! O
        at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)' A7 ~1 G2 `( _2 O  p
        at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)
& n% F% t1 V2 ]' n0 K" ]1 d        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)
% P' h2 u+ S; ^; W2 {2 o8 J        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
& H% q; L7 S5 S- N: v3 {9 o        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)
; R; d# U5 c' P0 x/ U  Q8 V5 C3 o        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
- V4 f; r: i. a2 r+ [7 x# ?* q( E        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
0 \# Q  Z6 o  N+ w. v; x+ A$ }        at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)" p( M+ h6 w% I* p, J
        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)1 d; m, G. U7 a0 h% t$ T
        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)
$ R1 e. b* h4 u, f, A" k6 x        at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)
; n0 K! `9 a/ Z6 n        at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)) x- S; P' k* r) ]( }9 v3 K
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
- x, v$ \. H; ~* T( q, I        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
8 d: I; L  }' {% C' o        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
- |7 A0 A* @1 j9 k5 r        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)+ \) n8 B8 k2 ~/ ?7 D) T
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
5 R, z% \" {1 d& T        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)8 R1 s3 v/ T& Z+ ^4 Z
        at java.awt.Component.processMouseEvent(Unknown Source)3 e7 p. P' k  T9 y6 D
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
7 t! W1 [" [& `* q) O' d5 i        at java.awt.Component.processEvent(Unknown Source)
1 p1 {6 E6 W/ H/ J        at java.awt.Container.processEvent(Unknown Source)
5 T: X3 N5 R* Y/ Y/ z        at java.awt.Component.dispatchEventImpl(Unknown Source)
2 @  c/ U% ^; q' D        at java.awt.Container.dispatchEventImpl(Unknown Source)+ k( v  i6 U# H2 j! o
        at java.awt.Component.dispatchEvent(Unknown Source). N+ U( ]5 t3 d. d+ M. r9 u
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source); ~7 F; i0 ?# v5 `# j
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
  ?1 ^$ P  r  J/ d        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)5 g& U5 L; @- X$ z/ z. b% j
        at java.awt.Container.dispatchEventImpl(Unknown Source)
; O8 N' t) D3 ?: {3 a        at java.awt.Window.dispatchEventImpl(Unknown Source)  S: _$ |9 t/ S5 K
        at java.awt.Component.dispatchEvent(Unknown Source)
9 l' l5 `4 j3 ~1 O$ C        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
! _! f, b9 q; h- }; j: o        at java.awt.EventQueue.access$000(Unknown Source)
2 S8 Y0 h: N" y        at java.awt.EventQueue$1.run(Unknown Source)9 A0 I. E2 o: @. W9 C. E4 l
        at java.awt.EventQueue$1.run(Unknown Source)
3 e$ u: R" V. [% _' m        at java.security.AccessController.doPrivileged(Native Method)
8 j; q( s, }3 `& x0 X+ h        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
  I/ p3 q! ~  K2 l2 W% l6 A5 F3 o        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
! S; N+ o. P! h( v' O        at java.awt.EventQueue$2.run(Unknown Source)
: p4 {8 @" |0 }0 O1 [- }5 f        at java.awt.EventQueue$2.run(Unknown Source)
0 U9 B1 ?( _. [$ f        at java.security.AccessController.doPrivileged(Native Method)' G' t. S+ t: O& y$ E6 l
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
/ t3 E, [1 d) J' l1 {        at java.awt.EventQueue.dispatchEvent(Unknown Source)( W3 I' t* A& s( Z+ b" Y  V" u
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
2 Q2 U: Z' g( [$ j, S5 S: K4 ~        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)* ~* E( t: O, F5 M/ j/ }
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source), N6 f6 D! S1 Y' U; b
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)& k" d: ~4 r6 D9 N3 P
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
' R7 E2 \* a+ k( v% _; S% ?$ H# B        at java.awt.EventDispatchThread.run(Unknown Source)! u9 |2 t2 |6 E5 t1 {# g; ]
Caused by: java.lang.NullPointerException
' n( n% e% S! G7 C        at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)
3 M$ y: s% u# K; x& R/ W        at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23): k0 o+ V1 M) [! o8 b4 L6 \. G
        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)
! \4 y) B( ?1 l4 D! y        ... 49 more
+ y" I! s. ~2 Q$ L, X! d4 M
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-9-13 19:14 , Processed in 0.013964 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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