|
|
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点
) k: u" f m- u/ {# x1 Y/ NERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays
5 P2 B7 n8 R2 G/ }repast.simphony.visualization.engine.DisplayCreationException: Error while creating display.
5 t8 f; R7 y- K1 z% j: g1 T5 t! H4 R at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)
5 h% Z& p- \+ ^$ `! e, j at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)
( u' {/ j4 V: c6 | at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)/ s8 P: b* ^) Y7 k! `9 E9 T
at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)
1 }5 ~0 Z8 d z- S at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)7 u' g. P2 L& c! W% n
at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)
) C+ x; N. z' x& T at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
6 r8 \2 E/ m! S; S at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)% t% _1 i9 s8 d! ~1 d' A
at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)3 E {& M1 H% v5 E; ?6 e7 n2 {
at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)
* b; H+ h$ ` \$ B/ H at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)1 G6 r/ \3 g/ d Y7 `
at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)
$ k4 I) }6 a( \) [ at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)+ u' Q8 C+ Y3 W: `
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)5 H2 v2 H" _0 P8 w9 ^
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)% i( h5 ~( i3 W5 J, d5 q, {
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source); H Q! v1 e3 n" h# l w& @
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)' t& \$ V& d& Q3 y
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source), G9 e; o- S9 K" X
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)$ X$ A9 Q( K8 Z% Z5 O
at java.awt.Component.processMouseEvent(Unknown Source)
7 w2 T" L# }2 q, V at javax.swing.JComponent.processMouseEvent(Unknown Source)
7 P0 R; ]3 ^/ P/ x: Y9 [5 R# d at java.awt.Component.processEvent(Unknown Source), V5 l/ i! k" r# K
at java.awt.Container.processEvent(Unknown Source)
/ ~1 B5 {5 q+ T# q at java.awt.Component.dispatchEventImpl(Unknown Source)+ w. u% @6 D# D; A8 R
at java.awt.Container.dispatchEventImpl(Unknown Source)
( L) K) F# b; `) ~ at java.awt.Component.dispatchEvent(Unknown Source): e' H( b9 M7 X/ F. S
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
+ K6 R2 N& e) m, K# x: L, \ at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)0 ]$ [0 S3 _" J- J; Q2 m ]
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
8 e% L$ y, s0 f+ r at java.awt.Container.dispatchEventImpl(Unknown Source)- R# O% @; j- X6 n M. h2 |0 z
at java.awt.Window.dispatchEventImpl(Unknown Source)
1 e$ Q' b6 [& Q6 Y6 Z7 y7 L( { at java.awt.Component.dispatchEvent(Unknown Source)
* S2 @0 b A, r. ` at java.awt.EventQueue.dispatchEventImpl(Unknown Source)% |4 Y9 o% V* F0 g7 I( ]. a
at java.awt.EventQueue.access$000(Unknown Source)% b7 s9 n" `) i- T7 B- T/ U& ]* }
at java.awt.EventQueue$1.run(Unknown Source)# U% |. N/ _% f' X, N8 S+ Q, y
at java.awt.EventQueue$1.run(Unknown Source)
$ @4 F6 u9 M4 y! R/ x& x. t at java.security.AccessController.doPrivileged(Native Method)
6 p. p+ _- g: c at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)6 w+ z$ {+ A) Z; j
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
# z) Z' w8 r4 a% Z# d7 P at java.awt.EventQueue$2.run(Unknown Source)
& O8 r% R5 y% B2 [ at java.awt.EventQueue$2.run(Unknown Source)3 I" E) j% g9 W8 O
at java.security.AccessController.doPrivileged(Native Method)% ]1 b/ `, h# q
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)% I8 T" c' J( j
at java.awt.EventQueue.dispatchEvent(Unknown Source)
# P' e& h! n& a, e at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
6 B, W1 b" C+ e0 d at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
- h( F. e) g% W: i( y! D& ~. i, w at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)8 h3 |) \6 `. M4 D' p% {$ P5 }
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)& Z/ J+ i/ i8 V% ~
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
% B7 e) j! ?4 [$ _5 J at java.awt.EventDispatchThread.run(Unknown Source)
; d: D1 T& f" W' p3 H1 s, y5 q! nCaused by: java.lang.NullPointerException
/ e% x# Y/ _# j( s4 N8 L+ @ at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)
1 {) F0 `' j9 [6 O+ Q3 _ at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23). m8 F7 o& m" i6 u9 i4 e* w3 A
at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)# ]- ^( F( \2 ?8 g4 p) t
... 49 more6 A5 C' y9 k& f% {. ]- N% `+ [
|
|