|
|
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点
+ u$ z/ g1 x3 S4 f3 y; jERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays4 q, \8 S4 H, v. Z3 w0 x$ _5 f3 t) S
repast.simphony.visualization.engine.DisplayCreationException: Error while creating display.
3 D7 ]$ m* f. X( T/ o# r at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)
4 @, n: Q& R; `8 X+ q! B1 j at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)2 t4 R6 a' Y7 ]! L( h" Q2 K
at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)3 c. b+ r. f i4 a! U
at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)
$ _' U! {9 }; m. Y3 A# l at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
" a- P/ Z+ o- K1 j6 N! k+ H8 D- w at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)3 s% C: A# D& ]8 U( I( T0 o
at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)3 |% [( p" [& j' w# Q# s' y8 \
at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
$ Q: z, g- J' H. X. J at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)9 \) f/ Y1 N" X( e4 r' V
at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205), I4 S! b2 ~4 N$ @
at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)
, s( Q5 j7 r5 @: u/ K at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159), J4 h& n% C1 d- R$ U
at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)' |: m( v7 y% @9 f4 a; g
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
! m8 ]6 Q3 |; u" h at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)/ ]! |& i( }. K. W" u& D& j. h
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
+ ~% v- u2 \" e1 y% \7 C: k at javax.swing.DefaultButtonModel.setPressed(Unknown Source)- x- Y1 r7 V: _0 [# h
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)8 d7 [/ R1 l0 }( s9 Q; x
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
" o9 L' B: m5 X at java.awt.Component.processMouseEvent(Unknown Source) m, |) N' ?7 I* w
at javax.swing.JComponent.processMouseEvent(Unknown Source); t, e' j; S* u0 `2 q5 n. y
at java.awt.Component.processEvent(Unknown Source)/ W$ A# |2 U$ q) O( z
at java.awt.Container.processEvent(Unknown Source)
1 N% B8 ?' b$ J; ?# } at java.awt.Component.dispatchEventImpl(Unknown Source)
/ t% i! ~6 H$ [$ Q) Z5 a at java.awt.Container.dispatchEventImpl(Unknown Source)
; d3 E$ l% \; c at java.awt.Component.dispatchEvent(Unknown Source)( o b+ m1 [ z! f1 C# V3 v
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)7 F1 u! D* h% W( q, b3 ?! \
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
& ]$ _4 T7 G# R# e- J# ` at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
- a) {. g% K/ w at java.awt.Container.dispatchEventImpl(Unknown Source)/ s' M5 g6 L H
at java.awt.Window.dispatchEventImpl(Unknown Source)
0 }/ r8 @; T! r1 v. W4 F& Y at java.awt.Component.dispatchEvent(Unknown Source)1 T$ t( F& M/ g7 T
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
8 M( o: ]! M: M% B" G1 C4 ? at java.awt.EventQueue.access$000(Unknown Source)
8 V: t r/ R. l Q$ s( O at java.awt.EventQueue$1.run(Unknown Source)3 j0 }4 z) w q3 }$ ~
at java.awt.EventQueue$1.run(Unknown Source)/ J6 v# Z" O1 \7 t5 C: K2 ^
at java.security.AccessController.doPrivileged(Native Method)
8 Y0 m6 T1 O' ` at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)# V2 {: { h B3 X* a D) U
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source); k# B( J7 f& \$ G0 o* }
at java.awt.EventQueue$2.run(Unknown Source)
e& g. C' W8 u# ?- c at java.awt.EventQueue$2.run(Unknown Source)( f( ^# F' c+ h# C$ c0 w3 ?* n( M
at java.security.AccessController.doPrivileged(Native Method)5 g8 o( z+ ~9 V. j4 |" X
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)4 ^, S0 }3 H g: N+ O3 O0 X) p
at java.awt.EventQueue.dispatchEvent(Unknown Source); T5 d2 f9 \& t# l' Q
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)5 @9 j% z$ D2 y6 N1 U1 A
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
/ L9 E, ?& w$ S% \ at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
7 [$ S- J3 K) y" q+ X3 x% x at java.awt.EventDispatchThread.pumpEvents(Unknown Source)1 j! Q( P0 U1 X8 c; Y
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)) `, m9 d v- M6 l$ Y, P7 D1 k" u% v
at java.awt.EventDispatchThread.run(Unknown Source)
7 ~; F/ ^9 \. ^% {3 {* e' OCaused by: java.lang.NullPointerException. u) }4 @; @: r7 u
at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)( K% N' m( v E
at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)
! w9 ~5 F' y, I2 H s, q. U& y r at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)* }# y$ d6 x9 P1 w
... 49 more$ A- h+ F/ e% [# K) O
|
|