Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

"Bad Magic Number Error"

 
Preethi Suryam
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4489
3
Java Python Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Matts Smith
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Preethi Suryam
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic