设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4571|回复: 1

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

[复制链接]
发表于 2011-8-14 15:50:58 | 显示全部楼层 |阅读模式
最近在用repast s 建模做供应链管理的问题,对于repast s 中网络结构的使用很不了解# P1 {0 ]# F, {2 Y2 U3 S6 Y( n
写完代码之后编译出现错误,应该是显示方面的错误,我实在弄不懂
, O; h# q- d) \$ e9 _2 [1 r2 Q- F) q" m* S# @+ O* D
有没有哪位牛人帮我看看错误,或者给我个适用network结构的demo让我学习下" @' v0 n7 }* o8 _. O

9 z% O1 B+ L3 U  a$ v2 r感谢感谢5 i$ `" Q) R4 E3 Q9 I7 E! ^! [
错误如下:
  l8 A9 C7 d  P2 r9 k4 D
  r* p5 p% q8 ~: t; _9 ]4 s% gException in thread "Thread-4" javax.media.opengl.GLException: java.lang.NullPointerException1 {2 {' g$ I- t' [1 L7 [8 N/ Y2 k* s7 `
        at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:271)$ N2 g8 ~- H/ ?, ?2 U
        at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:410)( v& V& }5 k2 q) O6 I; |, u
        at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)
  Q- C6 @0 I% p# n        at saf.v3d.Canvas2D.update(Canvas2D.java:113)
/ Z* W+ Q6 h; l8 ~3 i3 |        at repast.simphony.visualizationOGL2D.DisplayOGL2D.setPause(DisplayOGL2D.java:358)
: [$ Z0 w; f" K: O2 v        at repast.simphony.render.RendererManager.setPause(RendererManager.java:57)
- c# F( |6 G/ J) D        at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:46)
1 Y2 a; J5 }9 v) `; g2 o        at java.lang.Thread.run(Unknown Source): ~8 E6 y3 Z# |
Caused by: java.lang.NullPointerException
$ v* h, n9 O# L2 f- @1 R0 C        at saf.v3d.scene.VEdge2D.doGetBoundingSphere(VEdge2D.java:130)
' i* c7 s( X. z. H0 L        at saf.v3d.scene.VComposite.doGetBoundingSphere(VComposite.java:88)0 k  o# ]* H. c
        at saf.v3d.scene.VComposite.doGetBoundingSphere(VComposite.java:88)$ A4 b9 b1 m" P% z2 I
        at saf.v3d.scene.VRoot.doGetBoundingSphere(VRoot.java:56)) v5 p' s0 n# r, s% c
        at saf.v3d.scene.VSpatial.getBoundingSphere(VSpatial.java:439)
! i6 T. y! o3 B; X        at saf.v3d.scene.Camera.resetAndCenter(Camera.java:58)
, ]4 G  ]. p& M. H        at saf.v3d.Canvas2D.centerScene(Canvas2D.java:273)# u/ d  W- U, H2 \, I' N9 D
        at saf.v3d.Canvas2D.reshape(Canvas2D.java:302)0 K/ ^, q4 c1 _: u$ g
        at com.sun.opengl.impl.GLDrawableHelper.reshape(GLDrawableHelper.java:85)! n0 _& o; f2 S" d
        at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:431)
& G8 f' k5 a) h3 f1 Y; j  L3 E4 d        at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)
3 D2 o/ {$ Z. z; x. `1 l        at javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:452)
' J1 X+ j) g8 r4 e( `; b) f        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
7 B# x9 f% r" p5 Q+ P+ X        at java.awt.EventQueue.dispatchEvent(Unknown Source)
5 ~5 v8 r" b3 z; D. n; G4 |8 w        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
* _5 R' v0 t; X1 K4 e5 Q3 F        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
8 l2 h& W  s' {: `4 R4 `0 }        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)# l' w: V& B) {6 i; F5 Z
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)3 c2 I" K3 q% f1 T+ T. m
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
. Y: h. U- [( W' d3 }% ]        at java.awt.EventDispatchThread.run(Unknown Source)
发表于 2012-10-12 17:42:55 | 显示全部楼层
源代码贴上来看一下
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-21 19:31 , Processed in 0.011732 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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