设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7005|回复: 0

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

[复制链接]
发表于 2012-12-1 12:42:02 | 显示全部楼层 |阅读模式
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点2 m& _6 T5 H: a" @# V/ R5 O# U9 J
ERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays1 y: h' ?0 B& {% _
repast.simphony.visualization.engine.DisplayCreationException: Error while creating display.+ r9 D( H+ K* ~1 W0 w  Q7 ^- a
        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)
- p4 o! S$ x9 [# a4 X        at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)
0 Z0 b! k" ~' x4 A; S        at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)! w" X# I* a2 v8 }3 m# D
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)
" u, X8 ]9 C: z! p, e/ [        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)" g+ s  s% [0 r
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)
4 C8 ~5 p1 Q* S        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)  G+ I9 G! W( F3 B; K
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
+ B& F( s* a4 G- ?# [9 S        at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)
9 ?% G1 ~7 ^" h! P0 G- c' p: `        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)
$ {) D$ `% H7 z, `+ S, V        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)- m7 m+ _! d* @) r2 W, l
        at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159), V9 a3 e- L& _# ~) \. B' T
        at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)
4 K( `8 E0 u% o* B% W; B5 \$ f        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
/ G" z" e8 z% D: l        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)2 K3 o2 Y! @/ p- [; E
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)" U0 s, |- }9 r; \& n9 J
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)* W5 _: V' Z/ u& w! a! y
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)2 M  W3 N/ |! o5 \
        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)# G0 l" [( V  `8 n* O
        at java.awt.Component.processMouseEvent(Unknown Source)
) Q7 k; B3 ^* K" h7 I  T0 I2 N7 A        at javax.swing.JComponent.processMouseEvent(Unknown Source)
" q7 g% h/ u3 ]4 u  F! i6 m2 W6 x        at java.awt.Component.processEvent(Unknown Source)' J0 \1 z4 @; T+ i& K; t, b0 y
        at java.awt.Container.processEvent(Unknown Source)
. r0 M7 h2 C3 ~" X: J        at java.awt.Component.dispatchEventImpl(Unknown Source)7 }5 U$ b9 I3 n9 N5 I
        at java.awt.Container.dispatchEventImpl(Unknown Source)
: j6 b4 J+ J  ~8 E1 U: C/ _. s* i        at java.awt.Component.dispatchEvent(Unknown Source)3 [9 {2 o% p, ?3 y5 r: I* Y
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
' E- x! L* ^0 ^* H' x& d4 M/ _; C        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
+ }& @5 p- |6 U; y        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)  _& w9 L8 D: w/ z
        at java.awt.Container.dispatchEventImpl(Unknown Source)% r* U7 b* y- D
        at java.awt.Window.dispatchEventImpl(Unknown Source)
# k5 S3 t% |8 }' B- m' `. u        at java.awt.Component.dispatchEvent(Unknown Source)0 T4 i. S& n% x0 Z2 o4 H& c
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
( d4 F; J, e) ]% f8 A1 g$ T        at java.awt.EventQueue.access$000(Unknown Source)0 ^$ `5 ]( H2 T) p+ }
        at java.awt.EventQueue$1.run(Unknown Source)
& u0 l- T6 i8 s; o* T        at java.awt.EventQueue$1.run(Unknown Source)1 q) A9 {; o0 v. `+ f
        at java.security.AccessController.doPrivileged(Native Method)& N4 A$ C2 e1 z" n$ H
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
. e( J" K: l% L/ h6 U8 q6 ?" ~+ b# G        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)! p7 S" }: T( u. U
        at java.awt.EventQueue$2.run(Unknown Source)
( a6 @2 |3 E( N. B& e5 W0 v        at java.awt.EventQueue$2.run(Unknown Source)7 ^2 i3 }! `; P/ k( E2 j
        at java.security.AccessController.doPrivileged(Native Method)
5 d! T3 Q; e5 Q8 K; Y* ^" C; x( @        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)9 L' j4 C& P/ s  p% |/ Q
        at java.awt.EventQueue.dispatchEvent(Unknown Source)# I7 ^1 A: B; d  T+ p
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source), w; F; }0 d+ K/ W  b8 A
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)* z! `" W% H! |" {
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)5 V* y7 i  o" \4 L8 t
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
. S) u" k" _7 S) U1 Y! o        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
8 V0 E  h! A& g% B* ?( M% ^        at java.awt.EventDispatchThread.run(Unknown Source)% E% h2 _3 I9 |- J0 a6 K
Caused by: java.lang.NullPointerException
% b1 K* o# w# S: _! V        at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)! M! P2 l& p2 n& ?4 r
        at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23). W  ]( c1 f9 N4 y7 P9 g# I; ~
        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)9 g1 f) Q9 P+ B  |8 _2 B* u  Z) B. \3 k
        ... 49 more! ~% ^- c3 ^: l
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-2-17 02:31 , Processed in 0.015847 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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