设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5862|回复: 0

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

[复制链接]
发表于 2012-12-1 12:42:02 | 显示全部楼层 |阅读模式
程序编译无错误,但运行时,提示以下错误,无法显示设置的网格,请高手指点
/ x1 d5 P$ w$ v  ~/ F" IERROR [AWT-EventQueue-0] 2012-12-01 12:35:05,656 repast.simphony.visualization.engine.DisplayComponentControllerAction - Error while creating displays7 i( D5 q, i. F
repast.simphony.visualization.engine.DisplayCreationException: Error while creating display.) z' L8 t0 C& E' b* Q
        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:102), o; V( x- t: E6 _
        at repast.simphony.visualization.engine.DisplayProducer.createDisplay(DisplayProducer.java:44)/ q9 o' N) W' F! d
        at repast.simphony.visualization.engine.DisplayComponentControllerAction.runInitialize(DisplayComponentControllerAction.java:90)6 H3 {$ T& n% t+ V" l
        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:207)
0 {; I7 T6 B+ h. B+ }        at repast.simphony.engine.controller.DefaultController$2.visit(DefaultController.java:1)  d5 v4 w4 j% G
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:287)
) W1 F- E/ m, F) U! B' t" y        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)7 l6 H3 \4 N/ |. `8 l
        at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:290)
# r' m# j  {( Q# Z        at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:283)4 f  [; C4 w8 Q6 `8 {) g0 X
        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:205)
6 w- a$ r1 i$ ]0 {        at repast.simphony.engine.controller.DefaultController.runInitialize(DefaultController.java:376); Q! V% I, R9 z3 e
        at repast.simphony.ui.RSApplication.initSim(RSApplication.java:159)0 Y. ]- k  ?5 s+ t7 E3 A7 e
        at repast.simphony.ui.action.InitRun.actionPerformed(InitRun.java:17); Q& J3 o6 D2 Z, l  x' [
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
8 N% q2 K* M' ]" ?5 ?% \8 g" _        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
2 i) [- d: S% @' I. w5 B& ?8 \        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)3 P# {: _  f9 k  o$ j
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)( G! Z. g# Z( F- t% y" H: n8 E
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)8 ?- j+ F% S9 @! ]" ^
        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
" }* b: y& e6 ^1 l, C  d        at java.awt.Component.processMouseEvent(Unknown Source)' Y' N1 {" O/ b. q3 I# Q
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
: n6 A' ~  x3 f) m, l8 Z4 ]- T+ V        at java.awt.Component.processEvent(Unknown Source)
" H4 ~  v, f. P8 h  _        at java.awt.Container.processEvent(Unknown Source)
5 o/ Q- }+ m4 b6 ^% C+ t8 `9 P        at java.awt.Component.dispatchEventImpl(Unknown Source)
2 e: x2 P1 q4 E+ [3 p$ u' E        at java.awt.Container.dispatchEventImpl(Unknown Source)0 l- J" B5 o& Z' A* U
        at java.awt.Component.dispatchEvent(Unknown Source)
$ P$ _- q6 v/ s! j3 b. k        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)2 G) m$ c! S. l
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)* ]; p4 m! z7 j
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)1 s8 f# D, C1 [
        at java.awt.Container.dispatchEventImpl(Unknown Source)# v9 Z. F" m0 `
        at java.awt.Window.dispatchEventImpl(Unknown Source)
" H5 V. c- t0 M* y3 Q        at java.awt.Component.dispatchEvent(Unknown Source)
7 a9 ]5 n$ O/ W$ I        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)( y3 h6 i) q' ]9 h1 k0 ?
        at java.awt.EventQueue.access$000(Unknown Source)
- c* M4 \& S. h) W+ E, ?        at java.awt.EventQueue$1.run(Unknown Source)
3 M/ R/ U' }! B9 {5 ]        at java.awt.EventQueue$1.run(Unknown Source)3 P: n4 q1 M* o' K! q- L
        at java.security.AccessController.doPrivileged(Native Method)
5 W% ^; a- ~7 R- ?8 N        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
# z  q8 [1 c. @0 n: g        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
7 b6 m; x5 D% ]+ G        at java.awt.EventQueue$2.run(Unknown Source)
1 n8 p4 b9 E  I# B6 G        at java.awt.EventQueue$2.run(Unknown Source)  _% i  ?. v8 r2 C1 _) Y
        at java.security.AccessController.doPrivileged(Native Method)( L2 y2 j" T4 ?: E
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)2 ?/ ]% N- X& Z6 }
        at java.awt.EventQueue.dispatchEvent(Unknown Source)- o) v1 B1 \9 r
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)3 G3 P* n* @% j
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
3 F! R- z* j1 x        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
8 g- ?" }. n! p" Q: W) |& j4 G3 o1 T        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
3 W, K  L9 Z8 Z( R6 l0 Q        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
) F' r' N  X' N) w0 t! a( z        at java.awt.EventDispatchThread.run(Unknown Source)5 K# O/ t2 g6 J1 ^$ \7 l
Caused by: java.lang.NullPointerException
# W  Q/ l3 N9 U% q. {( U        at repast.simphony.visualization.DefaultDisplayData.addProjection(DefaultDisplayData.java:60)! i9 ~+ p( u; p7 g: \, d
        at repast.simphony.visualization.engine.AbstractDisplayCreator.createDisplayData(AbstractDisplayCreator.java:23)
$ z8 ~) a1 Z/ b* j, ?+ i7 R7 }        at repast.simphony.visualization.engine.DisplayCreatorOGL2D.createDisplay(DisplayCreatorOGL2D.java:56)6 U! ]: f) Z6 P* ~8 G
        ... 49 more6 L7 N9 Z! ]! Q
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-4-3 15:32 , Processed in 0.015172 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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