|
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点5 B0 q; D7 x% C3 t6 p
ERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays
c) N7 r: u! u- }+ T) erepast.simphony.visualization.engine.DisplayCreationException: Error while creating display.; B; u7 E+ {6 y
at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)
O1 P6 y( a3 \9 C: U" F* G at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)$ [, y/ h4 A h. M. b3 r" v
at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)
, T- S- \- T o* u C/ Z/ |) V# J/ @& B at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207); j: r6 N6 J; |2 Y) _1 `
at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
8 x2 ?7 i$ E2 J/ } at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)
. y) ]5 Z0 D4 y5 V at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)( Q2 D0 Q6 ]2 s3 ^! Q
at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)' Z" E9 U# E- O3 Q3 K& x b
at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)
% y2 V, Q1 H! g: b3 A0 R at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)- k O( u: q% M8 E6 k' [7 H$ o3 M
at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)* V$ A! [, V1 |' r* L
at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)
, I4 Z5 }! f$ G9 q# G at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)4 v7 T5 Q& f& S( `/ B- n
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
' {+ [6 y. H9 r4 X6 `5 z6 J at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)2 r2 Z- @$ C0 t( {% W3 m, l
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
" E' C) C+ G. @6 ?! b* w8 y at javax.swing.DefaultButtonModel.setPressed(Unknown Source), a" X6 U( ]) ~2 n/ I' A
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)3 R0 T: ?& v/ |
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
( R" f7 {) b4 g* @) p, s; w+ w at java.awt.Component.processMouseEvent(Unknown Source)
$ i4 V0 b) i4 i8 g# z0 W at javax.swing.JComponent.processMouseEvent(Unknown Source)0 L9 F: P1 X8 u* b' u! D
at java.awt.Component.processEvent(Unknown Source): N* l" Q' c# S; N# Y7 W c, |
at java.awt.Container.processEvent(Unknown Source)1 H4 I) n8 ]0 g. ]. v) g+ P
at java.awt.Component.dispatchEventImpl(Unknown Source)
7 i& ?2 G0 c( e) Z at java.awt.Container.dispatchEventImpl(Unknown Source)( W% n; D: A; _# ` u! { V- I. X
at java.awt.Component.dispatchEvent(Unknown Source); V7 {* _! @- H5 }$ O/ p
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source): h, Z2 u' p: F. t
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)$ d, i3 r% D, j" a3 `
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)4 B( L: V, R) o/ w5 a: [* C3 X
at java.awt.Container.dispatchEventImpl(Unknown Source)
+ L1 L3 ]* s" S7 I at java.awt.Window.dispatchEventImpl(Unknown Source)& h, l4 f2 `" i3 O+ O* M
at java.awt.Component.dispatchEvent(Unknown Source)
- q! `1 X' ]3 U/ s! Z at java.awt.EventQueue.dispatchEventImpl(Unknown Source)4 l2 Q4 p8 n9 O$ T
at java.awt.EventQueue.access$000(Unknown Source)
! W8 W0 S# p. H1 ?2 U% l1 Z at java.awt.EventQueue$1.run(Unknown Source)
" {6 |" d/ O5 K% ^* K at java.awt.EventQueue$1.run(Unknown Source)
( Y f: A: @$ s$ [: F at java.security.AccessController.doPrivileged(Native Method)8 ]' I7 {+ X, U! K' J0 f' @
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
* x6 ?, y' J- ]$ @( J at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)+ Y- V5 y+ p; \; a" y6 G# n$ u
at java.awt.EventQueue$2.run(Unknown Source)5 J0 }: U1 P9 r; [. l
at java.awt.EventQueue$2.run(Unknown Source)
- M1 Q- y+ x$ }5 ^! c7 E at java.security.AccessController.doPrivileged(Native Method)+ U, i! @. M% L; H! A8 }
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)( C" c7 q4 `# q* _8 t+ \1 D' ~
at java.awt.EventQueue.dispatchEvent(Unknown Source)3 c" V4 E5 O, S1 H$ h
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
# U1 B" N( a, I8 S at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
; v* N. m9 M8 Z! h& Q7 _5 n2 h1 Z at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
7 e! \3 \( Z# A# G2 G+ z6 S at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
, k" w/ M5 r% R( C8 \% Z3 N at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
* I$ ^/ q; A% f3 z. ^! e9 F4 Y at java.awt.EventDispatchThread.run(Unknown Source)
. m" z5 p! s+ eCaused by: java.lang.NullPointerException
4 P" B d1 r! n" ]# p at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)
8 \# D) [" v8 g) w. o# t6 ` at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)
1 ?* E& }1 k0 r9 n/ C$ y at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)
, B' Y, n* ^. k: _# @2 l( C8 y ... 49 more
' u+ `8 G0 p0 d7 Q+ T |
|