设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6413|回复: 0

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

[复制链接]
发表于 2012-12-1 12:42:02 | 显示全部楼层 |阅读模式
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点6 `6 m: U! }3 c- h3 M
ERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays
5 z  b: N5 @& i# G0 yrepast.simphony.visualization.engine.DisplayCreationException: Error while creating display.9 x8 n/ s2 Z7 [7 l0 w
        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)
1 ~/ g6 h$ L( m* {$ _# A        at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)
% l. G& I9 {7 w; V+ _* i        at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)
0 B# b9 y2 u4 ^1 F# Y3 D2 n        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)
+ `0 X/ I# ~% ~( T4 s3 @        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
% l( p2 s: l" l5 N# f6 F        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)
2 |4 A7 u7 k( E        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)3 X% E) h1 V; O6 \9 s5 e- Z- t
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290), _: Q+ Q$ m+ r5 @
        at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)
* F7 D# L- P8 H        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)
, p) `0 N# P( [2 M% c3 |( |        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)! i0 q* O- r4 Q0 G
        at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)9 e8 f2 ]' X) c1 ~% l
        at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)' T7 ]6 h8 @3 x' |; }& G
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)% g. V- o7 ]6 p9 M. H* S( Q
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
- D) F. J0 s, ]" G& a( P. }; l. `        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)' `# }" C4 l: _% W: D
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)' @$ b2 ^# @$ Y2 C, g0 Q
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
+ D5 b0 q6 `: r- Y5 W6 m! k        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
; {( T9 q. L  o( ~( `        at java.awt.Component.processMouseEvent(Unknown Source)% |0 d! \! N, q+ v% @2 L: K
        at javax.swing.JComponent.processMouseEvent(Unknown Source)3 n& Z/ L/ x8 S$ L# D. M
        at java.awt.Component.processEvent(Unknown Source)
! I# `9 }$ P2 P+ x% ^1 I0 }        at java.awt.Container.processEvent(Unknown Source)
) j4 `8 ?8 m8 r/ v& R+ k        at java.awt.Component.dispatchEventImpl(Unknown Source)
7 ?' ^$ D: l6 ]  D, }        at java.awt.Container.dispatchEventImpl(Unknown Source)  i0 G6 E, s8 }6 G/ o) s
        at java.awt.Component.dispatchEvent(Unknown Source): C& O. d* S: Q  u& K- j
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)9 T- V/ Z0 B0 H1 M
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
3 n5 N5 b1 c; _1 I* a% ?: ^% Y        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
% r2 b6 c  j5 g  m! W& b0 M5 P6 T/ S        at java.awt.Container.dispatchEventImpl(Unknown Source)
) G1 G" z' e) v. w$ ]. x        at java.awt.Window.dispatchEventImpl(Unknown Source)( P: [6 k7 @2 {" c
        at java.awt.Component.dispatchEvent(Unknown Source)# q" `' D2 H, @9 x5 N" X
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)" W6 l4 W( d- \
        at java.awt.EventQueue.access$000(Unknown Source)
4 }9 K! C  L2 C        at java.awt.EventQueue$1.run(Unknown Source)
4 G- z3 l' V0 E6 W9 r        at java.awt.EventQueue$1.run(Unknown Source)
1 ]+ `- O/ E, {, A5 N  t        at java.security.AccessController.doPrivileged(Native Method)
, l6 Z+ q( w& Z. u        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)& K7 M& F# I  r) K# v0 B! G( f& `
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
( k. v2 f. a3 s' ]- Y+ |2 \        at java.awt.EventQueue$2.run(Unknown Source)
- Z6 U9 h1 N' s9 f3 [  c: g        at java.awt.EventQueue$2.run(Unknown Source)$ v6 |* B& X, v. X: n
        at java.security.AccessController.doPrivileged(Native Method)
4 E$ n) T8 y; e: K; S! O        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
% C7 m9 p# ~: t        at java.awt.EventQueue.dispatchEvent(Unknown Source)/ c/ N3 b- q; G/ R4 }6 t* @
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
2 b) V  ^' n. l% L) f2 A        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)0 J, J& M- ?7 W- w* Y% S1 z0 A: Y0 i$ F3 W
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)" L& B# x/ D0 U0 G: }, r. v
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)# d# h) b6 V3 u5 G
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)- u8 b4 @* T! G7 |& J. }3 t" g
        at java.awt.EventDispatchThread.run(Unknown Source)0 D  m2 ^& v2 {) ^( ?2 }, I7 o
Caused by: java.lang.NullPointerException& H0 D4 y; {( _$ u
        at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)
/ I* Q! U6 |) \9 f3 t7 b        at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)
* a& j: W$ B# V9 d* `        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)
9 n9 E+ G' Z! f' O8 _7 N        ... 49 more
( K2 y" q4 L  X3 {8 o& p
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-9-14 08:53 , Processed in 0.018817 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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