设为首页收藏本站

最大的系统仿真与系统优化公益交流社区

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7380|回复: 0

[求助] Repast Simphony 2.0 中 Error while creating display

[复制链接]
发表于 2012-12-1 12:42:02 | 显示全部楼层 |阅读模式
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点1 k: B+ z/ M9 ^8 X5 @+ ]' G5 @
ERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays
. }8 Y- r; [' c* m# c% `repast.simphony.visualization.engine.DisplayCreationException: Error while creating display.
3 x; W3 o* i5 t5 C) Q$ f  o1 T        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102)9 \6 B* Z: O: \  j/ ?- X
        at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)
: m1 `6 v6 n- J        at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)1 y/ `5 n8 T4 n  j
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)5 D9 y5 v9 @7 x9 O7 D6 `* L
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1): K& {  i* |2 _; c; A! z
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)
6 [% D2 e/ y& L. t7 t2 Y        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
2 x0 w! X5 o; B        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
0 p) Y- L- Z3 x, Z/ }        at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)
0 c! [; D- T9 ]' a7 i        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)
3 Z' z: ^5 U" l" t        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376)
0 N. v5 b+ b- Z# [; u        at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)6 M3 F( [# a3 V4 g, J! ~- r
        at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17)9 f9 D- g4 N4 s# M; A* a3 {
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)" _+ k( B7 G/ ^( a
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
  Z6 a& b4 z) y; c/ g  C        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
" J! z+ p. t$ p" \$ g9 a        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
* E* F4 \/ T2 F. R8 W) {: [        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)9 b5 z# n1 N0 J/ t% S3 g
        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
8 U  {7 T# n0 q3 n+ i1 u        at java.awt.Component.processMouseEvent(Unknown Source)
* s. N  A9 q4 i( i' h        at javax.swing.JComponent.processMouseEvent(Unknown Source)
& l% p5 C3 i6 t3 _+ |        at java.awt.Component.processEvent(Unknown Source); k, p& `$ }6 g1 M/ K- F. V
        at java.awt.Container.processEvent(Unknown Source)# I. M# A# ]& Z4 Z# n* T# g
        at java.awt.Component.dispatchEventImpl(Unknown Source)
( f) r" C) H3 n% |( V        at java.awt.Container.dispatchEventImpl(Unknown Source)$ r) J& Y+ ^: s5 p9 w
        at java.awt.Component.dispatchEvent(Unknown Source)
5 V! r0 ^' P* a4 f+ f* G) c        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source); U0 n, a2 M- X. t
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)% U' |  \9 }  q3 p( W* B9 r& w
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
" W! f$ @3 `; D/ V  b6 o( F        at java.awt.Container.dispatchEventImpl(Unknown Source)
" x* t" u3 q/ c) ?        at java.awt.Window.dispatchEventImpl(Unknown Source)/ x% c3 Y* M3 A$ m
        at java.awt.Component.dispatchEvent(Unknown Source)5 Y- a7 S- A1 ~3 u$ L  f4 [& {
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)8 s% S3 ~: c  V7 `
        at java.awt.EventQueue.access$000(Unknown Source); R7 P' R& J% Q
        at java.awt.EventQueue$1.run(Unknown Source)
% C5 a4 @% a* y1 X9 e8 d+ u% M        at java.awt.EventQueue$1.run(Unknown Source)
6 c* ~( W! h4 T' m) M- m6 a0 g* {        at java.security.AccessController.doPrivileged(Native Method)
3 l& D4 G8 `6 d7 O: \        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)6 k+ L5 j9 i) f# F
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source): g2 k# d5 E3 W6 _6 J
        at java.awt.EventQueue$2.run(Unknown Source)$ g1 Q) |6 [" g* r, t
        at java.awt.EventQueue$2.run(Unknown Source)7 ^& R' }0 A+ J
        at java.security.AccessController.doPrivileged(Native Method)! H6 H( J0 K3 ?& E  W
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
) H* t; Z5 }# |7 Y7 ~, u        at java.awt.EventQueue.dispatchEvent(Unknown Source)
9 D; x+ Y" \8 j9 v4 A        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
* k) I( l& t5 F$ a        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)& |$ ]( `) i. q1 X  W  l" ?3 l6 ~
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
3 z: X+ b, L/ l3 _        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
; G5 s* ?) {5 `        at java.awt.EventDispatchThread.pumpEvents(Unknown Source). P) n3 t; P, P* `
        at java.awt.EventDispatchThread.run(Unknown Source)2 A: W8 ~. N' Q8 x0 d: Z+ Z0 ^* W
Caused by: java.lang.NullPointerException9 G5 H: {9 n$ K% v# Q1 @
        at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)# ^% E- s$ G) e8 @4 a) o
        at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)+ `2 H. i/ i% D. o! X* Z. C+ h
        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56). t5 H( `8 o( Y; J
        ... 49 more3 y  O$ e# R3 H2 J( Q* o9 Y9 s
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|SimulWay 道于仿真   

GMT+8, 2026-5-6 15:57 , Processed in 0.012055 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表