|
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点3 r/ D- A+ N' d7 e. x
ERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays
5 h+ @) X, y% L* r% z7 srepast.simphony.visualization.engine.DisplayCreationException: Error while creating display.
& K( y3 E% o8 B0 o/ b at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)
* }% p4 e, n/ r3 N4 C7 Z. b: u at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44). t: B0 h3 j; p7 U, N7 ^
at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)4 s) v; i; d. A% p, V3 D- O) J
at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)
6 v- Z+ p% N; V3 g at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
, Z( b3 t2 V( f$ z2 U4 O: [, p6 y at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)' L( K% s3 r n8 {
at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
u2 V; |* |4 l/ l+ f" n at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)1 w2 b* X6 e7 x( s0 [! d
at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)
& n1 e2 |$ [3 q) |: S" k2 }. B/ Q at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)
: t4 w: m, Y3 ?* X& Y. }4 r at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)
) N) h% N; s5 F6 W! v at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)
" {# k& ~1 V; N. I! L4 _, { at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17), @2 T7 X7 v3 }* S# {" h+ ]8 V
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source): _ z( n* L9 v5 @: Z
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
9 E9 Q9 z7 O% c: G& k at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
6 A# w ]' W4 Q" c- W at javax.swing.DefaultButtonModel.setPressed(Unknown Source)# I# ^& W% Y8 H- C
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
# F+ c2 T8 e: `7 a at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
# M9 Y/ v/ G# L: | at java.awt.Component.processMouseEvent(Unknown Source)8 E- A0 I8 ?$ `$ h) ~8 b
at javax.swing.JComponent.processMouseEvent(Unknown Source)) c# t' m& S7 K& G! r f: t0 h
at java.awt.Component.processEvent(Unknown Source)# B6 D7 @5 B$ d( u- V3 S
at java.awt.Container.processEvent(Unknown Source)
+ [) w2 U( Y( V' j, ?* H. c2 j0 R: \ at java.awt.Component.dispatchEventImpl(Unknown Source)
+ l7 Q2 m( h. ?7 _/ X at java.awt.Container.dispatchEventImpl(Unknown Source)$ }+ r4 p4 {& e$ f+ A
at java.awt.Component.dispatchEvent(Unknown Source)
0 F& E& S9 f) M# l! T at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)" w1 A6 V* x2 }" W% k6 l
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
4 W2 A$ F, o! C at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)# w* j. {( H* `+ z4 C4 T: n
at java.awt.Container.dispatchEventImpl(Unknown Source)3 D8 z n9 b) r1 L% l* Z
at java.awt.Window.dispatchEventImpl(Unknown Source)1 W: r' v- f* l5 }
at java.awt.Component.dispatchEvent(Unknown Source), _, `$ D6 C6 b; c6 u+ F$ n
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
) E+ N* A: v% u# o# U at java.awt.EventQueue.access$000(Unknown Source)
" l% P% l' k ?& F- u at java.awt.EventQueue$1.run(Unknown Source)
1 Z# K9 ~7 n0 L' v* X" ]. z at java.awt.EventQueue$1.run(Unknown Source)
: c+ }0 Z" L1 u: N+ ` at java.security.AccessController.doPrivileged(Native Method)4 F; ]; P) w5 W$ Q' @" Y
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)) B* c8 V: u* m/ A; C$ K% B
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
6 u/ y' t; U/ ], u at java.awt.EventQueue$2.run(Unknown Source)+ n4 P: i- r# I/ V) V( P- f
at java.awt.EventQueue$2.run(Unknown Source)6 e% f" d# I# l, i8 O. q% _$ A) s
at java.security.AccessController.doPrivileged(Native Method)
/ H0 m; z* ]0 t at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
' S/ D1 P% D$ K* `1 O( l at java.awt.EventQueue.dispatchEvent(Unknown Source)/ E$ F( Q! a8 Q; T" T. w* p
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
. R+ l: C4 E+ y0 V' v1 A at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)1 o1 }( {( O6 \' c! b! `
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
1 l7 ^" S3 @8 k$ M5 \" e8 i; l at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
: D$ o/ c7 w; E- U( x at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
# }- H/ Y% Y, M" G6 h4 U4 w at java.awt.EventDispatchThread.run(Unknown Source)0 ]4 [: [# x7 @6 ^. @' q
Caused by: java.lang.NullPointerException9 c3 I9 m7 U5 s+ r/ \7 w! [
at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)
' B0 R7 h& U; N, v5 `. [. [! q at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)( T) N8 s/ W p7 V0 d
at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)2 u, T6 Q9 c- S* q/ H
... 49 more; } W% i7 w2 }' p2 n% r
|
|