![]() |
|
|||
|
I have written an applet and tried to host it on my site here but the class files are transferred incorrectly somehow. It works on other sites and I made sure to do "binary" transfer on FTP.
The result is that when the java plugin of the browser is loading the applet it gives the following exception: java.lang.ClassFormatError: FunctionPlotter/class (Bad magic number) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknow n 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) I don't want to go into what the magic number is but it basically means that the file does not arrive at the client the way it was on the server. I verified this by downloading the class file that I uploaded and running the applet locally - it worked. So, Tommy, if you could look into your webserver config or whatever is causing it, I'd appreciate it. It must be the component that is responsible for handing the class files from the server to the client (the browser, or rather the java runtime plugin of the browser). *edit* I've looked into it a bit more. Your server is actually configured to forbid access to class files, e.g. http://magiera.pcplayground.com/fplotte ... tter.class cannot be accessed (403). Did you do that on purpose? Thanks, Jakob |
|
|||
|
Hmm... this problem could relate to what happened yesterday. I had/have some problems too. Hopefully it will be addressed and fixed soon :-) but who am I to say so, i don't work for the hosting company ;-).
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|