IndexOutOfBoundsException error at JIRA Agile installation or upgrade

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

JIRA Agile does not install/upgrade successfully. 

 

This error message is prompted in JIRA UI:

JIRA Agile is currently unavailable. This might be because an upgrade task has failed to run or has not not yet completed.

 

The following appears in the atlassian-jira.log:

2013-07-29 10:15:16,748 pool-5-thread-3 ERROR eschwab 615x393462x1 livmtp 127.0.0.1 /rest/plugins/1.0/ [sal.core.upgrade.PluginUpgrader] Upgrade failed: Index: 0, Size: 0
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.ArrayList.RangeCheck(Unknown Source)
	at java.util.ArrayList.get(Unknown Source)
	at com.atlassian.greenhopper.customfield.CustomFieldScreenServiceImpl.addFieldToScreen(CustomFieldScreenServiceImpl.java:50)
	at com.atlassian.greenhopper.customfield.CustomFieldScreenServiceImpl.addFieldToScreens(CustomFieldScreenServiceImpl.java:99)
	at com.atlassian.greenhopper.customfield.CustomFieldScreenServiceImpl.addFieldForIssueOperationOnType(CustomFieldScreenServiceImpl.java:90)
	at com.atlassian.greenhopper.service.issuelink.EpicCustomFieldServiceImpl$EpicLabelFieldFactory.applyEpicLabelFieldConfiguration(EpicCustomFieldServiceImpl.java:294)
	at com.atlassian.greenhopper.service.issuelink.EpicCustomFieldServiceImpl$EpicLabelFieldFactory.postCreate(EpicCustomFieldServiceImpl.java:285)
	at com.atlassian.greenhopper.service.issuelink.EpicCustomFieldServiceImpl$BaseFieldFactory.create(EpicCustomFieldServiceImpl.java:259)
	at com.atlassian.greenhopper.service.issuelink.EpicCustomFieldServiceImpl.createDefaultField(EpicCustomFieldServiceImpl.java:206)
	at com.atlassian.greenhopper.service.issuelink.EpicCustomFieldServiceImpl.getDefaultField(EpicCustomFieldServiceImpl.java:168)
	at com.atlassian.greenhopper.service.issuelink.EpicCustomFieldServiceImpl.getDefaultEpicLabelField(EpicCustomFieldServiceImpl.java:75)
	at com.atlassian.greenhopper.upgrade.GhUpgradeTask026.performUpgrade(GhUpgradeTask026.java:34)
	at com.atlassian.greenhopper.upgrade.AbstractGhUpgradeTask.doUpgrade(AbstractGhUpgradeTask.java:62)  <+3>
	at java.lang.reflect.Method.invoke(Unknown Source)

Cause

There is a screen that does not have any tabs associated with it.

Resolution

  1. You can find the screen without tabs running the following screen

    SELECT * FROM fieldscreen WHERE id NOT IN (SELECT fieldscreen FROM fieldscreentab);
  2. Add an empty tab to the screen from the result above
  3. Disable JIRA Agile and enable it back again
Last modified on Mar 30, 2016

Was this helpful?

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