|
最近在用repast s 建模做供应链管理的问题,对于repast s 中网络结构的使用很不了解; J7 T1 k! F# Q6 n/ F
写完代码之后编译出现错误,应该是显示方面的错误,我实在弄不懂
9 C2 ^2 c4 X$ r( w' ~8 @/ E/ v5 W1 c; p0 r, D
有没有哪位牛人帮我看看错误,或者给我个适用network结构的demo让我学习下
8 f, e4 j+ j; L& }! r8 p8 y( B' e6 U5 \1 \ F) Y
感谢感谢
" p4 s8 L/ _- G错误如下:+ t. p( B D( R: R8 I; J3 c5 M
8 i- V8 i1 ?+ [& ]* L* T, n
Exception in thread "Thread-4" javax.media.opengl.GLException: java.lang.NullPointerException
4 a% E- m+ Z* |* T( E9 K) u5 O at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:271)# L! V# O7 {; w" q! Q( H
at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:410), t( z/ U9 n+ W3 Q; `7 K6 b& Q
at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)
" ^4 k* r* m' ~* w at saf.v3d.Canvas2D.update(Canvas2D.java:113)
( ?+ |5 Y- M, L% y/ ~( b% M) b at repast.simphony.visualizationOGL2D.DisplayOGL2D.setPause(DisplayOGL2D.java:358)
! Q% {- K( g) }" Z at repast.simphony.render.RendererManager.setPause(RendererManager.java:57)
# d) X/ I! w5 F- _ at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:46)$ t( k0 ] a6 r T2 i9 g
at java.lang.Thread.run(Unknown Source)5 O: a# M( M- g
Caused by: java.lang.NullPointerException% d) P0 j% n0 x5 W: L& e3 w
at saf.v3d.scene.VEdge2D.doGetBoundingSphere(VEdge2D.java:130)% _" o4 u; h& b! h/ C2 K# G4 v' m
at saf.v3d.scene.VComposite.doGetBoundingSphere(VComposite.java:88)" [5 w6 p6 J, c4 v
at saf.v3d.scene.VComposite.doGetBoundingSphere(VComposite.java:88)
9 K! b7 ?8 ^5 }0 y$ c" P; E at saf.v3d.scene.VRoot.doGetBoundingSphere(VRoot.java:56)2 I5 n2 C- J. f2 a a
at saf.v3d.scene.VSpatial.getBoundingSphere(VSpatial.java:439)* w( ]- R3 x# U& m8 B
at saf.v3d.scene.Camera.resetAndCenter(Camera.java:58)
: q* x5 x: B2 ~1 n& x3 A0 O! y0 i( V at saf.v3d.Canvas2D.centerScene(Canvas2D.java:273)* t; A. W K! A, ~6 G
at saf.v3d.Canvas2D.reshape(Canvas2D.java:302)
" i: f. s& m$ k9 c at com.sun.opengl.impl.GLDrawableHelper.reshape(GLDrawableHelper.java:85)
: e6 V% j/ v5 m( D5 x at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:431), ^9 m8 J# F: x( a: {# p( `
at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194), p. e7 [# c% r5 e& t
at javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:452)" B- r7 [3 n2 S8 f0 F. M# X
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
7 f$ y6 ]; `# B. {1 x at java.awt.EventQueue.dispatchEvent(Unknown Source)0 e( Y/ ]/ Z$ ]9 W
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)7 M8 `6 M% ~4 R+ T/ `3 M
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source), P7 z3 L+ G; E# }5 Y7 |) t
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
, k3 R- z" {! E% r! f# k at java.awt.EventDispatchThread.pumpEvents(Unknown Source)3 j7 r! m0 {0 J% x" Y5 x- f
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)+ n) i5 v. ^# s& a
at java.awt.EventDispatchThread.run(Unknown Source) |
|