JIRA Upgrade or Startup failed due to UnsupportedOperationException

Symptoms

While upgrading JIRA and using JAVA 7, the following appears in the atlassian-jira.log:

2013-08-02 14:42:34,319 localhost-startStop-1 WARN      [factory.transform.stage.ScanDescriptorForHostClassesStage] The plugin 'jira-gadgets-plugin-6.0.5.jar' uses a package 'com.atlassian.jira.dashboard' that is also exported by the application.  It is highly recommended that the plugin use its own packages.
2013-08-02 14:42:39,119 localhost-startStop-1 ERROR      [atlassian.plugin.loaders.ScanningPluginLoader] Unable to deploy plugin 'org.objectweb.asm-3.3.1.v201105211655' from 'Unit: /usr/local/jira-home/plugins/.bundled-plugins/org.objectweb.asm-3.3.1.v201105211655.jar (1374564542000)'.
2013-08-02 14:42:39,120 localhost-startStop-1 ERROR      [atlassian.plugin.loaders.ScanningPluginLoader] Because of the following exception:
java.lang.UnsupportedOperationException
	at java.util.AbstractMap$SimpleImmutableEntry.setValue(AbstractMap.java:759)
	at org.apache.felix.framework.BundleImpl.getCurrentLocalizedHeader(BundleImpl.java:442)
	at org.apache.felix.framework.Felix.getBundleHeaders(Felix.java:1404)
	at org.apache.felix.framework.BundleImpl.getHeaders(BundleImpl.java:312)
	at org.apache.felix.framework.BundleImpl.getHeaders(BundleImpl.java:294)
...

Cause

It's a bug with Felix framework, the argument  -XX:+AggressiveOpts doesn't working with JAVA version 7.

Resolution

  1. Shutdown JIRA;
  2. Remove the argument  -XX:+AggressiveOpts from the start up options;

  3. Restart JIRA;
Last modified on Nov 1, 2018

Was this helpful?

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