JOGL Problems after recent changes

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

JOGL Problems after recent changes

Gregory Richards
I have this java application that uses JOGL and it worked great last week, without changing anything in the code i am suddenly getting all of these exceptions and the visual portion of the application isn't working whatsoever.  I'm just curious if anyone has experienced a similar problem within the past week or so and discovered a solution to the problem because I have no idea where to even begin to look.

Info: GLDrawableHelper.reshape: pre-exisiting GL error 0x500
Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: Caught NullPointerException: null on thread AWT-EventQueue-0
        at javax.media.opengl.GLException.newGLException(GLException.java:75)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1311)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131)
        at javax.media.opengl.awt.GLCanvas$11.run(GLCanvas.java:1394)
        at javax.media.opengl.Threading.invoke(Threading.java:223)
        at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:525)
        at javax.media.opengl.awt.GLCanvas.paint(GLCanvas.java:579)
        at sun.awt.RepaintArea.paintComponent(RepaintArea.java:264)
        at sun.awt.RepaintArea.paint(RepaintArea.java:240)
        at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:347)
        at java.awt.Component.dispatchEventImpl(Component.java:4937)
        at java.awt.Component.dispatchEvent(Component.java:4687)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
        at java.awt.EventQueue.access$200(EventQueue.java:103)
        at java.awt.EventQueue$3.run(EventQueue.java:694)
        at java.awt.EventQueue$3.run(EventQueue.java:692)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
        at java.awt.EventQueue$4.run(EventQueue.java:708)
        at java.awt.EventQueue$4.run(EventQueue.java:706)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: java.lang.NullPointerException
        at webgps.graphics.FastRingsAnimator.drawDefault(FastRingsAnimator.java:546)
        at webgps.graphics.FastRingsAnimator.display(FastRingsAnimator.java:339)
        at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:690)
        at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:672)
        at javax.media.opengl.awt.GLCanvas$10.run(GLCanvas.java:1383)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1277)
        ... 28 more
Exception in thread "main-FPSAWTAnimator#00-Timer0" com.jogamp.opengl.util.AnimatorBase$UncaughtAnimatorException: java.lang.RuntimeException: javax.media.opengl.GLException: Caught NullPointerException: null on thread AWT-EventQueue-0
        at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:84)
        at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:449)
        at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:176)
        at java.util.TimerThread.mainLoop(Timer.java:555)
        at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.RuntimeException: javax.media.opengl.GLException: Caught NullPointerException: null on thread AWT-EventQueue-0
        at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58)
        at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:103)
        at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:201)
        at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:202)
        at javax.media.opengl.Threading.invoke(Threading.java:221)
        at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:525)
        at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:77)
        ... 4 more
Caused by: javax.media.opengl.GLException: Caught NullPointerException: null on thread AWT-EventQueue-0
        at javax.media.opengl.GLException.newGLException(GLException.java:75)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1311)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131)
        at javax.media.opengl.awt.GLCanvas$11.run(GLCanvas.java:1394)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:241)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
        at java.awt.EventQueue.access$200(EventQueue.java:103)
        at java.awt.EventQueue$3.run(EventQueue.java:694)
        at java.awt.EventQueue$3.run(EventQueue.java:692)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: java.lang.NullPointerException
        at webgps.graphics.FastRingsAnimator.drawDefault(FastRingsAnimator.java:546)
        at webgps.graphics.FastRingsAnimator.display(FastRingsAnimator.java:339)
        at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:690)
        at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:672)
        at javax.media.opengl.awt.GLCanvas$10.run(GLCanvas.java:1383)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1277)
        ... 16 more
Reply | Threaded
Open this post in threaded view
|

Re: JOGL Problems after recent changes

gouessej
Administrator
Hi

The NullPointerException comes from your own code:
Caused by: java.lang.NullPointerException
        at webgps.graphics.FastRingsAnimator.drawDefault(FastRingsAnimator.java:546)

Please provide a small test case if you really think that it's caused by a regression in JOGL itself.

Edit.: Please use JOGL 2.3.0 which isn't the case according to your stack trace that still mentions the package "javax.media.opengl" absent of the very latest version. The AWT GLCanvas is now in com.jogamp.opengl.awt:
https://github.com/sgothel/jogl/blob/master/src/jogl/classes/com/jogamp/opengl/awt/GLCanvas.java
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: JOGL Problems after recent changes

Gregory Richards
Where can I find the JOGL 2.3.0 jar file that I can add to my classpath in order to make that particular import statement work.
Reply | Threaded
Open this post in threaded view
|

Re: JOGL Problems after recent changes

gouessej
Administrator
It's explained in the wiki, at the very beginning:
http://jogamp.org/wiki/index.php/Downloading_and_installing_JOGL

