Login  Register

GLException: Error making context current

Posted by Sandhase on Feb 15, 2011; 2:10pm
URL: https://forum.jogamp.org/GLException-Error-making-context-current-tp2501477.html

Hello again,

I have an 3D Plot which uses an older version of JOGL. Now I have included this Plot in an applet which i want to display on a webpage.

It's all fine and the applet starts without any error messages. But there's nothing to see, too. the page is just white.

in the java console i see, that the applet starts correct and the init and start methods are called.
The data for the plot is correct.

i just get an error when closing the tab :

java.lang.reflect.InvocationTargetException
at com.sun.deploy.util.DeployAWTUtil.invokeAndWait(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.runOnEDT(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.media.opengl.GLException:Error making context current: 0x0
at com.sun.opengl.impl.windows.wgl.WindowsWGLContext.makeCurrentImpl(WindowsWGLContext.java:309)
at com.sun.opengl.impl.windows.wgl.WindowsOnscreenWGLContext.makeCurrentImpl(WindowsOnscreenWGLContext.java:65)
at com.sun.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:151)
at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLdrawableHelper.java:141)
at javax.media.opengl.awt.GLCanvas.dispose(GLCanvas.java:324)
at javax.media.opengl.awt.GLCanvas.removeNotify(GLCanvas.java:434)
at java.awt.Container.removeNotify(Unknown Source)
at java.awt.Container.remove(Unknown Source)
at java.awt.Container.remove(Unknown Source)
at sun.plugin2.applet.Plugin2manager$AppletExecutionRunnable$7.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Ausnahme: java.lang.reflect.InvocationTargetException

Any idea what might cause this strange behaviour?
br
Sandhase