PC Playground  

Go Back   PC Playground > Support > Hosting
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-27-2004, 08:07 PM
Junior Member
 
Join Date: Jun 2003
Posts: 13
Default java applet classes - access forbidden

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
Reply With Quote
  #2 (permalink)  
Old 06-17-2004, 04:45 PM
Junior Member
 
Join Date: Jun 2003
Posts: 13
Default

Will this issue be addressed at some point? I would appreciate it very much :)
Reply With Quote
  #3 (permalink)  
Old 06-17-2004, 05:14 PM
Senior Member
 
Join Date: Feb 2003
Location: USA
Posts: 2,018
Send a message via AIM to zoid Send a message via MSN to zoid Send a message via Yahoo to zoid
Default

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 ;-).
Reply With Quote
  #4 (permalink)  
Old 06-24-2004, 02:36 AM
Administrator
 
Join Date: Jan 2003
Posts: 1,348
Default

The server is still being restored from the hard drive crash, but I will ask my host about your question.
Reply With Quote
  #5 (permalink)  
Old 06-24-2004, 05:51 AM
Senior Member
 
Join Date: Feb 2003
Location: USA
Posts: 2,018
Send a message via AIM to zoid Send a message via MSN to zoid Send a message via Yahoo to zoid
Default

well, the server seems like it's restored now... at least for my needs.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:47 PM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.