GeeCON Prague 2014*
The moose likes Applets and the fly likes java.io.IOException: open HTTP connection failed: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Applets
Bookmark "java.io.IOException: open HTTP connection failed:" Watch "java.io.IOException: open HTTP connection failed:" New topic
Author

java.io.IOException: open HTTP connection failed:

Ravikanth Munukutla
Greenhorn

Joined: Apr 03, 2009
Posts: 1
Hi,

I have embedded an applet (jar file)in a jsp and deployed as a web application in a server located in the US.
Now when I am trying to access the web page from india, it is giving the following error. Some times the
applet is loading fine,but some times not.Please help me. Thanks in advance.
FYI. the same is working fine in local network.

Applet code:

<applet codebase="." code="ij.ImageJApplet.class"
width=550 height=350 security=all-permissions
archive=ij.jar">
</applet>

Exception:

java.lang.ClassNotFoundException: ij.ImageJApplet.class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed
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)
... 7 more


ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403
Hi,

Did you try it from any alternate jre ? Try reinstalling a latest jre.


Cheers!!!
Ujjwal B Soni <baroda, gujarat, india> <+919909981973>
"Helping hands are better than praying lips......"
 
jQuery in Action, 2nd edition
 
subject: java.io.IOException: open HTTP connection failed: