Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help with this error

 
Rama Ituarte
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Help with this error: Error occurred in server thread; nested exception is java.lang.ClassFormatError suncertify.server.LockManager(mad magic number). I only get this error when running the app via executable jar files. Do you think one of my classes is corrupted? I have attempted to rebuild the jar files.
Rama Ituarte.
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rama,

... java.lang.ClassFormatError suncertify.server.LockManager(mad magic number). I only get this error when running the app via executable jar files. Do you think one of my classes is corrupted?

That's what it sounds like. If the magic number (inital bytes) in the class file is wrong then it is assumed not to be a valid class file. Try rebuilding all your class files before recreating the jar.
Hope this helps,
Michael Morris
 
Rama Ituarte
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That�s what it was.
Thanks again.
Rama
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!