Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (521)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (589)
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  
  Applets stopped working on my blog  (Read 1889 times)
0 Members and 1 Guest are viewing this topic.
Offline Pakz

Junior Newbie





« Posted 2012-06-11 19:52:04 »

I have a game programming blog and have had working applets on it for more then a year. Today when I added 2 more applets the applets did not work. I checked older posts and the other applets did not work either. There was a Magic Number error report in the applet when it did not freeze the browser. I can not get the error report now since the browsers freeze when I load the pages.

I have Firefox and chrome and ie. They all freeze the browser when I go into the site.

The blog is here :
http://gameprogrammingstepbystep.blogspot.nl/

If someone can figure this out I would be very happy.
Offline 65K
« Reply #1 - Posted 2012-06-11 20:03:43 »

Dont know anything about applets, but here is the error report:

java.lang.InterruptedException
   at java.lang.Object.wait(Native Method)
   at sun.plugin2.message.Queue.waitForMessage(Unknown Source)
   at sun.plugin2.message.Pipe$2.run(Unknown Source)
   at com.sun.deploy.util.Waiter$1.wait(Unknown Source)
   at com.sun.deploy.util.Waiter.runAndWait(Unknown Source)
   at sun.plugin2.message.Pipe.receive(Unknown Source)
   at sun.plugin2.main.client.MessagePassingExecutionContext.doCookieOp(Unknown Source)
   at sun.plugin2.main.client.MessagePassingExecutionContext.getCookie(Unknown Source)
   at sun.plugin2.main.client.PluginCookieSelector.getCookieFromBrowser(Unknown Source)
   at com.sun.deploy.net.cookie.DeployCookieSelector.getCookieInfo(Unknown Source)
   at com.sun.deploy.net.cookie.DeployCookieSelector.get(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.setCookieHeader(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.writeRequests(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
   at java.net.HttpURLConnection.getResponseCode(Unknown Source)
   at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
   at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
   at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
   at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
   at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
   at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
sun.plugin2.main.client.PluginMain: unrecognized message ID 46

Offline ra4king

JGO Kernel


Medals: 355
Projects: 3
Exp: 5 years


I'm the King!


« Reply #2 - Posted 2012-06-11 22:00:54 »

This error?
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
basic: error: Incompatible magic value 1011373133 in class file euclideandistanceexample001.
java.lang.ClassFormatError: Incompatible magic value 1011373133 in class file euclideandistanceexample001
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(Unknown Source)
   at java.security.SecureClassLoader.defineClass(Unknown Source)
   at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
   at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
   at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
   at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)


This looks quite weird :S
Have you tried recompiling them?

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

Junior Newbie





« Reply #3 - Posted 2012-06-12 10:43:09 »

Yes, I recompiled the latest 2 and it did not help. The applets work offline but not online.
Offline Riven
« League of Dukes »

« JGO Overlord »


Medals: 831
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #4 - Posted 2012-06-12 10:52:48 »

You should download the JARs and run a hash over them (like sha1) and the original JARs.

If the magic value is off, either your files are corrupted, or the webserver is responding with garbage.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
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.

xFryIx (60 views)
2014-11-13 12:34:49

digdugdiggy (39 views)
2014-11-12 21:11:50

digdugdiggy (32 views)
2014-11-12 21:10:15

digdugdiggy (28 views)
2014-11-12 21:09:33

kovacsa (50 views)
2014-11-07 19:57:14

TehJavaDev (54 views)
2014-11-03 22:04:50

BurntPizza (53 views)
2014-11-03 18:54:52

moogie (68 views)
2014-11-03 06:22:04

CopyableCougar4 (67 views)
2014-11-01 23:36:41

DarkCart (153 views)
2014-11-01 14:51:03
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!