设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6411|回复: 0

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

[复制链接]
发表于 2012-12-1 12:42:02 | 显示全部楼层 |阅读模式
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点" [3 W' j* a% ^" ^; @* g
ERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays' U$ F( c0 c. P8 s" |1 v  Y# \
repast.simphony.visualization.engine.DisplayCreationException: Error while creating display.
8 w( O2 v+ V  A6 t+ A# O2 J9 M        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)
5 }6 k3 ^( a  P1 H" p        at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)
) Q. I  B) A% a8 a: F        at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)) s, ?2 }# k; ^+ W6 I
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)1 A. b6 O7 U/ a, o  ^4 S( a
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
& F* N4 e4 a5 T/ \2 N8 G. b: K& _& W        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)& f* K- J! t# N
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)2 b0 y0 Q0 J4 X/ l: G. L
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
4 ?5 c8 \7 q* _% H, Q        at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)
3 x+ Q7 O4 n: d6 H7 ~8 a" I, w        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)+ Z+ e% y8 m- G
        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376); {5 r% u1 [5 {/ s0 F, A/ B6 x
        at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)2 o7 \8 \: G: z8 o7 ]/ M. [
        at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)4 u$ p# R9 F# t! R6 y
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
! Q4 \; d+ L; Y% [4 ~" M, U/ K        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)1 A8 O% s. h# W  ~, `1 x& R
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)7 ^" M* E+ O7 i2 @! C* D
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
3 l% |: J% b% f7 P2 w! c        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
& A2 e' p$ V- s# ^" }, v, P! J        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)+ z* e$ k: L  ]" X
        at java.awt.Component.processMouseEvent(Unknown Source); z) w1 L2 ]0 s
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
. {* Y% W9 @) a# [! {& S        at java.awt.Component.processEvent(Unknown Source)* G4 b7 i2 }+ x& `2 N! V/ m1 T
        at java.awt.Container.processEvent(Unknown Source)
( l/ ?  w  C& }7 i  \4 ]( n1 I        at java.awt.Component.dispatchEventImpl(Unknown Source)
/ A" Q/ y& x3 r; W- _- o        at java.awt.Container.dispatchEventImpl(Unknown Source)
* D+ ^1 _! {* a        at java.awt.Component.dispatchEvent(Unknown Source)
: m; @, h0 a1 Y        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
- S! v: F* {6 U4 [        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)4 E  T" f/ P5 f3 D; Y; U! ?% z
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
8 p. O& l$ ^  i+ k! q        at java.awt.Container.dispatchEventImpl(Unknown Source)  K2 j) s/ n8 B1 |( Y; r. J! y$ p
        at java.awt.Window.dispatchEventImpl(Unknown Source)  Y  [# M6 G& j6 ~7 f
        at java.awt.Component.dispatchEvent(Unknown Source)
$ i- u) `: e. I        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
- [6 p& e6 {0 r. |! M  L8 _9 C        at java.awt.EventQueue.access$000(Unknown Source)% z; [2 L# _) D6 Y+ {* D4 U
        at java.awt.EventQueue$1.run(Unknown Source)
! T! X+ \- S$ G6 r! o- G: k0 N9 U( g        at java.awt.EventQueue$1.run(Unknown Source)
+ |+ ^+ ]; |8 }% R* `# D* m        at java.security.AccessController.doPrivileged(Native Method)! t8 W- `1 i' L) u& y
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)% A$ a8 N& G3 ~" P
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)0 j3 y8 }- ~" {5 Y  ^- L
        at java.awt.EventQueue$2.run(Unknown Source)
4 r- P) e. X* |+ m        at java.awt.EventQueue$2.run(Unknown Source)
5 ]8 m0 ?; Y8 P# h" |7 |) Q9 X        at java.security.AccessController.doPrivileged(Native Method)
' R1 W  U' f8 {4 h1 N$ k        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source). S, H3 v4 w% F: U, d
        at java.awt.EventQueue.dispatchEvent(Unknown Source)- u& M- t  C  @9 h" ?' W
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source), j& a5 Q: z$ S! ^
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)$ F2 U) m/ j0 l( b: \! D" i- R
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)' G  }5 S4 t  s% k
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
( O8 S& V  h% y5 B        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)$ P8 `/ t2 o' j' Q# t4 j
        at java.awt.EventDispatchThread.run(Unknown Source)) R  w+ C; ~6 @9 P: N" E  ^' f: N
Caused by: java.lang.NullPointerException
1 ?' I1 Z( {: z( A' b        at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)
9 N8 r) L; e+ W        at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)
) R* _4 V# {$ J3 P7 T- R/ S' j        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)- {  D# P$ S4 a0 z0 g4 ~' i0 M" w
        ... 49 more
. K. Z7 x6 c9 V
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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