Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (581)
games submitted by our members
Games in WIP (500)
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  
  Interesting error in applet  (Read 2884 times)
0 Members and 1 Guest are viewing this topic.
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 12


Game Engineer


« Posted 2010-07-13 14:32:51 »

When trying to run:
http://www.otcsw.com/applet/PixelSplosion/collisiontest.html

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
7/13/10 5:16:07 AM   Safari[209]   Apple Java Plugin: Unexpected exception occurred (/SourceCache/JavaJDK16/JavaJDK16-279/deploy/src/plugin/macosx/native/apple/applet/JavaWebKitView.m - -[JavaWebKitView callDestroy:] : 300)
7/13/10 5:16:07 AM   Safari[209]   java.lang.NullPointerException
   at sun.plugin.viewer.WebKitPluginObject.destroyPlugin(WebKitPluginObject.java:657)
   at sun.plugin.viewer.WebKitPluginObject.destroyPlugin(WebKitPluginObject.java:640)
7/13/10 5:16:07 AM   Safari[209]      Please file a bug report at http://developer.apple.com/java/ with this message and a reproducible test case.
7/13/10 5:16:16 AM   [0x0-0x1e01e].com.apple.Safari[209]   Fatal error occured (4): forbid thread creation in disposed TG
7/13/10 5:16:16 AM   [0x0-0x1e01e].com.apple.Safari[209]   java.lang.IllegalThreadStateException: forbid thread creation in disposed TG
7/13/10 5:16:16 AM   [0x0-0x1e01e].com.apple.Safari[209]      at sun.plugin.security.ActivatorSecurityManager.checkAccess(ActivatorSecurityManager.java:159)
7/13/10 5:16:16 AM   [0x0-0x1e01e].com.apple.Safari[209]      at java.lang.ThreadGroup.checkAccess(ThreadGroup.java:299)
7/13/10 5:16:16 AM   [0x0-0x1e01e].com.apple.Safari[209]      at java.lang.Thread.init(Thread.java:332)
7/13/10 5:16:16 AM   [0x0-0x1e01e].com.apple.Safari[209]      at java.lang.Thread.<init>(Thread.java:379)
7/13/10 5:16:16 AM   [0x0-0x1e01e].com.apple.Safari[209]      at org.lwjgl.util.applet.AppletLoader$4.<init>(AppletLoader.java:963)
7/13/10 5:16:16 AM   [0x0-0x1e01e].com.apple.Safari[209]      at org.lwjgl.util.applet.AppletLoader.getJarInputStream(AppletLoader.java:963)
7/13/10 5:16:16 AM   [0x0-0x1e01e].com.apple.Safari[209]      at org.lwjgl.util.applet.AppletLoader.downloadJars(AppletLoader.java:885)
7/13/10 5:16:16 AM   [0x0-0x1e01e].com.apple.Safari[209]      at org.lwjgl.util.applet.AppletLoader.run(AppletLoader.java:633)
7/13/10 5:16:16 AM   [0x0-0x1e01e].com.apple.Safari[209]      at java.lang.Thread.run(Thread.java:637)


This is happening in Java 1.6.0_20 32-bit with Safari 4.0.5 on Mac OS X 10.6.3 2Ghz Intel Core Duo. It does not happen on my work machine, which is Java 1.6.0_20 64-bit with Safari 5.0 on Mac OS X 10.6.4 2.53 Ghz Intel Core 2 Duo.

This causes the canvas to stay white (all the LWJGL loading happens, but I can never see anything). That error code is usually not reported (typically I see no errors at all). I tried to run it in 32-bit Java on my work machine and had no issues. I also installed Safari 5.0 on my home machine and it still wouldn't work.

I heard this may be a driver issue, but Minecraft is able to run fine on my home computer, as well as most LWJGL applets I try to use on it (although some do indeed get the white screen). Similarly, I am able to run this in the AppletLoader (from Eclipse) and I've gotten LWJGL stuff to work fine via Webstart. If I try running this with an older version of LWJGL will that potentially help things?

See my work:
OTC Software
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 70
Projects: 15


★★★★★


« Reply #1 - Posted 2010-07-13 21:03:39 »

Wish I had access to a mac so could debug this.

However, does look like some sort of mac issue and the AppletLoader, since its failing before reaching LWJGL code. If your up for some debugging grab the LWJGL AppletLoader code and see if you can narrow it to the problematic piece of code (its just java2d with a bit of other standard java stuff).

