|
最近在用repast s 建模做供应链管理的问题,对于repast s 中网络结构的使用很不了解6 {2 o( u# N. j
写完代码之后编译出现错误,应该是显示方面的错误,我实在弄不懂( u. m2 N9 u1 P6 o9 i" n
! _5 l- G0 e/ Y) e6 W( r' b1 E有没有哪位牛人帮我看看错误,或者给我个适用network结构的demo让我学习下
3 w$ l1 N" y( a$ b$ t' [3 y, T+ @; k
感谢感谢/ S$ @& E" Q' w) U) m) W% T2 s
错误如下:- C! S4 r* Q# J/ _2 {. w) Y
* w: V7 h( }8 @
Exception in thread "Thread-4" javax.media.opengl.GLException: java.lang.NullPointerException
, I; k# c/ b+ J0 v' [9 E, { at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:271)
6 B) ^, E7 Q* j* u& s at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:410)9 Z+ W0 E/ F6 T" b9 z
at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)# t# n7 ~" F- ~# Y3 P3 J0 W2 z
at saf.v3d.Canvas2D.update(Canvas2D.java:113)
3 e- E6 O2 p8 D4 d' P+ { at repast.simphony.visualizationOGL2D.DisplayOGL2D.setPause(DisplayOGL2D.java:358)
$ A8 v; O; d" J7 D at repast.simphony.render.RendererManager.setPause(RendererManager.java:57). v( }, f3 r: _6 K1 q' r; R! X
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:46)+ q2 y- x @" X8 D
at java.lang.Thread.run(Unknown Source)# Y* `6 L: z5 M ]! x- ?" T
Caused by: java.lang.NullPointerException2 g3 g+ o$ |2 s% M9 S/ G
at saf.v3d.scene.VEdge2D.doGetBoundingSphere(VEdge2D.java:130)6 f* S7 |6 e+ a8 Y
at saf.v3d.scene.VComposite.doGetBoundingSphere(VComposite.java:88)
S, B% K' F/ K9 V2 V at saf.v3d.scene.VComposite.doGetBoundingSphere(VComposite.java:88)
# C& D- S/ S8 w4 @; y at saf.v3d.scene.VRoot.doGetBoundingSphere(VRoot.java:56)
$ Q$ R8 B. a! t: P at saf.v3d.scene.VSpatial.getBoundingSphere(VSpatial.java:439)( L8 z1 d6 |6 i' v( A- x
at saf.v3d.scene.Camera.resetAndCenter(Camera.java:58)8 [" ~1 c- c8 e) M, A! i
at saf.v3d.Canvas2D.centerScene(Canvas2D.java:273)8 c/ J/ z' K3 l3 a3 N$ u [4 s
at saf.v3d.Canvas2D.reshape(Canvas2D.java:302)
! P- F+ Y) j( x0 {! ^8 z at com.sun.opengl.impl.GLDrawableHelper.reshape(GLDrawableHelper.java:85)
& N$ N' i9 r1 u5 w/ x at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:431)& e& x6 P4 T" r% e9 Y! z: l
at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)
. G1 H' F# K( v at javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:452)
0 O; W( N+ c# \ at java.awt.event.InvocationEvent.dispatch(Unknown Source)7 P( s3 p0 N" p v$ c
at java.awt.EventQueue.dispatchEvent(Unknown Source)
/ f: {# P9 A4 p# N& w at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source). h- f. Y d5 R6 t8 Y% L
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
3 g8 _+ _+ O& G$ M at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)9 k6 N. W8 K9 b2 J% u3 |
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
* b8 R9 ~( T1 H z! ?, P at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
5 [2 J# i1 e5 L: K0 a9 X at java.awt.EventDispatchThread.run(Unknown Source) |
|