Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
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  
  Applet - Illegal URL Redirect  (Read 2321 times)
0 Members and 1 Guest are viewing this topic.
Offline Gingerious

Junior Duke


Medals: 2



« Posted 2012-11-06 21:20:37 »

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. :\
Offline KittenKoder

Senior Duke


Medals: 7



« Reply #1 - Posted 2012-11-06 21:31:46 »

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 am no one else.
Offline Gingerious

Junior Duke


Medals: 2



« Reply #2 - Posted 2013-01-03 20:04:32 »

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



https://nealpoole.com/blog/2011/10/java-applet-same-origin-policy-bypass-via-http-redirect/
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline philfrei
« Reply #3 - Posted 2013-01-03 20:47:09 »

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.

"It's after the end of the world! Don't you know that yet?"
Offline Gingerious

Junior Duke


Medals: 2



« Reply #4 - Posted 2013-01-03 21:03:56 »

I can make that change.  Do you have the latest versions of jre 1.7 installed?
Offline philfrei
« Reply #5 - Posted 2013-01-03 21:31:39 »

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(TM) Platform SE7 U9 10.9.2.5

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

"It's after the end of the world! Don't you know that yet?"
Offline Gingerious

Junior Duke


Medals: 2



« Reply #6 - Posted 2013-01-03 21:51:55 »

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.
Offline philfrei
« Reply #7 - Posted 2013-01-03 21:59:45 »

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)

"It's after the end of the world! Don't you know that yet?"
Offline philfrei
« Reply #8 - Posted 2013-01-03 22:46:55 »

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:

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  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
57  
58  
59  
60  
61  
62  
63  
64  
65  
66  
67  
68  
69  
70  
71  
72  
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.

"It's after the end of the world! Don't you know that yet?"
Offline Gingerious

Junior Duke


Medals: 2



« Reply #9 - Posted 2013-01-04 21:53:07 »

Welp, at least i'm not the only person getting the error in this thread. 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.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Gingerious

Junior Duke


Medals: 2



« Reply #10 - Posted 2013-01-08 20:47:58 »

So I just downloaded a java update, and now it seems to be working again. What the hell's going on?  Clueless
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.

Longarmx (39 views)
2014-10-17 03:59:02

Norakomi (30 views)
2014-10-16 15:22:06

Norakomi (24 views)
2014-10-16 15:20:20

lcass (28 views)
2014-10-15 16:18:58

TehJavaDev (57 views)
2014-10-14 00:39:48

TehJavaDev (58 views)
2014-10-14 00:35:47

TehJavaDev (48 views)
2014-10-14 00:32:37

BurntPizza (64 views)
2014-10-11 23:24:42

BurntPizza (36 views)
2014-10-11 23:10:45

BurntPizza (78 views)
2014-10-11 22:30:10
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!