'java.lang.ClassFormatError - Incompatible Magic Value' When Adding a Patch Due to Invalid Download

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

In some cases Support staff may give customers a patched class to add to their instance that will correct an issue or add extra debugging. After deploying this class and restarting, Confluence fails to start with the error message:

nested exception is java.lang.ClassFormatError: Incompatible magic value 3199925962 in class file com/atlassian/confluence/user/PersonalInformation

Cause

Certain browsers will corrupt class files when downloading them.

Resolution

  • Ask Support to zip the class file first before uploading it
  • Or, use another browser to download the file

 

 

 

 

 

 

 

 

 

 

 

 

 

   

 

 

 

 

 

 

 

 

 

 

 

 

 

Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.