|
最近在用repast s 建模做供应链管理的问题,对于repast s 中网络结构的使用很不了解" F1 _8 A/ z4 p4 G' d+ V Y
写完代码之后编译出现错误,应该是显示方面的错误,我实在弄不懂
4 I( k9 _4 ]% w6 r
/ o7 q' t& v! C4 @% ^5 I有没有哪位牛人帮我看看错误,或者给我个适用network结构的demo让我学习下0 e* w/ l, E. m' D9 @1 O: ^* W
0 o# n* D1 x! c% p/ D, [" n
感谢感谢" v# }& x. G) I k$ Y- ~: J" T
错误如下:
2 t; h. o6 W- x* [4 h3 j7 i% i8 q/ x% G1 Z5 W$ Q9 n
Exception in thread "Thread-4" javax.media.opengl.GLException: java.lang.NullPointerException0 p# s% p; x; Z+ d9 x
at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:271)6 ?& A1 ^" X3 [* \; W/ t9 }" _# {
at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:410)
2 o- d" G+ i, p- d& R# y) k4 C at javax.media.opengl.GLCanvas.display(GLCanvas.java:244): T* \3 D. x) |7 q# Q
at saf.v3d.Canvas2D.update(Canvas2D.java:113): T( P6 i' M4 ?9 R
at repast.simphony.visualizationOGL2D.DisplayOGL2D.setPause(DisplayOGL2D.java:358)
" \6 d' A, i3 W7 u0 J. E$ z' S- k at repast.simphony.render.RendererManager.setPause(RendererManager.java:57)% W% s& F* C# {/ a1 O3 r) `
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:46)- i% l$ C& W! a$ V
at java.lang.Thread.run(Unknown Source)
6 {/ U! `1 h2 A( O2 DCaused by: java.lang.NullPointerException
2 }$ b& x1 S* ^ p& a at saf.v3d.scene.VEdge2D.doGetBoundingSphere(VEdge2D.java:130)
' ]8 [6 @5 D2 F6 ] at saf.v3d.scene.VComposite.doGetBoundingSphere(VComposite.java:88)6 Z9 _5 M- ~- f% K6 x, g
at saf.v3d.scene.VComposite.doGetBoundingSphere(VComposite.java:88)
! ^7 D) K W. r$ }, j# b0 v; ? at saf.v3d.scene.VRoot.doGetBoundingSphere(VRoot.java:56)
$ W$ D. @; ?1 b* N at saf.v3d.scene.VSpatial.getBoundingSphere(VSpatial.java:439)
) G$ a$ h- M# Y7 R. m2 A) l at saf.v3d.scene.Camera.resetAndCenter(Camera.java:58)
7 G) w) A. b+ m. i m" L at saf.v3d.Canvas2D.centerScene(Canvas2D.java:273)
q! [' p% m& g5 _! b% Y at saf.v3d.Canvas2D.reshape(Canvas2D.java:302)
6 s6 h% p6 p- ? } f' y$ v- p% a at com.sun.opengl.impl.GLDrawableHelper.reshape(GLDrawableHelper.java:85)
/ Q7 F6 e) \) s2 M, K( P at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:431)
! i4 E* k# M: f8 I4 W at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)
7 s1 G# @; O! X$ y+ G3 z at javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:452). j; u! `; F9 O
at java.awt.event.InvocationEvent.dispatch(Unknown Source)% ?, V# Z5 Y2 ?$ s: a
at java.awt.EventQueue.dispatchEvent(Unknown Source)7 C6 N: r; a, J3 f- @ k% a5 K
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)( W. m+ u0 v+ J3 ] Z
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)9 e3 ]7 I# Q7 ~. y4 z( ?! c8 h
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)9 T, G4 ]3 N6 `$ B' u- g9 r3 @
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
" E& {9 a9 \, ~9 |' _0 k at java.awt.EventDispatchThread.pumpEvents(Unknown Source)3 H3 y$ [$ H: R" Y
at java.awt.EventDispatchThread.run(Unknown Source) |
|