|
最近在用repast s 建模做供应链管理的问题,对于repast s 中网络结构的使用很不了解) U/ l) O! Q% p( T5 N3 M3 y
写完代码之后编译出现错误,应该是显示方面的错误,我实在弄不懂
0 X7 s# O$ j0 {( t/ g
0 ?8 u% t. @1 K5 L有没有哪位牛人帮我看看错误,或者给我个适用network结构的demo让我学习下
A1 t; D( M. [8 A- Q+ z
$ C& j$ s, I6 C' ?4 W; i' r7 O感谢感谢3 v& h) j6 x1 a% Y! ^, y4 g
错误如下:
* }, M, E. ~% m( S% v! @! Y' P7 Z M0 T: d. z, T
Exception in thread "Thread-4" javax.media.opengl.GLException: java.lang.NullPointerException
1 w+ h' h, S) H) j1 m at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:271)
( d+ ^( l& t& z7 v# U at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:410)" z; h* W. c$ r8 Y
at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)
2 q% ]3 A! x/ W# h" l8 r* ^# w at saf.v3d.Canvas2D.update(Canvas2D.java:113)
+ ?9 O* D6 Q' t1 Y6 h at repast.simphony.visualizationOGL2D.DisplayOGL2D.setPause(DisplayOGL2D.java:358), K2 }1 w6 |( s& j0 |
at repast.simphony.render.RendererManager.setPause(RendererManager.java:57)
# H# _: n' u2 T, L3 S3 } at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:46)
" w c2 l \2 H5 ] at java.lang.Thread.run(Unknown Source)0 O; h4 g7 e- ~+ \5 d1 Z* c
Caused by: java.lang.NullPointerException: y- l0 f" c3 [ J, l
at saf.v3d.scene.VEdge2D.doGetBoundingSphere(VEdge2D.java:130)
: v7 T5 m# ?5 }8 z at saf.v3d.scene.VComposite.doGetBoundingSphere(VComposite.java:88)2 W0 `+ a* X/ F" t* C
at saf.v3d.scene.VComposite.doGetBoundingSphere(VComposite.java:88)
6 K1 [7 z9 v" ^2 M) ^ at saf.v3d.scene.VRoot.doGetBoundingSphere(VRoot.java:56)
4 G4 V$ A: g' w4 S+ G at saf.v3d.scene.VSpatial.getBoundingSphere(VSpatial.java:439)
$ ?9 h0 w3 t( i; \2 U at saf.v3d.scene.Camera.resetAndCenter(Camera.java:58)$ ~# x6 G( _& ]
at saf.v3d.Canvas2D.centerScene(Canvas2D.java:273)# `) ]/ h3 _( W+ d2 u$ O
at saf.v3d.Canvas2D.reshape(Canvas2D.java:302)8 u/ s; f( ~; g3 p0 Y
at com.sun.opengl.impl.GLDrawableHelper.reshape(GLDrawableHelper.java:85)
* ?. G& u2 q; x# N# ?( A at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:431)2 b: t; O- Z3 k6 _( h7 _
at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194), r: J0 ?( |- V" g& c
at javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:452)
& [0 b( q: i) `3 {, k. J at java.awt.event.InvocationEvent.dispatch(Unknown Source)# j5 E, p# C1 L0 c
at java.awt.EventQueue.dispatchEvent(Unknown Source)
, g/ Q% h u( ?7 Q2 ^9 O1 W at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)* Z) _9 ]% B. r4 C0 p1 Z1 R* v/ w& l
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)$ d2 P% c4 h: o2 V: k( x
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
4 }7 [. U- q. M at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
- d* Y0 E2 D6 H$ ?$ ~+ R2 D at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
' a6 @! U! L1 H4 I: p% t at java.awt.EventDispatchThread.run(Unknown Source) |
|