Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2
  ignore  |  Print  
  Mac OS Java Update ( 1.6.0_20) breaks JOGL/LWJGL applets  (Read 6946 times)
0 Members and 1 Guest are viewing this topic.
Offline shawnkendall

Senior Member





« Posted 2010-05-19 02:19:45 »

Hi all,

I'm not even sure where to post this anymore, but it's seems pretty bad to me so I am cross-posting this from:
http://jogamp.762907.n3.nabble.com/Mac-OS-Java-Update-1-6-0-20-breaks-JOGL-applets-tp827857ef762907.html

Sorry in advance if this is wrong place.

Hi all,

It seems that the latest Mac OS Java update break JOGL applets, which our product uses :-(.
On this site in fact you can see the applets no longer work if you just installed the latest release from Apple...

More than just posting the news, I will try to give some info to help with sorting this mess out Smiley
I will attempt to open page:
http://jogamp.org/jogl-demos/www/applettest-jnlp.html

First off, when going to the applet a new (at least for Mac users) dialog pops up, the "Welcome to the Java Extension Installer".  Yikes! This just about scares my users out of their pants, as before the JNLP-applet process was as clean as a Flash app, no dialog, no install, just run. OUCH.

Second, after clicking though that dialog, it say "error" in the applet due to security issues and the console has this dump:
ava.lang.reflect.InvocationTargetException
        at com.sun.deploy.util.DeployAWTUtil.invokeAndWait(DeployAWTUtil.java:116)
        at sun.plugin2.applet.Plugin2Manager.runOnEDT(Plugin2Manager.java:3415)
        at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:2967)
        at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1444)
        at java.lang.Thread.run(Thread.java:637)
Caused by: java.lang.SecurityException: attempted to open sandboxed jar http://jogamp.org/deployment/webstart/jogl.all.cdc.jar as a Trusted-Library
        at com.sun.deploy.security.CPCallbackHandler$ParentElement.checkResource(CPCallbackHandler.java:354)
        at com.sun.deploy.security.DeployURLClassPath$JarLoader.checkResource(DeployURLClassPath.java:790)
        at com.sun.deploy.security.DeployURLClassPath$JarLoader.getResource(DeployURLClassPath.java:980)
        at com.sun.deploy.security.DeployURLClassPath$JarLoader.getResource(DeployURLClassPath.java:896)
        at com.sun.deploy.security.DeployURLClassPath.getResource(DeployURLClassPath.java:231)
        at sun.plugin2.applet.Plugin2ClassLoader$2.run(Plugin2ClassLoader.java:796)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Plugin2ClassLoader.java:785)
        at sun.plugin2.applet.JNLP2ClassLoader.findClass(JNLP2ClassLoader.java:317)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
        at java.lang.Class.getConstructor0(Class.java:2699)
        at java.lang.Class.newInstance0(Class.java:326)
        at java.lang.Class.newInstance(Class.java:308)
        at sun.plugin2.applet.Plugin2Manager$12.run(Plugin2Manager.java:2955)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Exception: java.lang.reflect.InvocationTargetException

3) After going into Java Preferences, setting "Run Applets: In their own process" and under ADVANCED tab setting security to "Disable - insecure, not recommended" and rerunning, we now get this:

VALIDATE: libjogl_cg.jnilib
java.io.IOException: Cannot validate certificate for libjogl_cg.jnilib
        at org.jdesktop.applet.util.JNLPAppletLauncher.validateCertificates(JNLPAppletLauncher.java:1815)
        at org.jdesktop.applet.util.JNLPAppletLauncher.processNativeJar(JNLPAppletLauncher.java:1579)
        at org.jdesktop.applet.util.JNLPAppletLauncher.initResources(JNLPAppletLauncher.java:1350)
        at org.jdesktop.applet.util.JNLPAppletLauncher.initAndStartApplet(JNLPAppletLauncher.java:1254)
        at org.jdesktop.applet.util.JNLPAppletLauncher.access$000(JNLPAppletLauncher.java:658)
        at org.jdesktop.applet.util.JNLPAppletLauncher$1.run(JNLPAppletLauncher.java:907)
May 18, 2010 8:10:31 PM org.jdesktop.applet.util.JNLPAppletLauncher displayError
SEVERE: java.io.IOException: Cannot validate certificate for libjogl_cg.jnilib

