RMI on internet (additional)

Hello,

I've posted a problem with getting exception:
java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
When running rmi-based class on the internet. I got rid of that problem by editing proxy settings in Java Plugin's control panel to add 127.0.0.1:1099 and I didn't get that exception anymore.
HOWEVER. I now have a new problem and I REALLY don't know what to do with this one. When I try to run my application over the internet, from my server I get this exception:
java.lang.ClassNotFoundException: app1.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.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
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
Dump classloader list ...
codebase=http://192.168.0.103:191/, key=http://192.168.0.103:191/, zombie=false, cache=true, refcount=1, info=sun.plugin.ClassLoaderInfo@2006a0
Done.

Again, I CAN run my applet locally inside a browser but when I am accessing my website from my server on the internet I get that error. The classes app1.class are stored in c:inetpubwwwroot folder along with my app1.htm file. Any suggestions will be useful not only for me but for others reading this as well.

Thank you,
Victor.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories