It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Java Forum

Applet not loading due to IOException

Applet not loading due to IOException

Postby bamboat_3 on Wed Apr 11, 2007 2:38 pm

Dear Gurus,

I have build applet – Servlet application by using Swing components, JDK1.5 update 11 and MySql database at backhand.

The problem is that, my applet is running fine with 4 classes but as I declare the structure of fifth class is not loading in a browser and throwing following error:

==========================================
java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost/dmronline/dmronline.jar
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.plugin.net.protocol.http.HttpUtils.followRedirects(Unknown Source)
at sun.plugin.cache.CachedJarLoader.isUpToDate(Unknown Source)
at sun.plugin.cache.CachedJarLoader.loadFromCache(Unknown Source)
at sun.plugin.cache.CachedJarLoader.load(Unknown Source)
at sun.plugin.cache.JarCache.get(Unknown Source)
at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
at sun.misc.URLClassPath$JarLoader.<init>(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.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)
load: class dmronline.frmMain.class not found.
java.lang.ClassNotFoundException: dmronline.frmMain.class
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)
... 10 more

=========================================

Here I am enclosing the structure of fifth class

public class table_sc{

public table_sc(){}//end constructor

}

Kindly, let me know why it is happening and how I can solve out this problem.

Looking forward to your kindly response

Regards,

bamboat_3@hotmail.com
bamboat_3
 
Posts: 2
Joined: Wed Apr 11, 2007 2:33 pm

Postby mwa103 on Thu Apr 12, 2007 4:31 pm

I just started working with servlets for class so I don't know very much about them, but I did find this discussion on a sun forum which talks about the 500 response code. Not sure if it will help you out or not, but it's worth a look.

Good luck.
-Mike
http://forum.java.sun.com/thread.jspa?threadID=448333&messageID=2048043
mwa103
100+ Club
 
Posts: 206
Joined: Mon Mar 07, 2005 10:55 pm

mmm I think

Postby ggomez on Tue Apr 17, 2007 5:32 am

mmmm...

the error is ocurring definetly on the servlet side.

did you see the getInputStream(unknown unknow)

the direction you are using.. i think you should change the localhost part with the direction of your server.

mmm i cant see anything else...

good luck
ggomez
 
Posts: 45
Joined: Tue Apr 17, 2007 3:30 am
Location: !!!!!MéXiCo¡¡¡¡¡¡


Who is online

Users browsing this forum: No registered users and 0 guests