|
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点
k* N& Y! }1 X7 f! Y5 J- S5 g& qERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays! c7 _0 N3 K- y+ L5 K
repast.simphony.visualization.engine.DisplayCreationException: Error while creating display., D) l4 |% A& y# R$ D/ o
at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)3 a5 K" }& X" [* Z
at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)2 y* l# R" a0 V' N! S
at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)) { }4 {) V u( E) r) O, R( {% q! W7 u
at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)
) @' K, q% y4 b; Z8 t; |- u* {4 W at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)# p. s$ X! F! o& P1 m' q& {
at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)$ y0 T6 i" K# C
at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
# T1 d: r' n/ P% D& { at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)6 M) s& ?, ]9 R/ ]9 `
at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)
2 l; f) k8 Q' u; t, `2 x at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)
: o4 a, S; v6 y+ r: V at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)4 ~7 N5 A" t. u7 V4 m% z# ^
at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)- `. ]! X, m! Q0 n
at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17), u3 F0 k/ D+ l7 l; T) f" j8 ^
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)# t+ P# ]& w; J
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)& u3 h, f8 k6 N
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
0 t. ^1 [2 D! m, E at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
& g/ ?* S2 P! L at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)) i9 F! P: @/ H: {# Q: D+ {; c
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
) o# @' ~5 B9 c( L1 x4 T at java.awt.Component.processMouseEvent(Unknown Source)
a2 N# S' A0 |$ d# n( O at javax.swing.JComponent.processMouseEvent(Unknown Source)6 b, C) }- E; u3 d& }# G
at java.awt.Component.processEvent(Unknown Source)
0 j; J7 U& J1 w at java.awt.Container.processEvent(Unknown Source)5 _! f9 o r& Q _# _) ~# z
at java.awt.Component.dispatchEventImpl(Unknown Source)
0 h1 N) L+ b: q) m- f at java.awt.Container.dispatchEventImpl(Unknown Source)2 v! F- h1 w- h/ J Y0 B6 ^
at java.awt.Component.dispatchEvent(Unknown Source)
" G, Y6 v$ ?5 Z9 ? at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)6 A5 t# j" }8 u
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
+ R6 g, `7 ^8 j5 e4 h at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)5 `) ~. w5 W, P
at java.awt.Container.dispatchEventImpl(Unknown Source)% z' o" o9 s) _2 i% Y1 H1 t/ S
at java.awt.Window.dispatchEventImpl(Unknown Source)
' x% Y8 O$ y) _ R at java.awt.Component.dispatchEvent(Unknown Source)
& c6 T$ k& F7 U( X$ [' g at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
! Q$ ]" Z4 j; e C- h at java.awt.EventQueue.access$000(Unknown Source)% P a$ c: V) L
at java.awt.EventQueue$1.run(Unknown Source)
, e* U5 R+ Z6 I- X: _0 M at java.awt.EventQueue$1.run(Unknown Source)
( ^5 M, K9 w' Y- @ at java.security.AccessController.doPrivileged(Native Method)1 i1 N6 @# ~7 n' _
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
% {0 \) g" c' G at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
& x1 }7 N% l6 G+ z# A at java.awt.EventQueue$2.run(Unknown Source)# j5 i5 m4 b8 y; ~2 O
at java.awt.EventQueue$2.run(Unknown Source)# w) ?6 ] \2 N, c+ U
at java.security.AccessController.doPrivileged(Native Method); o0 ^5 h. t1 ]3 D
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)) `0 {5 Z1 u" V
at java.awt.EventQueue.dispatchEvent(Unknown Source)
& r# s$ s' P" m+ W6 y' z, r at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
) Z$ w8 [% m: t% h! d( | at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
6 H+ ]: L2 Y8 m/ y3 O5 a at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)' p2 f1 k4 A9 X9 M
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
: ^% [. m5 K" n- J/ d9 c at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
' f0 l- @# L$ Q/ X- H at java.awt.EventDispatchThread.run(Unknown Source)
8 X9 R& d! x2 r8 {* MCaused by: java.lang.NullPointerException
. E6 ?5 W8 a7 q$ m$ L at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)
& z6 n1 w0 `) M( S3 j6 Y+ W at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)
* e# y4 y: ?. Q& f/ l; V( `* Z2 H at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)
+ l1 n% ~, L7 w. J% m1 d! f ... 49 more
9 h4 G- {' \$ X7 u2 c/ j |
|