设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6711|回复: 0

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

[复制链接]
发表于 2012-12-1 12:42:02 | 显示全部楼层 |阅读模式
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点4 H: _; }4 d- t4 I4 w6 l( e
ERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays
, v7 C& I% _5 v/ O8 U' Rrepast.simphony.visualization.engine.DisplayCreationException: Error while creating display.
; |& b" ]( h3 z8 P2 h7 r        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)- G. j- k6 ]1 O
        at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)
2 O. {8 B0 F: S7 i! g% R        at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)
5 f! `" I- j; z2 z        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207), G* h- S% ^7 t% G  j
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
& a5 ]6 t$ ^+ v        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)
( F" z# o/ S# j2 Z+ x' Y        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)% @3 b# w1 B6 \, I5 t5 W% b
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
3 k1 ~. K' D% f6 K9 P6 \' C        at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)
# J) c* z* L3 T3 j3 C! y5 w        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)
$ N( Y' r( s0 @+ f  ~. e5 l, Z: P        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)
0 w1 k9 k/ b  W4 z* {: e5 b        at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159); k$ H# x$ ?# z8 @
        at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)/ ^2 H7 O& h7 j: y
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
6 i5 a, t* E$ F. |        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)4 p9 u& Z( t3 ^3 T6 l( [# g- P
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)# ~3 J; L$ O$ t' S/ l
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
* h$ n- ]$ a) m        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
% h+ m7 \6 q- y5 Y& L$ u        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source): L/ k" k5 W- ]
        at java.awt.Component.processMouseEvent(Unknown Source)0 C. V9 A- D& n  P
        at javax.swing.JComponent.processMouseEvent(Unknown Source)7 |! O+ R0 p; E9 V
        at java.awt.Component.processEvent(Unknown Source)
( ^5 u8 }5 f" ?        at java.awt.Container.processEvent(Unknown Source)' z+ n5 f2 D( q) S
        at java.awt.Component.dispatchEventImpl(Unknown Source). v- ~  K% X' J  t. K5 K/ ?1 [; a
        at java.awt.Container.dispatchEventImpl(Unknown Source): V( _4 ]' p3 {0 z4 z( p
        at java.awt.Component.dispatchEvent(Unknown Source)2 n6 S2 w! a9 F1 }
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
4 L  W! ]9 e% W+ n4 _2 ]0 p. v5 c        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source); P' p2 V5 O: r1 h5 Z5 }
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
; S; D( i9 X% v  T        at java.awt.Container.dispatchEventImpl(Unknown Source)
& L" L' A) `4 A        at java.awt.Window.dispatchEventImpl(Unknown Source)( V% _: \* f3 z6 E
        at java.awt.Component.dispatchEvent(Unknown Source)
+ Z9 l1 J( [& d        at java.awt.EventQueue.dispatchEventImpl(Unknown Source): q# C7 |$ {1 C  O. ~
        at java.awt.EventQueue.access$000(Unknown Source)( _% V6 s. q" u8 q1 [% }3 u
        at java.awt.EventQueue$1.run(Unknown Source): j! E* w- ~( Y5 w) _. @
        at java.awt.EventQueue$1.run(Unknown Source)
2 @& c4 l! a% M3 N- a. N4 R; I        at java.security.AccessController.doPrivileged(Native Method)" J/ P. A2 n  t
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)3 G8 f: r3 e, H9 l/ E: R, M
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)$ M* D- w' o9 X; c* i. j8 A6 t- @
        at java.awt.EventQueue$2.run(Unknown Source)' h9 ^' T1 `* e' }* [( u
        at java.awt.EventQueue$2.run(Unknown Source)
% A- A3 `5 w5 a+ I        at java.security.AccessController.doPrivileged(Native Method)$ Y4 k) r$ N5 m; `
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
* a( E$ h) s. C! m$ F        at java.awt.EventQueue.dispatchEvent(Unknown Source)
) ?8 g5 W' O, |& k: G) W/ A7 `; H& u        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)1 |* {% j- S$ P% N+ m0 z, ^$ C
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)5 ?- u- E8 d/ f5 A* @
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source). e, U1 G* G# b1 F/ Y8 p- o6 c6 k, r
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)  f9 s$ q5 q3 u# q' Y# }  L) `% q  Y
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
% P% c' U4 E6 l- d/ }4 L, `        at java.awt.EventDispatchThread.run(Unknown Source). L" N3 g4 V9 L
Caused by: java.lang.NullPointerException
! p# n" ^  Y# I        at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60). R/ }4 A$ R/ y% q# v4 V% z
        at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23). J& E  M& Q% A1 l! z
        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)
1 Z  u% `7 o  c+ v! C- }( f/ R        ... 49 more
2 ^" k, R/ n  l" b
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-12-8 14:12 , Processed in 0.012796 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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