|
最近在用repast s 建模做供应链管理的问题,对于repast s 中网络结构的使用很不了解9 D S0 K1 R4 D K, c
写完代码之后编译出现错误,应该是显示方面的错误,我实在弄不懂
7 M3 _5 \% r/ i7 \0 r2 H1 q" Y
: p% V3 c B6 u8 Q9 ~: @4 _; k: T有没有哪位牛人帮我看看错误,或者给我个适用network结构的demo让我学习下/ j* T/ I: d$ O' M, K
( S0 a0 z6 _% R. d" f
感谢感谢7 ^6 m, o! _9 b" ^% D0 {) g* `! G
错误如下:9 v. D4 l& t6 d3 p% V9 k9 h6 J
" V6 t u2 _ s, W$ v/ `3 GException in thread "Thread-4" javax.media.opengl.GLException: java.lang.NullPointerException% Z7 H! x- t+ I! K) e
at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:271)
/ d( @0 U/ ~- I/ Z' w. u at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:410)+ ]0 G/ ~! }. r1 B
at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)
- S$ d$ g& v5 f1 T) `9 } ~3 U at saf.v3d.Canvas2D.update(Canvas2D.java:113): w5 T. N# ~, o+ z; R
at repast.simphony.visualizationOGL2D.DisplayOGL2D.setPause(DisplayOGL2D.java:358)
5 c( z' X% E- _( G; t* e at repast.simphony.render.RendererManager.setPause(RendererManager.java:57)3 N2 x/ P* }1 R' G
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:46)
- J2 s& O4 U9 H( z6 @& a6 E( D at java.lang.Thread.run(Unknown Source)! @8 C D1 \. Y
Caused by: java.lang.NullPointerException
; _2 z1 X0 E8 g; e3 S. A" D) t2 e8 N at saf.v3d.scene.VEdge2D.doGetBoundingSphere(VEdge2D.java:130)
/ j( G' u' ^& N4 |& D1 v" A at saf.v3d.scene.VComposite.doGetBoundingSphere(VComposite.java:88)
% Y2 _! S! q* p# k. x( c& a. V- @% I at saf.v3d.scene.VComposite.doGetBoundingSphere(VComposite.java:88) s3 V a. f4 k8 B
at saf.v3d.scene.VRoot.doGetBoundingSphere(VRoot.java:56)
9 L& R. q3 M6 I/ _ at saf.v3d.scene.VSpatial.getBoundingSphere(VSpatial.java:439)
* e1 W1 |4 B0 v( H at saf.v3d.scene.Camera.resetAndCenter(Camera.java:58)
. f2 _$ m$ A( ^3 {0 w at saf.v3d.Canvas2D.centerScene(Canvas2D.java:273) c5 ^2 S6 j. { q1 t: P
at saf.v3d.Canvas2D.reshape(Canvas2D.java:302). r D( R" I. \
at com.sun.opengl.impl.GLDrawableHelper.reshape(GLDrawableHelper.java:85)
" s7 q5 C6 n7 J0 L at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:431)3 b$ E& T% {' N- C
at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)
1 }9 Q1 c" n5 o, ~ at javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:452)8 \' @ \ t, T! c# I0 E- g5 l
at java.awt.event.InvocationEvent.dispatch(Unknown Source)5 h- V# G1 g8 c; `3 n
at java.awt.EventQueue.dispatchEvent(Unknown Source)
/ N) E* F' T5 O7 b$ l& l* Q at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)& ~$ ^ F2 y$ G0 [* Y( ]/ C
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
; `6 z7 ~0 E0 d; z, K7 b, \ Z at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)) }4 P& w. c( A0 P& J) k9 j: \2 m
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
1 ?9 Q* M9 y. M. p+ N+ Y& T$ k at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
4 l) a' Q F' g. L8 z( ^; I at java.awt.EventDispatchThread.run(Unknown Source) |
|