|
最近在用repast s 建模做供应链管理的问题,对于repast s 中网络结构的使用很不了解$ C$ Y/ p4 u B) E: _+ A6 x$ p
写完代码之后编译出现错误,应该是显示方面的错误,我实在弄不懂
- }! _0 s# J; ]& I, p& d! V0 s; I( V( R6 H8 a, a3 {& R
有没有哪位牛人帮我看看错误,或者给我个适用network结构的demo让我学习下
9 B: I+ ]) J0 f! s# r
% S, d! o$ H( ], w4 b感谢感谢% C; ~5 x+ f" C* N8 _
错误如下:3 [# f& o1 t5 V! b
9 [1 q. C! |# h; Z
Exception in thread "Thread-4" javax.media.opengl.GLException: java.lang.NullPointerException
- c! R; J6 o) c1 _: y at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:271), y- Q+ a( f2 h+ w$ l0 E8 o
at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:410)# o' d! o" u9 B3 r: @3 x+ U
at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)
; C6 t1 y/ m& H7 ^ at saf.v3d.Canvas2D.update(Canvas2D.java:113). I9 u' [1 J8 l- {2 o5 k4 N& V
at repast.simphony.visualizationOGL2D.DisplayOGL2D.setPause(DisplayOGL2D.java:358)% G/ A4 W* q$ }
at repast.simphony.render.RendererManager.setPause(RendererManager.java:57)% N. e) F( t# r; {
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:46). m4 ^& n$ j* |; U0 Z0 T" X
at java.lang.Thread.run(Unknown Source)
( f8 l8 R+ _! MCaused by: java.lang.NullPointerException) A) ?6 k1 [% u" o; b8 c i' |3 L
at saf.v3d.scene.VEdge2D.doGetBoundingSphere(VEdge2D.java:130); N& F* M( ]3 J
at saf.v3d.scene.VComposite.doGetBoundingSphere(VComposite.java:88)
5 a2 f. \& {9 t3 t" G% } at saf.v3d.scene.VComposite.doGetBoundingSphere(VComposite.java:88)
, C$ `& O$ Q$ H2 U. l# { at saf.v3d.scene.VRoot.doGetBoundingSphere(VRoot.java:56)8 T; n# n) T* V J. t8 `
at saf.v3d.scene.VSpatial.getBoundingSphere(VSpatial.java:439)
$ ?& \. z. F& j, Y at saf.v3d.scene.Camera.resetAndCenter(Camera.java:58)
, Z* l# o/ v. L at saf.v3d.Canvas2D.centerScene(Canvas2D.java:273)9 X& e3 k2 a$ }0 I
at saf.v3d.Canvas2D.reshape(Canvas2D.java:302)
! i/ O# I; W. H* b5 @ at com.sun.opengl.impl.GLDrawableHelper.reshape(GLDrawableHelper.java:85)
& g% }, v7 E+ K% E/ o at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:431)
. n7 K4 q' j+ n4 a at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)
) F+ s: L b8 d! d, e8 N0 E/ e& k3 G' S at javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:452)5 t$ k+ n& _, l0 J
at java.awt.event.InvocationEvent.dispatch(Unknown Source)5 @. A+ N: i. J/ n( s
at java.awt.EventQueue.dispatchEvent(Unknown Source)
2 g9 N& s1 e9 x% y5 m& K- l at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)/ x- O; ?" o8 ^+ x3 k$ J- g
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
5 k( J7 M( F; x, ^% @1 B! U, E# h at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
0 R3 D( w9 p% j" O. r( _" V2 ^+ r at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
9 z( X' M+ v3 U X at java.awt.EventDispatchThread.pumpEvents(Unknown Source), d P1 N0 k% w2 V/ C$ T/ @
at java.awt.EventDispatchThread.run(Unknown Source) |
|