|
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点0 d0 _" S% R. I5 f/ w' l
ERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays7 ^6 G) j. Q& {! l9 {: _
repast.simphony.visualization.engine.DisplayCreationException: Error while creating display." f& w/ ?! f: y9 V( d2 V6 [: a. \
at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)* l9 w- N8 R) D/ i; S; N9 |' i9 ]
at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)
% E4 d. i! K6 \1 x% m at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)7 c* j; N( O ^/ x
at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)
1 {0 t$ L: H `* i at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)& @+ {+ ~& X. n; N
at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)
7 q3 P5 H( R% d+ R! l2 C: \. F7 r/ \ at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)) v) Z5 w/ ?& k/ O
at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)2 o8 h; y! D' \
at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283) j4 B; u; t7 [& \6 b
at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)
0 I9 }6 m7 b1 G! } at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)+ o( H0 k) x) @: V b' N' E
at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)
]% v1 j' b/ D2 Q! i5 e( o at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)
5 V( c: Y: L/ o8 A* `- H at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)3 i; w2 m( }( Q w
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
% N/ n+ B; n$ Q4 `+ n- u at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
* I4 Y( X* Y4 S5 C+ p u at javax.swing.DefaultButtonModel.setPressed(Unknown Source)/ K$ n( I, L* L" w, t
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)5 `. g7 |6 T+ _2 } Y
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)6 e. O! h8 g) h: l, E0 O+ E( ~5 e
at java.awt.Component.processMouseEvent(Unknown Source)
6 k/ o. p0 G. ^# @4 p, L! j i6 k at javax.swing.JComponent.processMouseEvent(Unknown Source)
8 |- P5 O: G9 {; z0 n at java.awt.Component.processEvent(Unknown Source)
( w3 o* A, U/ }: K, g at java.awt.Container.processEvent(Unknown Source)
$ @$ {- U: f2 |, U3 e$ } at java.awt.Component.dispatchEventImpl(Unknown Source)! ?; S0 N2 t F" W9 ?7 g! L& T6 _
at java.awt.Container.dispatchEventImpl(Unknown Source)( \' D8 M8 S9 S' i5 ?: S" g
at java.awt.Component.dispatchEvent(Unknown Source)
- P a3 g: Y* b% t. ~9 K# x at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
/ Z" Y1 m! q' b! ^1 V. m' V) G at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
) v6 I) @9 ?$ Q+ A/ V at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source): ?! n, `: @5 u( g9 W
at java.awt.Container.dispatchEventImpl(Unknown Source)
, y* k, ^8 o/ t' ^& ~8 B1 R/ h at java.awt.Window.dispatchEventImpl(Unknown Source)
6 ^6 U" \( b1 s+ { at java.awt.Component.dispatchEvent(Unknown Source)
; u8 b. y; Z% G( _: O% |5 y3 f at java.awt.EventQueue.dispatchEventImpl(Unknown Source) P, i4 v, |8 D4 R9 c
at java.awt.EventQueue.access$000(Unknown Source)5 B/ _6 d/ L4 g# L
at java.awt.EventQueue$1.run(Unknown Source)
4 ]# ]; M5 \! y at java.awt.EventQueue$1.run(Unknown Source)5 u+ \& x/ h/ ]8 G1 [7 v
at java.security.AccessController.doPrivileged(Native Method)1 J& J6 J+ ]8 B% n' |' {- D& \6 k
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)* r" U% M7 h" H' j
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)* D: r' w) |* X3 a# e
at java.awt.EventQueue$2.run(Unknown Source)
* }6 v9 y: S! V! G; X& f at java.awt.EventQueue$2.run(Unknown Source)1 r9 m: p, \+ n! z0 {0 ]
at java.security.AccessController.doPrivileged(Native Method)% y* p/ Z; S) z- Z: w8 P0 r
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)/ f& i/ T% ?7 a" R
at java.awt.EventQueue.dispatchEvent(Unknown Source)& l P( }% D0 E; A
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
' w* _# q% F7 l. M3 y# t6 ], F at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source). X% L8 N7 W" z/ P# R* j
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
& p8 ?8 H2 ? i6 }! U at java.awt.EventDispatchThread.pumpEvents(Unknown Source)* C% S H* Q/ m8 {0 n
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)1 G% s* j6 K7 p' h/ X1 E
at java.awt.EventDispatchThread.run(Unknown Source)
: O, t& Y1 w5 J/ w8 P# M* pCaused by: java.lang.NullPointerException
* M% F+ e( B! Y( h at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)
, F" P% o M) b- b R* k3 E8 ] at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)8 p' g# h9 z' N" Z
at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)+ F6 B) s8 I0 l' \
... 49 more! X5 [* [7 ?6 x9 o' Y- s! B6 S
|
|