JIRA Functionality Fails due to Incompatible magic value 0 in class file Error

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

  • JIRA actions fail, such as creating issues.

The following appears in the atlassian-jira.log:

2013-07-17 01:29:00,714 http-bio-8443-exec-23 ERROR      [500ErrorPage.jsp] Exception caught in 500 page Incompatible magic value 0 in class file com/atlassian/jira/workflow/function/issue/IssueCreateFunction
java.lang.ClassFormatError: Incompatible magic value 0 in class file com/atlassian/jira/workflow/function/issue/IssueCreateFunction
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(Unknown Source)
	at java.security.SecureClassLoader.defineClass(Unknown Source)
	at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2901)
	at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1170)  <+2> (WebappClassLoader.java:1678) (WebappClassLoader.java:1556)
	at com.atlassian.core.util.ClassLoaderUtils.loadClass(ClassLoaderUtils.java:72)
	at com.atlassian.core.util.ClassLoaderUtils.loadClass(ClassLoaderUtils.java:50)

Cause

The ClassFormatError is thrown when the JVM finds the class file to be either malformed or it cannot interpret it. This would seem to imply there's a problem with the bytecode (this is the compiled version of the class). It is most commonly caused by incorrectly modifying the file, a failed un-compression attempt or corrupted download.

Resolution

  1. Backup the file that is causing problems. In this example, it is com/atlassian/jira/workflow/function/issue/IssueCreateFunction.class.
  2. Download the appropriate version for your JIRA instance from http://www.atlassian.com/software/jira/download. Ensure this is an archive file (either a ZIP or tar.gz).
  3. Expand the download and locate the file.
  4. Replace the downloaded file with the corrupted file.

  5. Restart JIRA.

Last modified on Mar 30, 2016

Was this helpful?

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