|
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点
5 R" \6 E+ G- ?9 lERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays
' [% C/ R. Y$ o/ b- ?repast.simphony.visualization.engine.DisplayCreationException: Error while creating display.
/ ]4 K6 @& n% E H9 v at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)
1 U9 l; O5 n$ _0 S) ~ at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)
% J l+ F* L! p+ v. ~ at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)
: {4 {" B9 Z% M, U4 y# ^- m. g& P+ m at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)
& o, x1 a" m+ ?$ R! Y% p" { at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
5 S; }- w. d a1 h at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)9 }8 y3 I& U* G" F5 l" t
at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
5 [3 T- m! `+ Y# r1 i; u/ l. u at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)7 S# V* k2 Y* J5 Z' \
at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)
$ X. y* j5 D5 Q8 I+ f at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205). ^- \9 k; k- q+ k3 M( ~2 N4 E" [
at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)1 h% a. T) P7 z% |7 _$ z" y- g
at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)
1 C4 F! j. ]5 E2 t4 L3 C at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)
$ D5 I4 P3 p" G2 c- ?/ Y6 y$ | at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)2 k0 |* V& x9 \ _5 H9 {. w3 p
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
) `. C( Z# c6 @. q7 B at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source): {3 w- X0 d' b- i; j/ y
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)- H R1 |! l7 s; ]7 \5 R5 k
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)3 i+ G# T+ Y3 C
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)% r5 }' s( T) j' T! h- C7 q
at java.awt.Component.processMouseEvent(Unknown Source)
9 G. ?' H4 f O, A* }6 T) C at javax.swing.JComponent.processMouseEvent(Unknown Source)
( R$ \! F2 S! r# {/ i- R1 z at java.awt.Component.processEvent(Unknown Source)3 \* N! N! r% O" I) ?6 a
at java.awt.Container.processEvent(Unknown Source)
/ H8 Z2 N6 k$ ]5 [8 O at java.awt.Component.dispatchEventImpl(Unknown Source)/ [) o X1 A$ ?( T, B# q$ X8 b& U" G
at java.awt.Container.dispatchEventImpl(Unknown Source)+ }( H9 Q& _6 t& O
at java.awt.Component.dispatchEvent(Unknown Source)
7 L& b% O& s4 { at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
5 W; Y0 u* a0 `6 o6 @: c# d( f0 v8 a at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
& Z4 G/ d7 }0 V9 A- i at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source), H2 A/ G, p3 j7 M
at java.awt.Container.dispatchEventImpl(Unknown Source)6 A/ [5 K7 g$ Q! o4 F& _
at java.awt.Window.dispatchEventImpl(Unknown Source)
, C* k& h( j! X; Z' {4 p at java.awt.Component.dispatchEvent(Unknown Source)$ l& c' x+ `9 G
at java.awt.EventQueue.dispatchEventImpl(Unknown Source), M* B) E8 w" P- V4 n: v6 u) p
at java.awt.EventQueue.access$000(Unknown Source)
5 o" Z5 Q! }. p at java.awt.EventQueue$1.run(Unknown Source)
4 l X7 K, v- o! I8 e9 T# E at java.awt.EventQueue$1.run(Unknown Source)4 C* J& b, ^' [# ]& B
at java.security.AccessController.doPrivileged(Native Method)2 I# }3 _! K/ Z9 f
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)9 Z5 _% U* g) K
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)) ? O( x3 j7 v: [' l0 p2 v& }
at java.awt.EventQueue$2.run(Unknown Source) p/ v: _, V, F9 o/ X$ M
at java.awt.EventQueue$2.run(Unknown Source)
* R% Z/ S0 H8 S at java.security.AccessController.doPrivileged(Native Method)
0 h, A' f0 N* P! x% Z at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
- s$ @. c$ \ l at java.awt.EventQueue.dispatchEvent(Unknown Source)& Z4 }; a$ a1 L2 x, K
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)5 C Y: W/ a0 V$ N6 o( k
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)" O* O4 F8 }, b0 W/ m8 p
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
& x1 |. a1 d, r4 [% }& l( t at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
1 s. \1 `* k0 t# @ x2 D at java.awt.EventDispatchThread.pumpEvents(Unknown Source), Q" Z+ D2 ~9 I- M6 z. g- p6 i
at java.awt.EventDispatchThread.run(Unknown Source)
d2 G4 O6 w& a( ]Caused by: java.lang.NullPointerException, _. t: Z& }# U* C( |
at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)
" ]6 F" [# `7 O& F0 o. A# }) e at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)
5 l4 e7 t3 j( \6 g7 i at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)
! A" j2 V9 q& s: X2 A, H ... 49 more5 Z4 p0 }4 j* g9 E2 z+ n# l) g
|
|