Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ClassNotFound : Open HTTP Connection Failed

 
Julien Grenier
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Norm Radder
Ranch Hand
Posts: 728
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 728
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic