Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (739)
Games in Android Showcase (224)
games submitted by our members
Games in WIP (820)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  InvocationTargetException  (Read 5086 times)
0 Members and 1 Guest are viewing this topic.
Offline numknuf

Senior Newbie




bompi


« Posted 2006-12-01 18:33:38 »

I suddenly get this error on my Windows machine:

I reinstalled Java and removed any old class files or caches so it shouldn't be that. Anyone know what this is?

Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: java.lang.reflect.InvocationTargetException
   at javax.media.opengl.GLCanvas.disableBackgroundErase(GLCanvas.java:352)
   at javax.media.opengl.GLCanvas.addNotify(GLCanvas.java:154)
   at java.awt.Container.addNotify(Container.java:2500)
   at javax.swing.JComponent.addNotify(JComponent.java:4478)
   at java.awt.Container.addNotify(Container.java:2500)
   at javax.swing.JComponent.addNotify(JComponent.java:4478)
   at java.awt.Container.addNotify(Container.java:2500)
   at javax.swing.JComponent.addNotify(JComponent.java:4478)
   at java.awt.Container.addNotify(Container.java:2500)
   at javax.swing.JComponent.addNotify(JComponent.java:4478)
   at java.awt.Container.addNotify(Container.java:2500)
   at javax.swing.JComponent.addNotify(JComponent.java:4478)
   at java.awt.Container.addNotify(Container.java:2500)
   at javax.swing.JComponent.addNotify(JComponent.java:4478)
   at javax.swing.JRootPane.addNotify(JRootPane.java:680)
   at java.awt.Container.addNotify(Container.java:2500)
   at java.awt.Window.addNotify(Window.java:466)
   at java.awt.Frame.addNotify(Frame.java:501)
   at java.awt.Window.pack(Window.java:484)
   at sonarexplorer.SonarExplorerController$5.run(SonarExplorerController.java:110)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
   at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at javax.media.opengl.GLCanvas.disableBackgroundErase(GLCanvas.java:350)
   ... 26 more
Caused by: java.lang.UnsatisfiedLinkError: disableNativeBackgroundErase
   at sun.awt.windows.WCanvasPeer.disableNativeBackgroundErase(Native Method)
   at sun.awt.windows.WCanvasPeer.disableBackgroundErase(WCanvasPeer.java:114)
   at sun.awt.windows.WToolkit.disableBackgroundErase(WToolkit.java:376)
   ... 31 more
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #1 - Posted 2006-12-02 03:07:36 »

I'm sorry about this. It looks like the bug fix for 6333613 was backported to the 5.0 update release train in 5.0 update 10 and an accident caused a piece of the bug fix to be lost. We'll correct this as quickly as possible. Sorry also for the fact that it doesn't look like there's an easy way to download the standalone 5.0 update 9 JDK as a workaround. If necessary you could either use the JDK 6 weekly builds or the latest 1.4.2 update release.
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #2 - Posted 2006-12-02 03:34:32 »

One of the release engineers at Sun pointed out that the 5.0 update 9 JDK is still available at this link, which can also be reached from the archived releases page.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline numknuf

Senior Newbie




bompi


« Reply #3 - Posted 2006-12-02 10:57:43 »

That worked nicely. I thought it might be my program that used too much memory so I was starting to debug my program, but luckily it wasn't.  Grin
Offline c_lilian

Senior Devvie


Projects: 1


Java games will probably rock someday...


« Reply #4 - Posted 2007-01-22 17:49:16 »

Hi, What's the status of this bug

The QA team from GameTrust has reported to me crashes of my game with that stacktrace... looks like a showstopper for Jack Flowers  Sad

Lilian

Offline Ken Russell

JGO Coder




Java games rock!


« Reply #5 - Posted 2007-01-22 23:07:24 »

It's already been worked around in JOGL 1.1.0-rc1.
Offline c_lilian

Senior Devvie


Projects: 1


