Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

What could have happened????????

 
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an applet on my angelfire site. it has worked fine since last june. Suddenly for no reason it wont load. IE says ClassNotFoundException. Netscape says Applet goURL error: java.lang.ClassFormatError:Bad magic number
It is still listed as a 2k file right where it has always been.
Could it be just my browsers??? It is the small applet repeated about 6 times on the left side of the page at http://www.angelfire.com/games2/programming
it should display a Choice.
 
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Randall
According to the java docs ClassFormatError(bad magic number)is thrown when the JVM attempts to read a class file and determines that it is malformed or cannot be interpreted as a class file.
I had a similar problem and when I recompiled the source and replaced it, it got solved.
Hope it helps.
Regards
Suneel
 
Randall Twede
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks suneel,
I was thinking I should try uploading it again. that is what I will do.
This is frustrating. I uploaded it and it did replace the old file but doesnt work. I even tried deleting it and then uploading it again. It works fine from a local folder on my HD. The alt text is not even being displayed. I could try letting angelfire know but that is probably a waste of time.
however the other 2 applets on the page work!
The other 2 applets are both archived in jar files and this one is just one file. I wonder if that means anything?


[This message has been edited by Randall Twede (edited January 28, 2001).]
 
Randall Twede
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It started working again as mysteriously as it stopped working.
[This message has been edited by Randall Twede (edited January 31, 2001).]
 
Ranch Hand
Posts: 417
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i visited your web site and wanted to learn the coding for the gif (animals) inside an applet and how they can be selected and displayed.
can you tell us what are the steps that you took. one is that we have a listener that responds to the particular animal selected via the dropdown menu, and displaying or painting the appropriate gif image on the right hand side canvas. right ??
can you help me break down the problem (preferable in steps) so then i can start coding. first i need to comprehend the problem at hand.
would appreciate, if you or others who could help me with this one.

http://www.angelfire.com/games2/programming
[ March 02, 2002: Message edited by: mark stone ]
 
Saloon Keeper
Posts: 22133
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You didn't upload using FTP (or the Windows Explorer window corresponding to FTP) did you?
In the Microsoft world, the default for FTP is text mode, which can do horrible things to ZIP (jar) files and other binary entities - it tries to convert what it thinks as end-of-line characters found in the file.
 
mark stone
Ranch Hand
Posts: 417
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
upload ? upload what ?

Originally posted by Tim Holloway:
You didn't upload using FTP (or the Windows Explorer window corresponding to FTP) did you?
In the Microsoft world, the default for FTP is text mode, which can do horrible things to ZIP (jar) files and other binary entities - it tries to convert what it thinks as end-of-line characters found in the file.

 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think Tim's asking Randall if he uploaded the applet to the web server using FTP, and the possible problems there...

Randall, the problem may also lie on the web server... lots of "free web space" servers do alot of invisible manipulations behind the backs of the users...

As an example, I used to run my website on fortunecity... everything was peachy for awhile, and then I started getting fortunecity "cannot load" images for all my images... FortuneCity's FAQ said that cookies had to be turned on for images to work correctly... cookies were on, but whatever fortunecity was trying to do wasn't making it through the fire wall...

So it could be some kind of redirect thing that angelfire is doing...

-Nate
 
If we don't do the shopping, we won't have anything for dinner. And I've invited this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic