设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4580|回复: 1

[求助] repast s 建模中遇到的网络结构的问题

[复制链接]
发表于 2011-8-14 15:50:58 | 显示全部楼层 |阅读模式
最近在用repast s 建模做供应链管理的问题,对于repast s 中网络结构的使用很不了解
7 B5 X0 ~( M' |8 n3 f8 S8 H1 a4 n写完代码之后编译出现错误,应该是显示方面的错误,我实在弄不懂
! T# T. j0 Z0 I' J
8 ~$ G# {4 E/ N0 x/ R有没有哪位牛人帮我看看错误,或者给我个适用network结构的demo让我学习下3 [) \$ ^0 J/ V7 O
+ e/ P/ E9 W6 t
感谢感谢4 }  W- T! @% v, ~6 |7 Z
错误如下:
) j  J6 S& f. @& Q
( N. |) O4 k+ ]" V# c! AException in thread "Thread-4" javax.media.opengl.GLException: java.lang.NullPointerException
& v3 e$ g* z3 x4 g# U  F: F; y1 i        at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:271)( r5 [) W, v, q7 }9 z' [
        at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:410)1 ^2 O6 u, n, S! L: w/ r: X
        at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)1 t# l9 m5 L% S7 ^: X
        at saf.v3d.Canvas2D.update(Canvas2D.java:113)
# k. y% W" ^  ^$ m& r        at repast.simphony.visualizationOGL2D.DisplayOGL2D.setPause(DisplayOGL2D.java:358)
0 _/ H2 ^$ f# k! ~/ R        at repast.simphony.render.RendererManager.setPause(RendererManager.java:57)
$ H3 q' ?) ?8 T1 X; D        at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:46)
# W: @" Q+ R; I: s3 t6 o        at java.lang.Thread.run(Unknown Source)1 ^# U+ l# ]" r1 U' N
Caused by: java.lang.NullPointerException
8 K! A+ S5 y+ I% [& I4 W1 F; `        at saf.v3d.scene.VEdge2D.doGetBoundingSphere(VEdge2D.java:130). w- y+ b5 r0 E6 O" K
        at saf.v3d.scene.VComposite.doGetBoundingSphere(VComposite.java:88)$ y# q" G2 o+ u6 X) n: X0 `2 J9 A
        at saf.v3d.scene.VComposite.doGetBoundingSphere(VComposite.java:88)- C0 A  V- y! A! I
        at saf.v3d.scene.VRoot.doGetBoundingSphere(VRoot.java:56)
* [/ B6 u. a1 q- N' p8 \8 m        at saf.v3d.scene.VSpatial.getBoundingSphere(VSpatial.java:439)
- z' F2 n$ Q; Z- }        at saf.v3d.scene.Camera.resetAndCenter(Camera.java:58)$ e; g0 P0 k6 f  N/ O( J* u. H
        at saf.v3d.Canvas2D.centerScene(Canvas2D.java:273)* `8 x, ?) V# h% `+ k( `, u( D
        at saf.v3d.Canvas2D.reshape(Canvas2D.java:302)) O% b5 c# T) }
        at com.sun.opengl.impl.GLDrawableHelper.reshape(GLDrawableHelper.java:85)
" ]; E' @  i+ a* L. ~* a        at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:431), F$ L9 H; x" h' y* c: ~" M$ s* v
        at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)
/ p( K& }8 L  W" D# h        at javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:452)% U$ W4 X; j8 i8 ~+ ?! C
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)) Z0 `; Y; I3 O
        at java.awt.EventQueue.dispatchEvent(Unknown Source)+ }2 i6 N1 F. s7 G# k
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
, y# r8 \3 g9 u+ u: Z* H$ @. n        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)4 ]  a0 P8 z7 L' Z" f
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)/ c# L) f! T* y9 M$ {% ^2 c" c# I; ^
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)  ~. |" c6 f$ ~& q: _
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
3 ]1 r) J2 {0 B! i/ B3 o% A7 l4 ?        at java.awt.EventDispatchThread.run(Unknown Source)
发表于 2012-10-12 17:42:55 | 显示全部楼层
源代码贴上来看一下
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-23 20:29 , Processed in 0.014954 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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