N.B: JOGL is composed of several JARs, not only one.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: JOGL Problems after recent changes

Gregory Richards
ok, I did all that, btw I should mention that this is not my code, we were asked to update an application written about 5 years ago for my software engineering class and its so poorly documented I have spent entirely too many hours just picking apart the code just to understand it.

With that being said, I am new to JOGL so a lot of this stuff I am not familiar with at all. I updated the jar and now the methods that were being called in the GLCanvas class that worked last week simply do not exist anymore (i.e. addMouseListener(), addMouseMotionListener())

I am going to continue researching to find out how I can replace these methods but do you happen to know what I can do or at least where is a good spot to start looking?
Reply | Threaded
Open this post in threaded view
|

Re: JOGL Problems after recent changes

Sven Gothel
Administrator
On 03/17/2015 06:12 PM, Gregory Richards [via jogamp] wrote:

> ok, I did all that, btw I should mention that this is not my code, we were
> asked to update an application written about 5 years ago for my software
> engineering class and its so poorly documented I have spent entirely too many
> hours just picking apart the code just to understand it.
>
> With that being said, I am new to JOGL so a lot of this stuff I am not
> familiar with at all. I updated the jar and now the methods that were being
> called in the GLCanvas class that worked last week simply do not exist anymore
> (i.e. addMouseListener(), addMouseMotionListener())
>
> I am going to continue researching to find out how I can replace these methods
> but do you happen to know what I can do or at least where is a good spot to
> start looking?

See my '2.3.0 Release' post, copied below.

You might be 'victim' of the package relocation
  javax.media.opengl -> com.jogamp.opengl

~Sven

On 03/12/2015 11:14 AM, Sven Gothel wrote:>> +++
>> >
>> > This is a NON BACKWARD COMPATIBLE release,
>> > introducing API CHANGES.
>> > It is CAN NOT be used as a binary/jar drop-in replacement.
>> >
>> > See
>> >
<http://jogamp.org/wiki/index.php/Jogamp_Versioning_and_Releases#Semantic_Version_Numbers>
>> >
>> > +++
> See:
>   <http://jogamp.org/deployment/v2.3.0/archive/API-Changes/>
>
>   Extracted from our GlueGen and JOGL semantic versioning unit tests!




signature.asc (828 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: JOGL Problems after recent changes

Sven Gothel
Administrator
In reply to this post by Gregory Richards
On 03/17/2015 07:02 PM, Sven Gothel wrote:

> On 03/17/2015 06:12 PM, Gregory Richards [via jogamp] wrote:
>> ok, I did all that, btw I should mention that this is not my code, we were
>> asked to update an application written about 5 years ago for my software
>> engineering class and its so poorly documented I have spent entirely too many
>> hours just picking apart the code just to understand it.
>>
>> With that being said, I am new to JOGL so a lot of this stuff I am not
>> familiar with at all. I updated the jar and now the methods that were being
>> called in the GLCanvas class that worked last week simply do not exist anymore
>> (i.e. addMouseListener(), addMouseMotionListener())
>>
>> I am going to continue researching to find out how I can replace these methods
>> but do you happen to know what I can do or at least where is a good spot to
>> start looking?
>
>
Further:
 <http://jogamp.org/wiki/index.php/Release_2.3.0>
 <http://jogamp.org/wiki/index.php/SW_Tracking_Report_Objectives_for_the_release_2.3.0>
 <https://jogamp.org/bugzilla/show_bug.cgi?id=682>

and also note that you _can_ link your app
against the previous release if you want to.

In case you use our online resources for jogamp jar files,
then you would need to use the dedicated version
instead of 'jogamp-current'.

See: <http://jogamp.org/wiki/index.php/Jogamp_Versioning_and_Releases>
and <http://jogamp.org/wiki/index.php/Jogamp_Versioning_and_Releases#Current_Aliases>.

However, it is advised to update to the latest, of course!

~Sven

> See my '2.3.0 Release' post, copied below.
>
> You might be 'victim' of the package relocation
>   javax.media.opengl -> com.jogamp.opengl
>
> ~Sven
>
> On 03/12/2015 11:14 AM, Sven Gothel wrote:>> +++
>>>>
>>>> This is a NON BACKWARD COMPATIBLE release,
>>>> introducing API CHANGES.
>>>> It is CAN NOT be used as a binary/jar drop-in replacement.
>>>>
>>>> See
>>>>
> <http://jogamp.org/wiki/index.php/Jogamp_Versioning_and_Releases#Semantic_Version_Numbers>
>>>>
>>>> +++
>> See:
>>   <http://jogamp.org/deployment/v2.3.0/archive/API-Changes/>
>>
>>   Extracted from our GlueGen and JOGL semantic versioning unit tests!
>


signature.asc (828 bytes) Download Attachment