Most likely its some sort of jre/mac specific issue but should be fixable if we can find out why its failing.
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 12


Game Engineer


« Reply #2 - Posted 2010-07-14 00:26:55 »

Wish I had access to a mac so could debug this.

However, does look like some sort of mac issue and the AppletLoader, since its failing before reaching LWJGL code. If your up for some debugging grab the LWJGL AppletLoader code and see if you can narrow it to the problematic piece of code (its just java2d with a bit of other standard java stuff).

Most likely its some sort of jre/mac specific issue but should be fixable if we can find out why its failing.
Yeah, I might give that a try at some point in the future, but unfortunately I'm on a bit of a time crunch with this so that's not incredibly likely. We'll have to see - either way it will probably be worth making my own AppletLoader like Minecraft does in order to maximize reachability.

See my work:
OTC Software
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline bobjob

JGO Knight


Medals: 10
Projects: 6


David Aaron Muhar


« Reply #3 - Posted 2010-07-14 00:35:52 »

Im just stabbing in the dark.
1  
sun.plugin.security.ActivatorSecurityManager.checkAccess(ActivatorSecurityManager.java:159)

could it be that you have the certificate blocked in the key manager?

try this appletloader, its signed by a different certificate:
http://have2chat.net/mixedcode

My Projects
Games, Webcam chat, Video screencast, PDF tools.

Javagaming.org with chat room
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 70
Projects: 15


★★★★★


« Reply #4 - Posted 2010-07-14 00:37:33 »

either way it will probably be worth making my own AppletLoader like Minecraft does in order to maximize reachability.

thought minecraft just used the standard lwjgl appletloader. But yeh like bobjob above it does use its own certificate.
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 12


Game Engineer


« Reply #5 - Posted 2010-07-14 00:45:22 »

Im just stabbing in the dark.
1  
sun.plugin.security.ActivatorSecurityManager.checkAccess(ActivatorSecurityManager.java:159)

could it be that you have the certificate blocked in the key manager?

try this appletloader, its signed by a different certificate:
http://have2chat.net/mixedcode
Seems to work, I see a big bullseye on a red background.

Is there a reason this certificate would be blocked? I haven't blocked anything. Should I potentially just sign all the LWJGL jars with my own signature?

I could be wrong about Minecraft, but I had a look at its HTML and it doesn't look like AppletLoader.

See my work:
OTC Software
Offline bobjob

JGO Knight


Medals: 10
Projects: 6


David Aaron Muhar


« Reply #6 - Posted 2010-07-14 00:47:03 »

what it most likely sounds like, is that one of the jar files isnt signed.

maybe re-download the appletloader, and try again.  Undecided

My Projects
Games, Webcam chat, Video screencast, PDF tools.

Javagaming.org with chat room
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 70
Projects: 15


★★★★★


« Reply #7 - Posted 2010-07-14 00:51:19 »

I could be wrong about Minecraft, but I had a look at its HTML and it doesn't look like AppletLoader.
you are talking about the one found here right?
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 12


Game Engineer


« Reply #8 - Posted 2010-07-14 01:13:50 »

Nope, this one:

http://www.minecraft.net/game/

Also, bobjob, why would it work on one machine but not another if it was a signing issue?

See my work:
OTC Software
Offline bobjob

JGO Knight


Medals: 10
Projects: 6


David Aaron Muhar


« Reply #9 - Posted 2010-07-14 02:31:58 »

Also, bobjob, why would it work on one machine but not another if it was a signing issue?
not sure, it was just an idea.

Should I potentially just sign all the LWJGL jars with my own signature?
I also noticed the "forbid thread creation" in the error, so it might have been an issue with mixed code (could depend on the version of java yet it seems there the same version Undecided).
Did you manage to get a version working, after downloading? probably best to grab the version from the nightly build.
sorry Demonpants Im really not sure what the issue is.

By time crunch, when did you need to get it working by, I think the newer version of LWJGL 2.5 is coming out next week.

My Projects
Games, Webcam chat, Video screencast, PDF tools.

Javagaming.org with chat room
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 12


Game Engineer


« Reply #10 - Posted 2010-07-15 06:28:54 »

