设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4577|回复: 1

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

[复制链接]
发表于 2011-8-14 15:50:58 | 显示全部楼层 |阅读模式
最近在用repast s 建模做供应链管理的问题,对于repast s 中网络结构的使用很不了解
4 s0 o! j$ N4 A' Y写完代码之后编译出现错误,应该是显示方面的错误,我实在弄不懂  L0 h1 I. |, [# j
+ p, E: q* J' H& Y% b. Q
有没有哪位牛人帮我看看错误,或者给我个适用network结构的demo让我学习下" U$ N2 Q% e9 K; E" u; u9 B

+ a4 D: m& e. X感谢感谢
* M* Z0 K8 }2 t/ _- a( O# n4 `7 n错误如下:$ J8 ]% g( F" P- P/ j
% m" O0 `2 D2 z$ G' F+ M7 o
Exception in thread "Thread-4" javax.media.opengl.GLException: java.lang.NullPointerException3 i" [; l: h8 e
        at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:271)
1 k. q2 d3 M2 w$ d, f        at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:410)5 J8 T5 j# I8 K' W% I& R8 Q
        at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)) W1 L9 T) H* \, A8 \  j
        at saf.v3d.Canvas2D.update(Canvas2D.java:113)! B! `- y2 C' A  ^
        at repast.simphony.visualizationOGL2D.DisplayOGL2D.setPause(DisplayOGL2D.java:358)
+ g5 O$ ^6 X. ^        at repast.simphony.render.RendererManager.setPause(RendererManager.java:57)- q+ p, v8 R+ r* s: {4 u/ \" X
        at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:46)$ Z+ V5 O, X8 \
        at java.lang.Thread.run(Unknown Source)( q" s: F$ _' g/ e0 |2 }
Caused by: java.lang.NullPointerException
5 o' W% A1 a# L, B        at saf.v3d.scene.VEdge2D.doGetBoundingSphere(VEdge2D.java:130)
$ Z/ O& Z6 m' k' S% M( @- a3 ~        at saf.v3d.scene.VComposite.doGetBoundingSphere(VComposite.java:88). }9 \. k- \0 M" W( h0 ?, S) ^
        at saf.v3d.scene.VComposite.doGetBoundingSphere(VComposite.java:88)
# L* c4 `) l: n& A        at saf.v3d.scene.VRoot.doGetBoundingSphere(VRoot.java:56)
! a6 T6 y1 m) A+ ]3 X        at saf.v3d.scene.VSpatial.getBoundingSphere(VSpatial.java:439)# W# |/ S5 o) |# s% F
        at saf.v3d.scene.Camera.resetAndCenter(Camera.java:58)) h- a5 Z- g: g3 M: w+ ^! R
        at saf.v3d.Canvas2D.centerScene(Canvas2D.java:273)1 V$ l' a# f$ q% J- _% {: Y$ }- Z) \
        at saf.v3d.Canvas2D.reshape(Canvas2D.java:302)
$ U$ z# B0 ~) Q  \        at com.sun.opengl.impl.GLDrawableHelper.reshape(GLDrawableHelper.java:85)
, @/ |9 {: ^/ L7 V        at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:431)
1 x. x( [! Q' |# X" G  e+ z        at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)
" ^  F! j3 Z! |3 q& F( N1 t        at javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:452)3 u# I) B2 Z" |3 b
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
: _! ?  J5 O) B. Y, W1 V        at java.awt.EventQueue.dispatchEvent(Unknown Source)( V+ @4 M" Q9 ?% n0 u# `
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)7 [8 R8 r" I+ W1 D4 C
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)% E* S# {* ?# B7 a: q
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
2 \! U9 }9 p6 M" P* g6 a' Y6 e        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
$ |- \3 _4 f0 Q; M% q' [6 I        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)" x/ v# i  S' X( m0 O
        at java.awt.EventDispatchThread.run(Unknown Source)
发表于 2012-10-12 17:42:55 | 显示全部楼层
源代码贴上来看一下
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-23 17:43 , Processed in 0.013632 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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