|
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点% w* F# Y* y# s2 Y4 F u
ERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays, G' W/ @2 h, g
repast.simphony.visualization.engine.DisplayCreationException: Error while creating display.8 @. R$ u3 n, D( z2 N7 O9 `5 N
at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)
' B: x4 H. Q. e) r at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)
2 U2 p0 ^$ f5 Z3 {- s t7 A8 Q at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)
+ w+ Y2 W5 g* k" O at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)
$ ?' _8 v. a0 n at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)
2 p! @+ C9 j7 \ at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)! `; E9 h; N' a! O3 R
at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)% x( a; H: i$ E3 h* c% ] f
at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)- i, \& p3 X' D4 l6 b( X
at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)5 v. \, Z% R. ^) z# N' n
at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)5 P$ @, y- S% J3 c K0 L8 ^( A
at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)
# x7 m- y+ q i6 G at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)
. w# d' _8 Z! ^4 H5 m at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)
) ?# @. i9 E& x at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
4 z" k+ O1 C+ R4 P! R5 L at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
0 d$ z' Y8 _7 e/ f4 F at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
! x- p# ?$ o0 O y" C1 }' ~$ v at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
. [8 ^, W9 b6 h; D/ L at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)+ v$ a. _8 e- s' M3 t+ c! S
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)( r' l& A1 f8 c& k; m3 Z3 Y1 |$ r
at java.awt.Component.processMouseEvent(Unknown Source)
* N. q# y: }5 L7 U0 a Y L$ _ at javax.swing.JComponent.processMouseEvent(Unknown Source)- Z" W# S+ i* I! p3 n
at java.awt.Component.processEvent(Unknown Source): ~: V. l8 |) ]: }: l6 Q
at java.awt.Container.processEvent(Unknown Source)
5 U2 U2 G3 v4 g* L m/ ~ at java.awt.Component.dispatchEventImpl(Unknown Source)
3 ` z( C! W) S$ _. e at java.awt.Container.dispatchEventImpl(Unknown Source)
' @% f, ~0 q, }$ T8 Y at java.awt.Component.dispatchEvent(Unknown Source)
) `; w0 D, _4 ^% D5 W e' i/ A at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)0 a: o/ R/ [7 _8 ~ R- M6 M7 f
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)7 M) ]2 M; M( M t9 y# P8 N7 {, ^
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
1 | }1 v; i: e( J9 Y {2 p at java.awt.Container.dispatchEventImpl(Unknown Source), p$ J3 ^1 E& `) X* I/ ^
at java.awt.Window.dispatchEventImpl(Unknown Source)3 F4 S3 T+ o. J6 c/ t
at java.awt.Component.dispatchEvent(Unknown Source)5 N5 | A; H+ _8 c' j
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
3 [2 W. \2 ^) I9 G9 @( Y at java.awt.EventQueue.access$000(Unknown Source)
4 v) ]3 V8 x1 g7 c at java.awt.EventQueue$1.run(Unknown Source)
" H9 w- C, P1 g1 G9 I# f, t6 `' `4 d at java.awt.EventQueue$1.run(Unknown Source)/ ]$ O% ?6 f# T, e
at java.security.AccessController.doPrivileged(Native Method)) H! {5 t0 s8 i9 C# `4 |3 z- ?
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)* S- {% z$ C& \+ Q8 S5 I3 O
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
7 Y. P# x- j+ F$ s8 y at java.awt.EventQueue$2.run(Unknown Source)
; D# n6 _* B t9 w' ? at java.awt.EventQueue$2.run(Unknown Source)
; n9 I6 @, f* L" L at java.security.AccessController.doPrivileged(Native Method)
) M8 m5 y |2 j/ M; F at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)2 E- a2 S3 y/ l( u. l. m
at java.awt.EventQueue.dispatchEvent(Unknown Source)
9 l3 r5 ~$ r. N9 f+ q. W' i, E at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)) R6 x7 B- O N, [3 i( i
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
9 x9 C! J9 ~' t! w at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)3 }3 n- f' m' |# k" ~6 R5 K
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)$ R# s& q: {+ r7 s; `$ q
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
8 c/ {3 U; a) i k at java.awt.EventDispatchThread.run(Unknown Source)+ ~( [7 |8 G, P1 {! H) g: S
Caused by: java.lang.NullPointerException$ I3 o" `9 V) s2 |
at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)
, ^8 x9 j) i. X0 s2 H, D at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)1 E0 L$ h2 @3 G& T. P# R' Z: l
at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56); F/ n( \! |& g" k3 w C: E* i
... 49 more4 |' Z) T, N( s K
|
|