File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes ClassNotFound : 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 "ClassNotFound : Open HTTP Connection Failed" Watch "ClassNotFound : Open HTTP Connection Failed" New topic
Author

ClassNotFound : Open HTTP Connection Failed

Julien Grenier
Ranch Hand

Joined: Sep 01, 2005
Posts: 41
Hi all,
My applet is working find with Firefox and the JRE1.3.1_09 but it gives me the following error with Iexplore : ClassNotFound myapplet.class; java.io.IOException : Open HTTP Connection Failed .

I've look over the web it's look to be a proxy problem but then why the problem doesn't occur with Firefox and the same JRE on the same machine?

any cue?
Julien
Sravan Kumar
Ranch Hand

Joined: Sep 11, 2005
Posts: 121
Check your Internet security settings. Try unchecking the option that specifies IE to use a higher version of JRE for displaying applets.

If you are doin an I/O from the applet, then you might have to set the policy (".java.policy" file) in your system (using policytool.exe) and grant required permissions.


keep smilin :: sravan<br /><a href="http://sravanpens.blogspot.com" target="_blank" rel="nofollow">I scribble here</a>
Norm Radder
Ranch Hand

Joined: Aug 10, 2005
Posts: 690
    
    1
Could you copy and paste here the full error message from the Java console?

I'm curious how not finding your class is related to the HTTPConnection problem. Perhaps the stack trace in the error message will show that.
Julien Grenier
Ranch Hand

Joined: Sep 01, 2005
Posts: 41
Thanks Sravan Kumar. I will look into that.

here's a similar error to what I had (I don't have a exact copy of my error [it occurred on another pc and I don't have the log right now])

java.lang.ClassNotFoundException: com.blah.blah.MyAppletClass
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)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)

Julien
Norm Radder
Ranch Hand

Joined: Aug 10, 2005
Posts: 690
    
    1
Ok, I'll wait for the real one.
I've never seen following in stack trace, but I'll keep trying.

Caused by: java.io.IOException: open HTTP connection failed.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ClassNotFound : Open HTTP Connection Failed