File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark ""Bad Magic Number Error"" Watch ""Bad Magic Number Error"" New topic
Author

"Bad Magic Number Error"

Preethi Suryam
Ranch Hand

Joined: Nov 17, 2000
Posts: 92
Hi!
I am getting this error.I am using JRun.
"java.lang.ClassFormatError: jrun__login2ejspa (Bad magic number)"
Could anybody help me out......
Regards..
Preethi.

NageswaraRao Karra
Ranch Hand

Joined: Nov 12, 2000
Posts: 34
Hello!
This may be due to currupted classfile.
i think if you compile java files again it may work out.i solved this problem only by recompiling
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 3901
I have an applet at my angelfire site. It worked fine then one day I got that error. A day or two later it worked again.
Just thought I'ld throw that in.


I never took notes in college. That's how I got a 4.0 the first 2 years, and a 3.5 the second two years.
Matts Smith
Ranch Hand

Joined: Feb 03, 2001
Posts: 113
I used to get this error under JRun. What I did is delete the compiled JSP pages in the web-inf/jsp directory. It usually happens when you deploy a class that's used by a JSP and that JSP is not recompiled (the file didn't change). It is a good practice to remove all compiled code when you deploy anything.
later


-------------------<br />Sun Certified Java Programmer
Preethi Suryam
Ranch Hand

Joined: Nov 17, 2000
Posts: 92
Hi!
I have deleted the previous complied beans and tried to upload again but still i am getting the same problem.I have come to know through some search that we get the bad magic number error if we upload the files in ASCii instead of binary....i have tried out even that but in vain....pls help me out
Preethi.
 
 
subject: "Bad Magic Number Error"
 
Threads others viewed
Bad Magic Number
DuplicateKeyException - B&S
magic number???
urgent doubt regarding class files!
incompatible magic value
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture