<div dir="ltr">Hello!<div><br></div><div>I am running a simple java example using vtkJoglCanvasComponent and get the exception below. What can be the problem?</div><div><br></div><div>Commenting out line 49 in vtkAbstractJoglComponent.java removes the exception, however I am not sure things will work properly after this... This is using VTK 6.2 and java 1.8 on Mac.</div><div><br></div><div>/yuri<br clear="all"><div><br></div><div><br></div><div><div>Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: Caught NoSuchMethodError: javax.media.opengl.GLAutoDrawable.getWidth()I on thread AWT-EventQueue-0</div><div><span class="" style="white-space:pre">  </span>at javax.media.opengl.GLException.newGLException(GLException.java:75)</div><div><span class="" style="white-space:pre">      </span>at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1311)</div><div><span class="" style="white-space:pre"> </span>at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131)</div><div><span class="" style="white-space:pre">     </span>at javax.media.opengl.awt.GLCanvas$11.run(GLCanvas.java:1394)</div><div><span class="" style="white-space:pre">      </span>at javax.media.opengl.Threading.invoke(Threading.java:223)</div><div><span class="" style="white-space:pre"> </span>at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:525)</div><div><span class="" style="white-space:pre">      </span>at javax.media.opengl.awt.GLCanvas.paint(GLCanvas.java:579)</div><div><span class="" style="white-space:pre">        </span>at sun.awt.RepaintArea.paintComponent(RepaintArea.java:264)</div><div><span class="" style="white-space:pre">        </span>at sun.lwawt.LWRepaintArea.paintComponent(LWRepaintArea.java:59)</div><div><span class="" style="white-space:pre">   </span>at sun.awt.RepaintArea.paint(RepaintArea.java:240)</div><div><span class="" style="white-space:pre"> </span>at sun.lwawt.LWComponentPeer.handleJavaPaintEvent(LWComponentPeer.java:1314)</div><div><span class="" style="white-space:pre">       </span>at sun.lwawt.LWComponentPeer.handleEvent(LWComponentPeer.java:1198)</div><div><span class="" style="white-space:pre">        </span>at java.awt.Component.dispatchEventImpl(Component.java:4957)</div><div><span class="" style="white-space:pre">       </span>at java.awt.Component.dispatchEvent(Component.java:4703)</div><div><span class="" style="white-space:pre">   </span>at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:751)</div><div><span class="" style="white-space:pre">      </span>at java.awt.EventQueue.access$500(EventQueue.java:97)</div><div><span class="" style="white-space:pre">      </span>at java.awt.EventQueue$3.run(EventQueue.java:702)</div><div><span class="" style="white-space:pre">  </span>at java.awt.EventQueue$3.run(EventQueue.java:696)</div><div><span class="" style="white-space:pre">  </span>at java.security.AccessController.doPrivileged(Native Method)</div><div><span class="" style="white-space:pre">      </span>at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)</div><div><span class="" style="white-space:pre">      </span>at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)</div><div><span class="" style="white-space:pre">      </span>at java.awt.EventQueue$4.run(EventQueue.java:724)</div><div><span class="" style="white-space:pre">  </span>at java.awt.EventQueue$4.run(EventQueue.java:722)</div><div><span class="" style="white-space:pre">  </span>at java.security.AccessController.doPrivileged(Native Method)</div><div><span class="" style="white-space:pre">      </span>at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)</div><div><span class="" style="white-space:pre">      </span>at java.awt.EventQueue.dispatchEvent(EventQueue.java:721)</div><div><span class="" style="white-space:pre">  </span>at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)</div><div><span class="" style="white-space:pre">       </span>at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)</div><div><span class="" style="white-space:pre">  </span>at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)</div><div><span class="" style="white-space:pre">       </span>at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)</div><div><span class="" style="white-space:pre">   </span>at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)</div><div><span class="" style="white-space:pre">    </span>at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)</div><div>Caused by: java.lang.NoSuchMethodError: javax.media.opengl.GLAutoDrawable.getWidth()I</div><div><span class="" style="white-space:pre">       </span>at vtk.rendering.jogl.vtkAbstractJoglComponent$1.init(vtkAbstractJoglComponent.java:49)</div><div><span class="" style="white-space:pre">    </span>at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:640)</div><div><span class="" style="white-space:pre">  </span>at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:662)</div><div><span class="" style="white-space:pre">  </span>at javax.media.opengl.awt.GLCanvas$9.run(GLCanvas.java:1366)</div><div><span class="" style="white-space:pre">       </span>at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1275)</div><div><span class="" style="white-space:pre"> </span>... 30 more</div></div><div><br></div>-- <br><div class="gmail_signature">Dr. Yuri Khotyaintsev<br>Institutet för rymdfysik (IRF), Uppsala<br></div>
</div></div>