|
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点
8 G' P- I; E& ]+ z% |ERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays, X8 N$ X. r a8 K! ^' M" k
repast.simphony.visualization.engine.DisplayCreationException: Error while creating display.1 E9 Z& Y) k# M' }* w, p
at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)6 f! g F: x' t/ T; M
at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44); x5 Z1 \! K5 {( h. o3 t
at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90) z) ]: M8 O( f8 V" h0 h
at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)
. G# k6 s3 P" i: N5 w% U% K, u at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)5 P: f$ C' n7 {$ M! Y1 ~' K
at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)
6 z8 d8 m& q% n* e5 S7 E4 G at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)* j8 R, |6 z& b! \- {6 \
at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
1 H& j& `8 L% `9 t at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)
+ U9 ^2 z) W7 t0 u7 Z9 S. H' n6 e at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)
) y7 q0 L8 R6 ` N4 ` at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376), ^ A# V& q8 o1 J
at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)
% R6 R( ~6 F: x% O at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)! H6 A( b$ E K1 Y
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
M' e! w7 {! S2 O9 ^2 D$ \ at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
$ y( ~8 Z2 h" G2 {7 x2 [ at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)0 i8 u# h7 N8 K3 t
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
% T5 H, X8 T [% r+ ]5 c1 u* U at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
7 n7 j2 ~; u: q6 f: o at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)8 [& n/ C! G* G7 k
at java.awt.Component.processMouseEvent(Unknown Source)
; \, \7 H% {+ e4 O. _+ X5 x T at javax.swing.JComponent.processMouseEvent(Unknown Source)# g5 i, q7 ^( y6 q' D7 K
at java.awt.Component.processEvent(Unknown Source)
: D3 T% p* h- {. v at java.awt.Container.processEvent(Unknown Source)# @+ r2 @1 [8 m6 `, m# x
at java.awt.Component.dispatchEventImpl(Unknown Source)2 e; Z# \7 A K
at java.awt.Container.dispatchEventImpl(Unknown Source)9 s; o" {0 {4 @+ _0 s" X4 G9 J; ^5 f
at java.awt.Component.dispatchEvent(Unknown Source)$ @; x$ S# Q" \( D9 ~; V
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
& e, ]0 }( \- E7 p. ]+ N at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)5 R+ F5 n8 w) p( f: E _
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
" R3 n1 _2 N+ |5 c: b& }' A/ t at java.awt.Container.dispatchEventImpl(Unknown Source)6 _) I1 M8 @8 N
at java.awt.Window.dispatchEventImpl(Unknown Source)
; a- t; _- K9 v8 v2 Q+ w4 c at java.awt.Component.dispatchEvent(Unknown Source)( r; z+ S8 A9 u
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)0 u6 T. q" p3 L S6 f0 P+ [0 h; u
at java.awt.EventQueue.access$000(Unknown Source)- u2 [& C% K8 Z3 D9 z" K/ X9 i
at java.awt.EventQueue$1.run(Unknown Source)
' d( t. w3 z) S* `& v at java.awt.EventQueue$1.run(Unknown Source)
5 d8 q5 M7 I4 G9 ]( z! b+ Q7 K, b at java.security.AccessController.doPrivileged(Native Method)
3 d& c7 j; R# V9 o at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
2 P) I0 X7 N8 E5 G at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
( C. H% H3 ?5 `( ~% |) K at java.awt.EventQueue$2.run(Unknown Source)) l3 B! G0 Y0 @& _
at java.awt.EventQueue$2.run(Unknown Source) |* s! a# M5 C
at java.security.AccessController.doPrivileged(Native Method)
& b! L& ^0 G: S: f& b1 r' G" p3 m9 ~ at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)6 X+ V9 p) r7 G3 j, W
at java.awt.EventQueue.dispatchEvent(Unknown Source)) v* J) B. A$ o! J# `
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
- U2 V6 R& I5 K z at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
$ l' `/ C1 K# r at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source), L% {: b$ n) D9 E" L- h9 _
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
+ I% R) @! L# M+ W+ `$ g at java.awt.EventDispatchThread.pumpEvents(Unknown Source)' j1 b9 ]: \: u1 Y4 J) O- ?4 W
at java.awt.EventDispatchThread.run(Unknown Source)
, x- X: v& J* S5 Z! T9 p5 e. JCaused by: java.lang.NullPointerException. a8 p. \' P! n( {4 p6 M7 t
at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)7 ^0 y5 ?' Y+ O( i) T. _: s' J
at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)
8 C/ {: j6 T5 ]) A, R$ h at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)
! x$ J5 x. q$ a& t ... 49 more7 K' v8 h. c( Q
|
|