not sure, it was just an idea.
I also noticed the "forbid thread creation" in the error, so it might have been an issue with mixed code (could depend on the version of java yet it seems there the same version Undecided).
Did you manage to get a version working, after downloading? probably best to grab the version from the nightly build.
sorry Demonpants Im really not sure what the issue is.

By time crunch, when did you need to get it working by, I think the newer version of LWJGL 2.5 is coming out next week.
By time crunch I just mean a lot of things need to be done within a month. I'm not worried about rushing to get this working at the moment, it's just slightly annoying is all. But yeah I'm really not spending much time at this point. I've just been putting up test builds every couple of days for my artist to see, just a little bit troublesome I can't see them without using my work machine.

See my work:
OTC Software
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 12


Game Engineer


« Reply #11 - Posted 2010-07-15 06:35:55 »

One weird thing is that this works:

http://www.otcsw.com/applet/PixelSplosion/appletloader.html

And it's literally the exact same loader I'm using, just a different JAR file. Do I need to package my JAR some special way? Anything I might be able to put into it that would make it not work? It's pretty small and simple.

See my work:
OTC Software
Offline bobjob

JGO Knight


Medals: 10
Projects: 6


David Aaron Muhar


« Reply #12 - Posted 2010-07-15 15:12:29 »

did you sign the jar file?

My Projects
Games, Webcam chat, Video screencast, PDF tools.

Javagaming.org with chat room
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 605
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #13 - Posted 2010-07-15 15:19:21 »

If anything, make sure all your JARs are signed with the same key, otherwise you trigger 'mixed-mode' which is a hand warm steaming pile of something very specific.

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

JGO Kernel


Medals: 42
Projects: 12


Game Engineer


« Reply #14 - Posted 2010-07-15 15:26:50 »

I didn't sign it at all because I figured it doesn't do anything that makes it need signing. I guess that must be part of the issue, then. Sorry about that if it is the problem, I'm very unfamiliar with signed applets still. Webstart no doubt would have whined at me about this already...

See my work:
OTC Software
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 12


Game Engineer


« Reply #15 - Posted 2010-07-15 17:24:26 »

Blurg... Arrgg.... Grrr...

It works after signing it. I can't believe it &$%#ing works after signing it. &$%# that. I would have tried that from day 1 if it hadn't been working on my other machine with no issues. Sigh...

Well... whatever. At least everything is happy days again...

See my work:
OTC Software
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 605
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #16 - Posted 2010-07-15 18:34:13 »

Blurg... Arrgg.... Grrr...

It works after signing it. I can't believe it &$%#ing works after signing it. &$%# that. I would have tried that from day 1 if it hadn't been working on my other machine with no issues. Sigh...

Well... whatever. At least everything is happy days again...

Nice.

Next up: file a bug report and wait a few years Smiley

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

JGO Kernel


Medals: 42
Projects: 12


Game Engineer


« Reply #17 - Posted 2010-07-15 21:45:07 »

Hm. I just had a friend try it (also on a Mac, probably very similar specs to the two machines I've tried with) and he gets exactly the same thing (white screen).

Damn it.

Since LWJGL is open source maybe I'll just pull the AppletLoader apart and write my own. :/

See my work:
OTC Software
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 70
Projects: 15


★★★★★


« Reply #18 - Posted 2010-07-15 22:39:39 »

Hm. I just had a friend try it (also on a Mac, probably very similar specs to the two machines I've tried with) and he gets exactly the same thing (white screen).

Damn it.

Since LWJGL is open source maybe I'll just pull the AppletLoader apart and write my own. :/

be great if you do find a fix and contribute it back to LWJGL Smiley
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 12


Game Engineer


« Reply #19 - Posted 2010-07-16 04:17:39 »

be great if you do find a fix and contribute it back to LWJGL Smiley
Yeah if I do I definitely will put it into the repository.

See my work:
OTC Software
Pages: [1]
  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.

xsi3rr4x (53 views)
2014-04-15 18:08:23

BurntPizza (51 views)
2014-04-15 03:46:01

UprightPath (65 views)
2014-04-14 17:39:50

UprightPath (48 views)
2014-04-14 17:35:47

Porlus (65 views)
2014-04-14 15:48:38

tom_mai78101 (89 views)
2014-04-10 04:04:31

BurntPizza (149 views)
2014-04-08 23:06:04

tom_mai78101 (245 views)
2014-04-05 13:34:39

trollwarrior1 (203 views)
2014-04-04 12:06:45

CJLetsGame (210 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!