Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (292)
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  
  [SOLVED]Mac OS X Intel 64-bit + Java 6 + jsr-231-webstart-current = exception?  (Read 929 times)
0 Members and 1 Guest are viewing this topic.
Offline cgunn

Senior Newbie





« Posted 2009-03-13 18:00:02 »

Has anyone else experienced the following exception when running JOGL under the conditions listed in the posting subject line? I had no problems developing with JOGL or running JOGL webstarts (using jsr-231-webstart-current) when using Java 5, but when I switch to Java 6 (for webstarts) I get the following exception:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
   at com.sun.opengl.impl.JAWT.size(JAWT.java:17)
   at com.sun.opengl.impl.JAWT.create(JAWT.java:25)
   at com.sun.opengl.impl.JAWT$1.run(JAWT.java:97)
   at java.security.AccessController.doPrivileged(Native Method)
   at com.sun.opengl.impl.JAWT.getJAWT(JAWT.java:95)
   at com.sun.opengl.impl.macosx.MacOSXOnscreenGLDrawable.lockSurface(MacOSXOnscreenGLDrawable.java:144)
   at com.sun.opengl.impl.macosx.MacOSXOnscreenGLContext.makeCurrentImpl(MacOSXOnscreenGLContext.java:57)
   at com.sun.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:134)
   at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:182)
   at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:412)
   at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)
   at de.jreality.jogl.Viewer.run(Viewer.java:421)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:300)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:210)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:200)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:195)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:187)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Caused by: java.lang.RuntimeException: Please port CPU detection (32/64 bit) to your platform (mac os x/x86_64)
   at com.sun.gluegen.runtime.CPU.<clinit>(CPU.java:73)
   ... 20 more
Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: Attempt to make the same context current twice on thread Thread[AWT-EventQueue-0,6,main]
   at com.sun.opengl.impl.GLContextLock.lock(GLContextLock.java:83)
   at com.sun.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:131)
   at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:182)
   at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:412)
   at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)
   at de.jreality.jogl.Viewer.run(Viewer.java:421)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:300)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:210)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:200)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:195)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:187)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)


Any hints appreciated.
Offline bienator

Senior Member




OutOfCoffeeException


« Reply #1 - Posted 2009-03-13 19:03:36 »

1  
Please port CPU detection (32/64 bit) to your platform (mac os x/x86_64)


i guess JOGL can't parse the CPU string when run on the apple 64bit vm.

it should be fixed in 1.1.1 - can't explain why this is happening (maybe clearing the webstart cache solves it already).
https://gluegen.dev.java.net/source/browse/gluegen/trunk/src/java/com/sun/gluegen/runtime/CPU.java?rev=81&view=log

Offline cgunn

Senior Newbie





« Reply #2 - Posted 2009-03-13 20:45:30 »

Thanks for the quick reply.  The link to the source code of CPU.java was enlightening.

In the meantime I found the following thread in this forum regarding this problem:

http://www.java-gaming.org/topics/error-please-port-cpu-detection-32-64-bit-to-your-platform-mac-os-x-x86-64/19673/view.html

 Now I'm trying to follow the advice in the above thread, where  the blame is laid on old copies of gluegen-rt.jar lying around in system folders.


Games published by our own members! Check 'em out!
Try the Free Demo of Droid Assault
Offline cgunn

Senior Newbie





« Reply #3 - Posted 2009-03-15 10:13:32 »

I found the offending copy of glugen-rt.tar, removed it, and everything works fine.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars and Titan!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (67 views)
2013-05-17 21:29:12

alaslipknot (76 views)
2013-05-16 21:24:48

gouessej (109 views)
2013-05-16 00:53:38

gouessej (104 views)
2013-05-16 00:17:58

theagentd (115 views)
2013-05-15 15:01:13

theagentd (104 views)
2013-05-15 15:00:54

StreetDoggy (149 views)
2013-05-14 15:56:26

kutucuk (172 views)
2013-05-12 17:10:36

kutucuk (170 views)
2013-05-12 15:36:09

UnluckyDevil (179 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.268 seconds with 21 queries.