Java games will probably rock someday...


« Reply #6 - Posted 2007-01-23 14:49:02 »

cool, thanks !

I've switched to that version, and everything works fine (I haven't tested the applet yet)

Lilian Smiley


Offline hilmi

Senior Newbie





« Reply #7 - Posted 2007-02-03 06:52:48 »

I'm sorry about this. It looks like the bug fix for 6333613 was backported to the 5.0 update release train in 5.0 update 10 and an accident caused a piece of the bug fix to be lost. We'll correct this as quickly as possible. Sorry also for the fact that it doesn't look like there's an easy way to download the standalone 5.0 update 9 JDK as a workaround. If necessary you could either use the JDK 6 weekly builds or the latest 1.4.2 update release.


I got the same exception to my applet. It was working quite good with the earlier versions of jre. Since it is an applet, "use the previous version" solution doesn't work me because all users' jre's are automatically updated.

My applet was a dance simulation. http://www.ccd.rpi.edu/Eglash/csdt/subcult/brdance/software/dancer.html

What should I do to fix it? We need to fix it urgently.

Thanks in advance.
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #8 - Posted 2007-02-03 12:49:42 »

Update to the latest release version of JOGL. Either the current 1.1.0-rc2 or the previous 1.1.0-rc1 works around this bug.
Offline hilmi

Senior Newbie





« Reply #9 - Posted 2007-02-03 21:44:53 »

Update to the latest release version of JOGL. Either the current 1.1.0-rc2 or the previous 1.1.0-rc1 works around this bug.


Thanks for your reply, Ken.
I copied the latest release of jogl.jar and other binaries to the required folder, and built the project.

This time I get the error of
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
java.io.FileNotFoundException: C:\Documents and Settings\Administrator\IdeaProjects\dancer\gluegen-rt-natives-windows-i586.jar (The system cannot find the file specified)
   at java.io.FileInputStream.open(Native Method)
   at java.io.FileInputStream.<init>(FileInputStream.java:106)
   at java.io.FileInputStream.<init>(FileInputStream.java:66)
   at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
   at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
   at com.sun.opengl.util.JOGLAppletLauncher.saveNativesJarLocally(JOGLAppletLauncher.java:740)
   at com.sun.opengl.util.JOGLAppletLauncher.refreshJOGL(JOGLAppletLauncher.java:630)
   at com.sun.opengl.util.JOGLAppletLauncher.access$100(JOGLAppletLauncher.java:156)
   at com.sun.opengl.util.JOGLAppletLauncher$4.run(JOGLAppletLauncher.java:401)
Unable to install the native file locally


It has passed about 6 months since I wrote my last code in JOGL so I can't figure out what is going on now. Am I supposed to do smt. with gluegen-rt-natives-windows-i586.jar or what?

Thanks,
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #10 - Posted 2007-02-04 09:15:44 »

Yes, the requirements of the JOGLAppletLauncher changed in JOGL 1.1.0. See the javadoc for the applet launcher class. Basically, you need to download and unpack the GlueGen runtime jar files from the latest release build of that project and host those jar files on your server alongside jogl.jar and the jogl-natives jars.
Offline hilmi

Senior Newbie





« Reply #11 - Posted 2007-02-04 20:23:59 »


thanks Ken.

Everything works fine now...
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 
Ecumene (61 views)
2017-09-30 02:57:34

theagentd (82 views)
2017-09-26 18:23:31

cybrmynd (189 views)
2017-08-02 12:28:51

cybrmynd (189 views)
2017-08-02 12:19:43

cybrmynd (194 views)
2017-08-02 12:18:09

Sralse (206 views)
2017-07-25 17:13:48

Archive (770 views)
2017-04-27 17:45:51

buddyBro (904 views)
2017-04-05 03:38:00

CopyableCougar4 (1454 views)
2017-03-24 15:39:42

theagentd (1333 views)
2017-03-24 15:32:08
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!