设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7374|回复: 0

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

[复制链接]
发表于 2012-12-1 12:42:02 | 显示全部楼层 |阅读模式
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点0 {3 W; M: Z* g
ERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays8 e1 y3 h. M+ J% {% r
repast.simphony.visualization.engine.DisplayCreationException: Error while creating display.
8 o; x: W0 J6 N# t) Y        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)% [" p+ A% \3 d8 m
        at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)
" D4 E4 A- k) ]6 _  r2 O        at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)7 L( z7 Y9 U# }0 X9 K8 a( h
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)
9 W0 }1 p0 {" L! ]+ F        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)7 l+ M( ^8 m2 P' ]: [2 n
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)! t8 ?( y9 n. F  t; ^; v$ K
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
, l* [) u. o5 ^! s: G+ z& ]        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)$ h& X$ U& W3 w' \4 Y# H) a! Q
        at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)
, Q  M- S9 F  D0 `        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)# v1 w. E* D2 d6 f# _' d& p
        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)
) e( {0 {& i; u* K        at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)! v. j9 J& w! X, `, |9 e6 v1 ~/ q
        at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)5 b: u# C( Q# c! o8 n: w$ a
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
4 y, c. w' o: T  |$ T  E) C# y        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
% L. v) S" q' n) I        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
% }1 X2 p. S# f& e        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)9 J7 G/ }* ^- ~
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
' d- ~% Y) m+ I. O; o        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
) O0 ~  E) v) i0 ~: I        at java.awt.Component.processMouseEvent(Unknown Source)
: g6 |7 p# ?: t' @6 |" ]        at javax.swing.JComponent.processMouseEvent(Unknown Source); l! h" F# C8 N- C! E1 F
        at java.awt.Component.processEvent(Unknown Source): R% J8 Q' B3 f# k
        at java.awt.Container.processEvent(Unknown Source)8 ?  {+ T1 }) X
        at java.awt.Component.dispatchEventImpl(Unknown Source)
3 C5 ?* w0 @+ v2 t3 n        at java.awt.Container.dispatchEventImpl(Unknown Source)3 d6 p% ]/ c  ^3 j" {. @0 _
        at java.awt.Component.dispatchEvent(Unknown Source)
0 d9 M1 b+ B' f. t        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)% I" ]! t6 ^( R8 r* f; Y
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)% s" i% L% y* Y# A! [
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
  Q" z5 e2 e, ~  c        at java.awt.Container.dispatchEventImpl(Unknown Source)4 n6 l/ U+ x8 l  Q
        at java.awt.Window.dispatchEventImpl(Unknown Source)2 q1 t' U2 F; r, s- V
        at java.awt.Component.dispatchEvent(Unknown Source)# n- H2 ~2 G- J$ e
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)4 H$ [) Q" x7 T5 b$ A6 K" t
        at java.awt.EventQueue.access$000(Unknown Source)
4 m2 [3 i9 }. A7 f' H) w        at java.awt.EventQueue$1.run(Unknown Source)
! h- E, `6 r/ d0 @+ {3 B3 M        at java.awt.EventQueue$1.run(Unknown Source)3 _& z4 s) a6 p! `5 A/ N% l1 `7 R$ r
        at java.security.AccessController.doPrivileged(Native Method)
  n* {# F5 s) N2 t        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)6 b) ?, F0 h2 V' o& Z+ k
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)2 Z( _' P1 M, z$ c3 e( p
        at java.awt.EventQueue$2.run(Unknown Source)
* L" D3 g4 K5 Q        at java.awt.EventQueue$2.run(Unknown Source)7 t5 l0 d+ q% ^5 W' b# }
        at java.security.AccessController.doPrivileged(Native Method)
5 @1 E9 g6 ~5 B) w6 O        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
! a' s5 A5 J0 {. l8 B5 _        at java.awt.EventQueue.dispatchEvent(Unknown Source)
/ E1 `7 V4 h4 {7 a  V  e3 N1 O        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
1 n, g0 e5 B! g; W. w- K        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source); B! |" ^( K: G" {# `
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
# D- r4 R* o7 ?  u  K6 F7 \        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
: O9 E7 J0 ~% i$ U0 \        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
  n# [1 s; N7 U. H. V        at java.awt.EventDispatchThread.run(Unknown Source)' d  {2 Z* d+ r) X/ L( o
Caused by: java.lang.NullPointerException
' h" r) I: w- o7 ?        at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)
7 Y9 r9 G6 \5 ^5 P' c! a        at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23): }: M- f6 \. Y" B2 N' l' v" H
        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)
" H$ J' z; X" N        ... 49 more2 n' M% Q/ n( O1 G$ ~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-5-5 19:46 , Processed in 0.013578 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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