Applet - Illegal URL Redirect

Well ladies and gents, I haven’t posted in a while because I had to get something finished and out there. It’s terribad, but I did it:

ginger.geekwagon.net/BalloonPopper.html

My problem is that, while it works in the above url (at least for myself and my friends), it does NOT work on my brand-new domain:

michaelfearing.com/BalloonPopper.html

Now, before anyone mentions “it seems to work for me!”, I did notice that the first time I gave it a try, I had no problems. But all subsequent times, I was given an illegal URL redirect error. Does anyone know why this is? I can’t seem to narrow it down, and most suggestions online seem to suggest I’m trying to redirect to another site, which I’m not. The only “redirect” i can even think of would be that inside the jar file, there is a folder for all of my images. Would that cause it?

I can email the source code if anyone wants to take a look. That being said, you’ll probably have to work through some ugly code. :\

I don’t have a definitive answer, it’s a wild guess based on old Java issues and just maybe they didn’t correct it. Did you clear your stored files in the Java applet control panel? If not, give it a try, that may work.

I checked into this error some more and it looks like my applet is violating the Same-Origin policy. This makes sense because this wasn’t an issue until I had updated java to the latest version of 1.7. I don’t know how my applet is actually violating this policy, however. Everything in the applet comes out of the jar, which is hosted at michaelfearing.com/BalloonPopper.html. As far as I know, it’s not trying to access any other site. What’s going on here and why is it so hard to explain to me! :cranky:

How do you get the error? I was unable to get an error, despite reloading the “new domain” version several times, and exiting and coming back.

The game is fun, but in my clicking frenzies, I usually blow past the screen that shows the score. I think to exit the scoring screen you should have to click a specific button, not anywhere on the screen.

I can make that change. Do you have the latest versions of jre 1.7 installed?

My Windows installation is a hodge-podge–includes JR6, 7, and glassfish (all Oracle versions).

I am checking Firefox:

extensions has

  • Java Console 6.0.33
    plug-ins has
  • Java Deployment Toolkit 7.0.70.10 10.7.2.10
  • Java™ Platform SE7 U9 10.9.2.5

I don’t know what does what, I confess. ???
Maybe some of this should be tossed out/disabled.

I have no idea what that does, either. I just know that when I downloaded jre 1.7 update 10, i started recieving these errors. I think it’s the same for jre 6 update 29 and up. Right now I’m running the latest version of jre 6.

This time, I ran your first site – game worked.
Then I tried to go back to your new site (michaelfearing…) and got the security exception. Here are the details:

java.lang.NullPointerException
at GameScreen.render(GameScreen.java:164)
at BalloonPopper.render(BalloonPopper.java:106)
at BalloonPopper.run(BalloonPopper.java:82)
at java.lang.Thread.run(Unknown Source)

Wow. I tried closing and reloading Firefox. No go.

I tried rebooting, and again, cannot load the applet in Firefox, IE, or Safari.
Safari gave me this error:

Warning: using first-generation plugin.
This plugin is deprecated and will be removed in the next major 
release of Java. Please report any technical difficulties 
with the next-generation plugin at http://bugs.sun.comJava Plug-in 1.7.0_09
Using JRE version 1.7.0_09-b05 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Phil
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
p:   reload proxy configuration
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------


java.lang.SecurityException: illegal URL redirect
	at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
	at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
	at com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(Unknown Source)
	at com.sun.deploy.cache.ResourceProviderImpl.checkUpdateAvailable(Unknown Source)
	at com.sun.deploy.cache.ResourceProviderImpl.isUpdateAvailable(Unknown Source)
	at com.sun.deploy.cache.DeployCacheHandler.get(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
	at sun.plugin.PluginURLJarFileCallBack.downloadJAR(Unknown Source)
	at sun.plugin.PluginURLJarFileCallBack.access$000(Unknown Source)
	at sun.plugin.PluginURLJarFileCallBack$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.plugin.PluginURLJarFileCallBack.retrieve(Unknown Source)
	at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)
	at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
	at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
	at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
	at sun.net.www.protocol.jar.JarURLConnection.getJarFile(Unknown Source)
	at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
	at sun.misc.URLClassPath$JarLoader.access$600(Unknown Source)
	at sun.misc.URLClassPath$JarLoader$1.run(Unknown Source)
	at sun.misc.URLClassPath$JarLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.misc.URLClassPath$JarLoader.ensureOpen(Unknown Source)
	at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
	at sun.misc.URLClassPath$3.run(Unknown Source)
	at sun.misc.URLClassPath$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.misc.URLClassPath.getLoader(Unknown Source)
	at sun.misc.URLClassPath.getLoader(Unknown Source)
	at sun.misc.URLClassPath.getResource(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at sun.applet.AppletClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.applet.AppletClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.applet.AppletClassLoader.loadCode(Unknown Source)
	at sun.applet.AppletPanel.createApplet(Unknown Source)
	at sun.plugin.AppletViewer.createApplet(Unknown Source)
	at sun.applet.AppletPanel.runLoader(Unknown Source)
	at sun.applet.AppletPanel.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

Safari IS able to run other java applets of mine, though.

I rebooted to the Linux partition, Ubuntu Desktop, running Java IceTea and got the error message: unable to start applet. I don’t know how to view the console from the Linux context yet (using Firefox browser).

Ubuntu/Firefox IS able to run other java applets of mine.

Welp, at least i’m not the only person getting the error in this thread. :stuck_out_tongue:

I’m looking into it as best I can, but I really don’t know where to start. I suppose I can upload my code if anyone’s interested in looking at it.

So I just downloaded a java update, and now it seems to be working again. What the hell’s going on? :clue: