|
最近在用repast s 建模做供应链管理的问题,对于repast s 中网络结构的使用很不了解5 x- r n1 Q/ @
写完代码之后编译出现错误,应该是显示方面的错误,我实在弄不懂( ~0 N% ^1 T5 Z L1 l# \
% I3 Q5 ]( o5 ]. X) V/ j
有没有哪位牛人帮我看看错误,或者给我个适用network结构的demo让我学习下
+ b3 R1 n0 u' V) O+ J2 x$ ^7 }; {# ]( I& f% H
感谢感谢
% k9 g$ M6 s2 m+ T; q6 C2 {错误如下:; j8 R1 F+ k9 l4 y8 C7 ^
4 ?2 |0 v' z! h$ ^7 o
Exception in thread "Thread-4" javax.media.opengl.GLException: java.lang.NullPointerException
& C, ?( z9 ~9 @2 h0 h at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:271)* n/ C7 z/ B, L5 X1 O4 b
at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:410)
4 C! ~* m9 o8 O3 G6 S) Q1 X at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)
2 ~% ?+ d9 L, u& B( s: h" d at saf.v3d.Canvas2D.update(Canvas2D.java:113)" {! k- w; b9 b1 M3 T2 m3 _) t
at repast.simphony.visualizationOGL2D.DisplayOGL2D.setPause(DisplayOGL2D.java:358)
6 L) L4 Q* a/ K0 F# u& \3 G0 U3 h at repast.simphony.render.RendererManager.setPause(RendererManager.java:57)3 N' ~9 ~+ Q# X$ e
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:46)
" u+ e9 ^) {5 w! v- e at java.lang.Thread.run(Unknown Source)
* @9 Z( h3 ?; F, e$ e& ~Caused by: java.lang.NullPointerException
: |4 {9 a4 X: `# ~/ R0 _ at saf.v3d.scene.VEdge2D.doGetBoundingSphere(VEdge2D.java:130)
, o- k3 H; @8 [( ^# v% I! {! U& Z at saf.v3d.scene.VComposite.doGetBoundingSphere(VComposite.java:88)5 ]" B/ A: G. ]& C3 S7 ^% w
at saf.v3d.scene.VComposite.doGetBoundingSphere(VComposite.java:88)
7 l* I3 d( M4 T0 i2 [6 a5 J9 d at saf.v3d.scene.VRoot.doGetBoundingSphere(VRoot.java:56)
2 y6 D' n; J, [+ c& p, e: } at saf.v3d.scene.VSpatial.getBoundingSphere(VSpatial.java:439)
# ~; x2 m6 \& B at saf.v3d.scene.Camera.resetAndCenter(Camera.java:58)+ T* \7 V o/ s, a) G0 v
at saf.v3d.Canvas2D.centerScene(Canvas2D.java:273)
& {; G# W% t( H at saf.v3d.Canvas2D.reshape(Canvas2D.java:302)! p" z9 e5 Q& k! |/ B
at com.sun.opengl.impl.GLDrawableHelper.reshape(GLDrawableHelper.java:85)8 X4 V! m* g0 R
at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:431)
( q' ]/ C3 u# i( h- d0 Q$ N at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)
0 h4 ]8 v! |) J J: y& g5 e- z4 { at javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:452)3 E' Q B' v7 H
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
; N, F# T* t, j; y at java.awt.EventQueue.dispatchEvent(Unknown Source)
# y* n( Q: S% [( g: a at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source), M; z# t- r' L/ B, g: h& ~4 X
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
3 x5 K! Y% K2 W at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)! j/ d, w |8 ]' m3 ~. C3 |# ~
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
" {& e* I+ x# R @4 V2 u, ?' D at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
0 h3 ~% F+ k: q" C3 p at java.awt.EventDispatchThread.run(Unknown Source) |
|