|
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点
' U3 N8 q) T. d1 m, \* R$ \ERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays4 T7 e: Y7 P1 r E8 }
repast.simphony.visualization.engine.DisplayCreationException: Error while creating display.
! G: a# h: d9 G# |: T) L& f" Z1 z2 b4 ? at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102); D. x8 P* N0 w8 B1 n3 j! S
at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)- _5 r# d, Q6 s5 I4 r: V9 L0 N8 s
at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)6 F* |2 s* b( u N2 T
at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)
% b& [; a% e* O. n( y at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
/ g: r" l$ {/ T at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)/ p4 c- | P b* d4 r
at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
* Y4 @# r, ?- A( }" p at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290). o- ^' \+ f: X
at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283) j4 ?) V+ R9 @9 A( N
at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)
/ ]" s& | D5 R. K# E& `7 M# e+ } at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)
& Y9 C: i) o% Q2 j at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)
r( y2 Q( y- G7 r& ?$ G: r at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)
* ~" _: J+ j* Q+ G" w; Q7 ] at javax.swing.AbstractButton.fireActionPerformed(Unknown Source); e5 Z7 q9 ?( ]0 a) O( `5 N" ]4 g
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
; h3 M1 R% g2 l% B7 e9 C. N4 @ at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
1 i0 D7 k0 s2 m g8 Q2 P+ P at javax.swing.DefaultButtonModel.setPressed(Unknown Source)3 e! \7 g G6 m0 e0 e' f0 z# t+ G
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
0 @* r9 g9 r( f2 e! o- | at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
6 ?7 U( p& ~9 D1 n$ X at java.awt.Component.processMouseEvent(Unknown Source)
; ^ ~5 P, n% O3 Z; ?! F. v at javax.swing.JComponent.processMouseEvent(Unknown Source)* z6 M- z" r2 {1 O
at java.awt.Component.processEvent(Unknown Source)
; w m9 N* o4 b% L, G. n at java.awt.Container.processEvent(Unknown Source)
( J& i& W: x0 T at java.awt.Component.dispatchEventImpl(Unknown Source)) I: L7 m4 j2 a9 A% c
at java.awt.Container.dispatchEventImpl(Unknown Source)
3 ^+ Q& f# ~. j: P5 V at java.awt.Component.dispatchEvent(Unknown Source)
]2 e' i& S# ~$ H at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
" B& e4 P9 U8 r2 g! F; N7 a at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
: Q# H( ?' s$ o/ I/ s2 i at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)+ e f2 n0 r$ P+ ^, |) @+ M
at java.awt.Container.dispatchEventImpl(Unknown Source). q$ e3 }' \9 T' U, x: i$ Y
at java.awt.Window.dispatchEventImpl(Unknown Source)' H4 I: G0 o. \% T
at java.awt.Component.dispatchEvent(Unknown Source)* k0 Y0 @+ T0 j+ R
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
1 i2 b2 _+ I4 p2 S2 n' K at java.awt.EventQueue.access$000(Unknown Source)! y% A5 n8 d+ u6 O
at java.awt.EventQueue$1.run(Unknown Source)
. g7 e/ ~; t: B" r# F& @ at java.awt.EventQueue$1.run(Unknown Source)2 d/ f; O. [+ k* H, G
at java.security.AccessController.doPrivileged(Native Method)( F0 G8 p: @' ?, m0 E' e
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)+ ?8 | J. ^5 X2 X
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)0 o- g; l8 H+ K! J( _
at java.awt.EventQueue$2.run(Unknown Source)& y+ s6 n7 h( i' M7 q' {
at java.awt.EventQueue$2.run(Unknown Source)0 y6 s/ }& n1 Y' P- D. Y/ o7 c% H
at java.security.AccessController.doPrivileged(Native Method)! ~8 {( H) T9 f/ O: b
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)5 R2 b) T5 @. A% R4 m! X; l) K
at java.awt.EventQueue.dispatchEvent(Unknown Source)2 N5 Z) v- q3 l( A/ c& `8 J1 W" [0 U1 ~
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
U5 {* \2 R' U9 l; E, B at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)$ I3 r8 F+ k' V" e2 @6 A- u! P: { y
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)7 F( f8 }* A) w* _( L0 H/ c) J3 y# V
at java.awt.EventDispatchThread.pumpEvents(Unknown Source): L9 v0 P4 F- Y
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
2 R4 o/ y2 Q# Q: S8 z8 U* p8 A3 \ at java.awt.EventDispatchThread.run(Unknown Source)5 N5 B4 p4 H' o* g2 h- T3 J' u
Caused by: java.lang.NullPointerException4 ]9 i8 r' z% H
at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)
5 @& W5 O) x; I at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)
6 R+ O3 A, K' x! v, W* v at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)+ @0 b9 e" I3 c) D$ `5 R
... 49 more
) S2 r3 A: h" i( a |
|