I hope you can reproduce this, and I hope this is the right place to post this kind of thing!
Thanks for any help.

Shawn Kendall
IMILabs

Shawn Kendall
Cosmic Interactive, LLC
http://www.facebook.com/BermudaDash
Offline bienator

Senior Member




OutOfCoffeeException


« Reply #1 - Posted 2010-05-19 03:38:55 »

answer on the other side Smiley

Offline shawnkendall

Senior Member





« Reply #2 - Posted 2010-05-19 03:59:44 »

This is a discussion started there now, but basically they are punting, saying that this stuff is old JOGL and they don't maintain it.

So, I guess I would then ask, where to look for the JOGL peeps now.

Is JOGL really dead?

Shawn Kendall
Cosmic Interactive, LLC
http://www.facebook.com/BermudaDash
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline elias4444

Junior Member





« Reply #3 - Posted 2010-05-19 04:43:54 »

I just installed the 1.6.0_20 release on my Mac and it appears to have broken LWJGL applets everywhere. I haven't had a chance to test it yet on Windows though. Is there anyway to fix it?

On a good note... Java applets now work in Chrome on Mac!!!!! I am VERY excited about that!

Offline zammbi

JGO Coder


Medals: 4



« Reply #4 - Posted 2010-05-19 04:53:43 »

Seems Jogl is also effected: http://www.java-gaming.org/topics/mac-os-java-update-1-6-0-20-breaks-jogl-lwjgl-applets/22445/msg/0/view/topicseen.html#new

Current project - Rename and Sort
Offline zammbi

JGO Coder


Medals: 4



« Reply #5 - Posted 2010-05-19 04:55:12 »

Looks like LWJGL is also effected : http://www.java-gaming.org/index.php/topic,22447.0.html
Undecided

Current project - Rename and Sort
Offline elias4444

Junior Member





« Reply #6 - Posted 2010-05-19 05:07:23 »

I just tried it out on Windows, and LWJGL applets seem to work fine... just needs a fix for the Mac.

Offline shawnkendall

Senior Member





« Reply #7 - Posted 2010-05-19 06:04:32 »

Hey, actually, I posted a good test matrix over at the LWJGL dev forums as well. (OS/Browser/security settings)

