|
|
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点
. \& F U3 y+ t( c% KERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays
2 O1 B: f) Z- n* j3 w7 ?repast.simphony.visualization.engine.DisplayCreationException: Error while creating display.6 [- a) U1 S7 t" v- \0 C
at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)9 z7 w& u3 e' L/ _3 t# _2 F$ O
at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)
5 K- y/ b. s6 } d. g4 b at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)' v& D! H% w4 _$ Y# u
at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)
; p1 Y' u J) D: |0 j2 q6 A at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)8 S! E2 O9 Q5 L) W! P/ `
at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)
# h# b3 k& O2 L ^5 u) Y8 l8 ` at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
1 Y* ~. F1 ?3 z* h: b, d1 T6 V at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
6 w l$ }6 n g" m- e* x+ I at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283): b. P% m" H* W- H$ D0 _
at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)5 G7 L; }) ]+ o0 v* q* [
at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)
' V$ }: K6 H+ ]" J( j2 s; G7 h at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)' f5 r* `, v1 N9 A) S7 y9 S/ ]
at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)
9 m& ]" Y& \( h- W at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
( n( I( V; U4 r$ I, X. M4 }7 O: t at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) h: `2 h) ]4 Q1 s3 F6 [7 w
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
" d \' C( K& u( s+ z0 Y5 ?; f at javax.swing.DefaultButtonModel.setPressed(Unknown Source)5 [2 i) J: K1 o7 f# j- u& J
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source): e" D. n! f) q# W' X" a
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)- O% @! Y4 g$ J% H X2 g. _
at java.awt.Component.processMouseEvent(Unknown Source): G% B% f6 d4 z3 k; {2 e& M( Q
at javax.swing.JComponent.processMouseEvent(Unknown Source)
% J0 B. f8 g" @) ]' P" p$ [, w" W at java.awt.Component.processEvent(Unknown Source)" d9 D9 [+ E5 g7 K
at java.awt.Container.processEvent(Unknown Source)% a6 D4 V) [" l, ~
at java.awt.Component.dispatchEventImpl(Unknown Source)- C4 F+ t8 w2 Q* }' |
at java.awt.Container.dispatchEventImpl(Unknown Source)
" Z5 W) c& r( ^2 [" u at java.awt.Component.dispatchEvent(Unknown Source), B* J; b' C& U6 ~, V) [
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)* M, U& f% {0 R; q" q) I
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
5 r, d2 u* W4 o- y7 d at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
" h f( O u. I# K( J at java.awt.Container.dispatchEventImpl(Unknown Source)
) g; W% y/ {7 g3 j$ K6 | at java.awt.Window.dispatchEventImpl(Unknown Source)
% R9 X& l0 i/ o! y, P at java.awt.Component.dispatchEvent(Unknown Source); I; [4 |' b# f6 A7 s
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)9 W. G0 x% I- K8 R
at java.awt.EventQueue.access$000(Unknown Source)' \+ T; @4 q8 s1 b/ h Y3 f) X
at java.awt.EventQueue$1.run(Unknown Source); Q1 L* y" W8 w \' D
at java.awt.EventQueue$1.run(Unknown Source)
; w1 m; k, H( f! w) v at java.security.AccessController.doPrivileged(Native Method)
0 {/ v) c: W. J, n at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
( S$ y. |% q% t" u& v& ` at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
+ \( }8 F2 f1 v+ Z at java.awt.EventQueue$2.run(Unknown Source)
, F# {. b7 f3 h+ U at java.awt.EventQueue$2.run(Unknown Source)
: o; y+ p& F& b" h, M4 {- f' P at java.security.AccessController.doPrivileged(Native Method)
/ R! G- W- S- r" L& m& p at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source). | \; f4 D% l Y0 R
at java.awt.EventQueue.dispatchEvent(Unknown Source)
. J( ?0 a9 Y' ?7 H2 J& W/ K8 N4 C at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)6 V: ]1 V! Y/ H) Q7 p" T8 Q- {3 p; S
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source). W- v8 k o( Z7 {4 x4 e
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)' |' F d8 n3 T- v& b
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)1 G9 T2 ?( W% r$ v9 _9 D
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
i& C3 W5 ]! k0 a2 @2 U* J at java.awt.EventDispatchThread.run(Unknown Source)' [) [5 y4 q% K% Y7 A( C2 G) p) e
Caused by: java.lang.NullPointerException, o* P0 |( O# y( D9 G) K
at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)
7 l2 m" l$ V" D4 e% \4 ` J: W& g at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)0 e2 x8 ^3 u* _* ]: X* b
at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)
* J* t7 Z2 S/ q7 R/ [ ... 49 more
( n/ w3 r( u* x& Y0 {5 k9 |9 ? |
|