Thursday, 1 September 2011

Browse » Home » » » » » Unable to Load a Particular JIRA Dashboard

Unable to Load a Particular JIRA Dashboard

Symptoms

Trying to load a dashboard page throws the following exception:
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
    at java.util.ArrayList.RangeCheck(ArrayList.java:546)
    at java.util.ArrayList.get(ArrayList.java:321)
    at com.atlassian.jira.portal.AbstractPortalPageImpl$ConfigInfo.putInColumn(AbstractPortalPageImpl.java:365)
    at com.atlassian.jira.portal.AbstractPortalPageImpl$ConfigInfo.setPortletConfigurations(AbstractPortalPageImpl.java:291)
    at com.atlassian.jira.portal.AbstractPortalPageImpl.setPortletConfigurations(AbstractPortalPageImpl.java:162)
    at com.atlassian.jira.dashboard.JiraDashboardStateStoreManager$2.get(JiraDashboardStateStoreManager.java:89)

Cause

Some of the gadgets in the dashboard are set in a column that the dashboard layout does not contain. For instance, a gadget is set in the second column of a single column layout.

Resolution

Always back up your data before performing any modification to the database. If possible, try your modifications on a test server.
Update the database directly. You can identify the gadget and dashboard causing the problem with the following SQL:
select PC.ID as gadget_id,
       PP.ID as portlet_id
from portletconfiguration PC,
     portalpage PP
where PC.PORTALPAGE = PP.ID AND
      column_number > length(layout) -1;
Info This example works with MySQL. Similar queries can be formed for other databases.

Advertisement:

No comments:

Post a Comment

Note: only a member of this blog may post a comment.