GLWindow Unknown Error

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

GLWindow Unknown Error

Itun
In the init() function of my GLEventListener I `ve written:
KeyListenerImpl keyListner = null;
(27)KeyListener[] keyListeners = gLWindow.getKeyListeners();
KeyListenerImpl mouseListener = null;
MouseListener[] mouseListeners = gLWindow.getMouseListeners();
 And I have gotten:
Exception in thread "AWT-EventQueue-0-AWTAnimator-1" java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lcom.jogamp.newt.event.KeyListener;
        at jogamp.newt.WindowImpl.getKeyListeners(WindowImpl.java:1958)
        at com.jogamp.newt.opengl.GLWindow.getKeyListeners(GLWindow.java:815)
        at gl.render.GLEventListenerImpl.init(GLEventListenerImpl.java:27)
        at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:155)
        at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:175)
        at com.jogamp.newt.opengl.GLWindow$InitAction.run(GLWindow.java:585)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:356)
        at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:547)
        at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:523)
        at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:74)
        at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:140)
        at com.jogamp.opengl.util.Animator$MainLoop.run(Animator.java:180)
        at java.lang.Thread.run(Thread.java:662)