设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4572|回复: 1

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

[复制链接]
发表于 2011-8-14 15:50:58 | 显示全部楼层 |阅读模式
最近在用repast s 建模做供应链管理的问题,对于repast s 中网络结构的使用很不了解# m5 v8 ^- L: @1 B1 ^) W2 @* V
写完代码之后编译出现错误,应该是显示方面的错误,我实在弄不懂' t! |+ |' z! S; X8 i# e0 w) k# T- ~" u

3 X, q2 t, E" }- ~: k有没有哪位牛人帮我看看错误,或者给我个适用network结构的demo让我学习下
( G& Q% N5 @9 f/ i9 |$ H/ @! c& j3 x
感谢感谢
4 E' e: F6 N# y错误如下:
; T( W0 A. o$ s- f+ f$ c1 D6 P) S
Exception in thread "Thread-4" javax.media.opengl.GLException: java.lang.NullPointerException
  V* \/ G! }" v# S8 p        at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:271)( T! |) m1 f6 _0 x7 I
        at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:410)! _$ Z9 K* ?6 o* ~# @
        at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)- S) v0 T# A. f: f# a' }
        at saf.v3d.Canvas2D.update(Canvas2D.java:113)( _, z( @& m. V% V) B, o) ^
        at repast.simphony.visualizationOGL2D.DisplayOGL2D.setPause(DisplayOGL2D.java:358)# Q) Q2 u1 |( p+ E
        at repast.simphony.render.RendererManager.setPause(RendererManager.java:57)
' L( e: P9 T, Z- b( j        at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:46)
( _, H3 r: x+ D( I        at java.lang.Thread.run(Unknown Source)& n4 d+ F, l" B7 s- E( l
Caused by: java.lang.NullPointerException0 k4 l/ V, H* I6 ?& d
        at saf.v3d.scene.VEdge2D.doGetBoundingSphere(VEdge2D.java:130)
5 O3 X5 W  Z5 c) }6 j) Q3 S        at saf.v3d.scene.VComposite.doGetBoundingSphere(VComposite.java:88)
+ m5 G4 z2 {5 E. e# w% X% P        at saf.v3d.scene.VComposite.doGetBoundingSphere(VComposite.java:88)6 V0 g  a* H+ t- \  F& J3 H
        at saf.v3d.scene.VRoot.doGetBoundingSphere(VRoot.java:56)) Q! I/ G5 K+ {4 l6 o" t
        at saf.v3d.scene.VSpatial.getBoundingSphere(VSpatial.java:439)# j" p0 }/ N* b  h
        at saf.v3d.scene.Camera.resetAndCenter(Camera.java:58)- |# V. A$ Z7 z: r- W
        at saf.v3d.Canvas2D.centerScene(Canvas2D.java:273)
: O6 f3 |  p- Y; X  x        at saf.v3d.Canvas2D.reshape(Canvas2D.java:302)
. i9 f  q+ o( H  B        at com.sun.opengl.impl.GLDrawableHelper.reshape(GLDrawableHelper.java:85)! `! g) y' n3 k  H4 X6 G+ ~) A8 z
        at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:431)
8 S8 ?& _3 Z) x0 e3 V        at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)
$ g. n$ {& o2 k& g0 j- z. ]& v        at javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:452)1 O' U- X  X0 r
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)1 r: W; w* X# v4 T7 X* }/ j
        at java.awt.EventQueue.dispatchEvent(Unknown Source)9 K+ o' a; R! H- G) w( ]
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
, W5 ?" f4 o2 L- z0 l        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
) m' Q0 e" e# N, Q/ L# q, H        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)  V' R) v3 p' j, y6 C
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
- e& C7 P1 L0 g% s' L+ B        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)3 T6 P& O( K& |5 P' B7 F- B
        at java.awt.EventDispatchThread.run(Unknown Source)
发表于 2012-10-12 17:42:55 | 显示全部楼层
源代码贴上来看一下
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-21 23:47 , Processed in 0.012779 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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