wood burning stoves
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "java.io.IOException: open HTTP connection failed:" Watch "java.io.IOException: open HTTP connection failed:" New topic

java.io.IOException: open HTTP connection failed:

Ravikanth Munukutla

Joined: Apr 03, 2009
Posts: 1

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


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

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

Ujjwal B Soni <baroda, gujarat, india> <+918866008962>
"Helping hands are better than praying lips......"
I agree. Here's the link: http://aspose.com/file-tools
subject: java.io.IOException: open HTTP connection failed:
It's not a secret anymore!