Login  Register

NoSuchMethodError on initSingleton();

Posted by John on Feb 05, 2012; 3:48am
URL: https://forum.jogamp.org/NoSuchMethodError-on-initSingleton-tp3716593.html

Hi,
I am trying to incorporate with JAVA swing and Jogl.
I used JFrame and made a button on a frame so that when an user clicks it opens another window for JOGL.
However it works on some examples yet does not work on some. It is strange.
Can anyone knows how to fix this error?
Thanks for the help.

Here is the error message:
The Thread: AWT-EventQueue-0 threw the uncaught exception: javax.media.opengl.GLDrawableFactory.initSingleton()V.  Exiting the application
java.lang.NoSuchMethodError: javax.media.opengl.GLDrawableFactory.initSingleton()V
        at javax.media.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1244)
        at javax.media.opengl.GLProfile.access$000(GLProfile.java:75)
        at javax.media.opengl.GLProfile$1.run(GLProfile.java:133)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.media.opengl.GLProfile.initSingleton(GLProfile.java:122)
        at javax.media.opengl.GLProfile.initSingleton(GLProfile.java:151)
        at javax.media.opengl.GLProfile.getProfileMap(GLProfile.java:1688)
        at javax.media.opengl.GLProfile.get(GLProfile.java:652)
        at javax.media.opengl.GLProfile.get(GLProfile.java:668)
        at edu.umn.jpstitch.ui.volumeTab.ThreeDimensionWindow.<init>(ThreeDimensionWindow.java:23)
        at edu.umn.jpstitch.ui.volumeTab.ThreeDimensionWindow.<clinit>(ThreeDimensionWindow.java:17)
        at edu.umn.jpstitch.ui.volumeTab.ButtonListener.actionPerformed(ButtonListener.java:29)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$000(Unknown Source)
        at java.awt.EventQueue$1.run(Unknown Source)
        at java.awt.EventQueue$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue$2.run(Unknown Source)
        at java.awt.EventQueue$2.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(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)