设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5237|回复: 1

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

[复制链接]
发表于 2011-8-14 15:50:58 | 显示全部楼层 |阅读模式
最近在用repast s 建模做供应链管理的问题,对于repast s 中网络结构的使用很不了解6 {2 o( u# N. j
写完代码之后编译出现错误,应该是显示方面的错误,我实在弄不懂( u. m2 N9 u1 P6 o9 i" n

! _5 l- G0 e/ Y) e6 W( r' b1 E有没有哪位牛人帮我看看错误,或者给我个适用network结构的demo让我学习下
3 w$ l1 N" y( a$ b$ t' [3 y, T+ @; k
感谢感谢/ S$ @& E" Q' w) U) m) W% T2 s
错误如下:- C! S4 r* Q# J/ _2 {. w) Y
* w: V7 h( }8 @
Exception in thread "Thread-4" javax.media.opengl.GLException: java.lang.NullPointerException
, I; k# c/ b+ J0 v' [9 E, {        at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:271)
6 B) ^, E7 Q* j* u& s        at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:410)9 Z+ W0 E/ F6 T" b9 z
        at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)# t# n7 ~" F- ~# Y3 P3 J0 W2 z
        at saf.v3d.Canvas2D.update(Canvas2D.java:113)
3 e- E6 O2 p8 D4 d' P+ {        at repast.simphony.visualizationOGL2D.DisplayOGL2D.setPause(DisplayOGL2D.java:358)
$ A8 v; O; d" J7 D        at repast.simphony.render.RendererManager.setPause(RendererManager.java:57). v( }, f3 r: _6 K1 q' r; R! X
        at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:46)+ q2 y- x  @" X8 D
        at java.lang.Thread.run(Unknown Source)# Y* `6 L: z5 M  ]! x- ?" T
Caused by: java.lang.NullPointerException2 g3 g+ o$ |2 s% M9 S/ G
        at saf.v3d.scene.VEdge2D.doGetBoundingSphere(VEdge2D.java:130)6 f* S7 |6 e+ a8 Y
        at saf.v3d.scene.VComposite.doGetBoundingSphere(VComposite.java:88)
  S, B% K' F/ K9 V2 V        at saf.v3d.scene.VComposite.doGetBoundingSphere(VComposite.java:88)
# C& D- S/ S8 w4 @; y        at saf.v3d.scene.VRoot.doGetBoundingSphere(VRoot.java:56)
$ Q$ R8 B. a! t: P        at saf.v3d.scene.VSpatial.getBoundingSphere(VSpatial.java:439)( L8 z1 d6 |6 i' v( A- x
        at saf.v3d.scene.Camera.resetAndCenter(Camera.java:58)8 [" ~1 c- c8 e) M, A! i
        at saf.v3d.Canvas2D.centerScene(Canvas2D.java:273)8 c/ J/ z' K3 l3 a3 N$ u  [4 s
        at saf.v3d.Canvas2D.reshape(Canvas2D.java:302)
! P- F+ Y) j( x0 {! ^8 z        at com.sun.opengl.impl.GLDrawableHelper.reshape(GLDrawableHelper.java:85)
& N$ N' i9 r1 u5 w/ x        at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:431)& e& x6 P4 T" r% e9 Y! z: l
        at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)
. G1 H' F# K( v        at javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:452)
0 O; W( N+ c# \        at java.awt.event.InvocationEvent.dispatch(Unknown Source)7 P( s3 p0 N" p  v$ c
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
/ f: {# P9 A4 p# N& w        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source). h- f. Y  d5 R6 t8 Y% L
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
3 g8 _+ _+ O& G$ M        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)9 k6 N. W8 K9 b2 J% u3 |
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
* b8 R9 ~( T1 H  z! ?, P        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
5 [2 J# i1 e5 L: K0 a9 X        at java.awt.EventDispatchThread.run(Unknown Source)
发表于 2012-10-12 17:42:55 | 显示全部楼层
源代码贴上来看一下
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-4-5 16:16 , Processed in 0.022566 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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