Dashboard tabs are not shown due to IndexOutOfBoundsException error
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
The Confluence dashboard shows an error and none of the tabs are shown. Usually, this error only occurs to one or a specific number of users. Here's the screenshot for the error:

The following appears in the atlassian-confluence.log
:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2012-07-26 11:30:29,914 ERROR [http-8088-4] [renderer.v2.components.MacroRendererComponent] processMacro Unexpected error formatting macro: recently-updated-dashboard
-- url: /dashboard.action | userName: admin | referer: http://localhost:8042 | action: dashboard
java.lang.IndexOutOfBoundsException: index (0) must be less than size (0)
at com.google.common.base.Preconditions.checkElementIndex(Preconditions.java:301)
at com.google.common.base.Preconditions.checkElementIndex(Preconditions.java:280)
at com.google.common.collect.EmptyImmutableList.get(EmptyImmutableList.java:106)
at com.atlassian.confluence.plugins.macros.dashboard.SpaceCategoryTab.getSpaceFilter(SpaceCategoryTab.java:102)
at com.atlassian.confluence.plugins.macros.dashboard.SpaceCategoryTab.getQueryParameters(SpaceCategoryTab.java:69)
at com.atlassian.confluence.plugins.macros.dashboard.RecentlyUpdatedContentMacro.execute(RecentlyUpdatedContentMacro.java:85)
at com.atlassian.renderer.v2.macro.ResourceAwareMacroDecorator.execute(ResourceAwareMacroDecorator.java:51)
at com.atlassian.renderer.v2.components.MacroRendererComponent.executeMacro(MacroRendererComponent.java:203)
at com.atlassian.renderer.v2.components.MacroRendererComponent.processMacro(MacroRendererComponent.java:169)
at com.atlassian.renderer.v2.components.MacroRendererComponent.makeMacro(MacroRendererComponent.java:67)
....
Cause
This error is most probably occurred after removing some contents (e.g. pages or spaces), however, we are still unclear why exactly this error is thrown.
Workaround
Log into Confluence as a user whose dashboard has this error and then manually enter this URL on your browser: <confluence-url>/dashboard.action?updatesSelectedTab=all
Was this helpful?