Java (applets) is broke but good on Macs now Sad((((((.

Shawn Kendall
Cosmic Interactive, LLC
http://www.facebook.com/BermudaDash
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 74
Projects: 15


★★★★★


« Reply #8 - Posted 2010-05-19 10:56:57 »

hmm, firstly it doesn't help too much that there are so many forum posts spread everywhere about this problem, (jogl forums, lwjgl forums, jogl and lwjgl sections here on jgo). A mod should at least on jgo merge the topics since its essentially the same problem and we (lwjgl and jogl) will have better luck working together at a centralised place.

As not many ppl (including dev's on lwjgl/jogl) have macs, we'll need to rely on you mac ppl to help Smiley

Now we should first try to narrow the problem down to see if its related to :

1) the rumoured macs plugin2 change where CoreGraphics is forced, see here

2) Implementing the security model that was forced on windows/linux users in Java 6u18, to verify this go to the Java Control Panel -> Click Advanced Tab -> Security -> Click Mixed Code -> Check Disable and try a LWJGL/JOGL applet to see if it works.

3) Do other Signed Java Applets work? (other than opengl ones)

As for applets still working in firefox I'm guessing this is related to Firefox useing a 3rd party Java Embedding Plugin (on mac) http://javaplugin.sourceforge.net/Readme.html while Safari uses Apple's proprietary plugin interface. Not sure what Chrome is using.
Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #9 - Posted 2010-05-19 11:04:19 »

what kappa said, but I want to emphasize that we already updated our code and applet to "work" on u20  persecutioncomplex

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

JGO Knight


Medals: 32



« Reply #10 - Posted 2010-05-19 19:18:42 »

This sounds sort of like:
http://www.java-gaming.org/topics/security-update-breaks-a-lot-of-stuff/22230/view.html

when most other OS's upgraded to 1.6_u19

Offline shawnkendall

Senior Member





« Reply #11 - Posted 2010-05-19 20:26:12 »

It is that but also this: http://www.java-gaming.org/topics/hardware-accelerated-java-applets-to-break-in-mac-os-x-update/22167/view.html

Even when the security fixes are made (and then super crappy dialog goes up Sad ), and everything loads and runs fine, the applet frame is just white.  The native rendering is going off-screen it seems.

Shawn Kendall
Cosmic Interactive, LLC
http://www.facebook.com/BermudaDash
Offline ChrisM

JGO Coder


Medals: 1
Projects: 1


END OF LINE.


« Reply #12 - Posted 2010-05-20 00:42:19 »

Well, the person running JavaFX at Oracle is John Burkey.  I would assume that most of the changes today are to support the JavaFX initiative.  As John is listed as the architect behind JavaFX now, you should really e-mail him for the answers.  If anyone hears anything, let the community know!

Offline shawnkendall

Senior Member





« Reply #13 - Posted 2010-05-20 03:16:59 »

No offense Chris, but what would we say...

"Apple released it's own Java update that broke this (now) third party, open source, native code based, extension I use, oh yeah, but only in applets is it broke.  Can you look into it for me?"

:-)

On a serious note, this is pretty off branch, I can't see Oracle/Sun giving a crap and over on their forums there has been some (related) posts going on for several months and no engineer responses. (could post link if anyone cares)

'Been chasing this dream for long time, I have to say looking pretty damn bleak....

Shawn Kendall
Cosmic Interactive, LLC
http://www.facebook.com/BermudaDash
Offline princec

JGO Kernel


Medals: 339
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #14 - Posted 2010-05-20 11:02:22 »

Our best course for redress is to talk to the Apple team responsible for the maintenance of Java on OSX and ask them to start including JOGL and LWJGL tests as part of their build process. They shouldn't just break working deployed code like that - whether we're open sourced or not.

Cas Smiley

Offline kappa
« League of Dukes »

JGO Kernel


Medals: 74
Projects: 15


★★★★★


« Reply #15 - Posted 2010-05-20 12:02:30 »

It is that but also this: http://www.java-gaming.org/topics/hardware-accelerated-java-applets-to-break-in-mac-os-x-update/22167/view.html

Even when the security fixes are made (and then super crappy dialog goes up Sad ), and everything loads and runs fine, the applet frame is just white.  The native rendering is going off-screen it seems.

ok so you can confirm, that the main issue with JOGL/LWJGL applets now no longer working is that they are forcing offscreen rendering (CoreGraphics)? and that the security part works (Trust-Library in META-INF) ?

Is the source code for Apples plugin available? if so we could have a look to seeing if its possible to hack it and make it use the old classic rendering mode.

We could also request Apples Java Engineers to add something like a VM parameter that allows JOGL/LWJGL applets to work, anyone have any links to the forums or mailing lists they use?

Other than that it looks like we're pretty much screwed on mac with no easy fix in sight. We could always use a popup window (native window) to get JOGL/LWJGL applets running but that defeats the advantage of having it embedded in the browser.
Offline shawnkendall

Senior Member





« Reply #16 - Posted 2010-05-20 13:47:06 »

Not to be discouraging (even though I am) but Apple is not going to do anything.  I was on there Java mailing list for years and even registered (paid) developer in their dev program.  They don't/can't care about outside tech ESPECIALLY cross-platofrom stuff, other than pure HTML 5.0.


Shawn Kendall
Cosmic Interactive, LLC
http://www.facebook.com/BermudaDash
Offline Markus_Persson

JGO Wizard


Medals: 14
Projects: 19


Mojang Specifications


« Reply #17 - Posted 2010-05-20 14:20:30 »

Minecraft appears to be working for me on mac with the latest java.

Quote
Notch$ java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)

Play Minecraft!
Online Riven
« League of Dukes »

JGO Overlord


Medals: 742
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #18 - Posted 2010-05-20 14:34:45 »

Minecraft appears to be working for me on mac with the latest java.


Maybe the difference is that you don't use the LWJGL certificate for LWJGL JARs, but use your own certificate for *all* JARs.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Markus_Persson

JGO Wizard


Medals: 14
Projects: 19


Mojang Specifications


« Reply #19 - Posted 2010-05-20 14:36:30 »

That's my guess, too.

Play Minecraft!
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 74
Projects: 15


★★★★★


« Reply #20 - Posted 2010-05-20 14:51:01 »

Minecraft appears to be working for me on mac with the latest java.


cool, thats good to know.

btw just curious which browser do you use?

and does the lwjgl gears applet work for you? http://www.lwjgl.org/applet
Offline Markus_Persson

JGO Wizard


Medals: 14
Projects: 19


Mojang Specifications


« Reply #21 - Posted 2010-05-20 15:25:46 »

Yes, it works. Firefox.

Play Minecraft!
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 74
Projects: 15


★★★★★


« Reply #22 - Posted 2010-05-20 15:29:47 »

Yes, it works. Firefox.

ah thats why it probably works, the issue seems to be with Safari (and maybe Chrome too).
Offline Markus_Persson

JGO Wizard


Medals: 14
Projects: 19


Mojang Specifications


« Reply #23 - Posted 2010-05-20 15:32:49 »

Both minecraft and the gears applet work for me in safari too.

Play Minecraft!
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 74
Projects: 15


★★★★★


« Reply #24 - Posted 2010-05-20 15:45:58 »

Both minecraft and the gears applet work for me in safari too.

odd, well at least its a big relief for the lwjgl devs Smiley.

maybe the problems on shawnkendall side? broken update?

any other mac users here that can confirm if applets work or are broke?
Offline ChrisM

JGO Coder


Medals: 1
Projects: 1


END OF LINE.


« Reply #25 - Posted 2010-05-20 16:29:38 »

No offense Chris, but what would we say...

"Apple released it's own Java update that broke this (now) third party, open source, native code based, extension I use, oh yeah, but only in applets is it broke.  Can you look into it for me?"

:-)

On a serious note, this is pretty off branch, I can't see Oracle/Sun giving a crap and over on their forums there has been some (related) posts going on for several months and no engineer responses. (could post link if anyone cares)

'Been chasing this dream for long time, I have to say looking pretty damn bleak....

Not offending me in the slightest.  Just letting you know who might have an answer for you.  As I understand it, John came from Apple and knows the people over there.  As he is responsible for FX, perhaps he knows what they are thinking....

Offline elias4444

Junior Member





« Reply #26 - Posted 2010-05-20 16:56:18 »

Verified:

LWJGL Gears Applet works in both Firefox and Safari... it loads in Chrome, but does not display (sounds like a Chrome issue then).
Minecraft does the same.

Offline elias4444

Junior Member





« Reply #27 - Posted 2010-05-20 18:48:03 »

Also... when I run them on Chrome, I can hear them running (both game sound and video-card whine). I just can't see them.

Offline shawnkendall

Senior Member





« Reply #28 - Posted 2010-05-20 18:57:16 »

That is great news (for LWJGL).  We are about to run pretty extensive tests (3 diff Mac arch, 3 diff browsers, 2 security settings) with your applets and we'll post the results.

And can you give me two good applet links you think are working now?

[MOD]

Here is a variation that may be affecting our success.  In the Mac Java Preferences, we have
"Run Applets: [X] In their own process" set.  This is because on Leopard (not Snow), it is the only way to run Java 6.0.  What do you guys that are having success have it set to?  "Within the browser process" I bet?

Shawn Kendall
Cosmic Interactive, LLC
http://www.facebook.com/BermudaDash
Offline Markus_Persson

JGO Wizard


Medals: 14
Projects: 19


Mojang Specifications


« Reply #29 - Posted 2010-05-21 09:51:18 »

Yep, and it doesn't work if I switch it.

Play Minecraft!
Pages: [1] 2
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

Riven (3 views)
2014-07-23 21:16:32

Riven (5 views)
2014-07-23 21:07:15

Riven (5 views)
2014-07-23 20:56:16

ctomni231 (39 views)
2014-07-18 06:55:21

Zero Volt (36 views)
2014-07-17 23:47:54

danieldean (29 views)
2014-07-17 23:41:23

MustardPeter (32 views)
2014-07-16 23:30:00

Cero (47 views)
2014-07-16 00:42:17

Riven (48 views)
2014-07-14 18:02:53

OpenGLShaders (38 views)
2014-07-14 16:23:47
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!