Structure Gadget Macro Fails to Load on Confluence Page

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

Summary

Attempting to insert a Structure Gadget into a Confluence page results in an internal server error and failure to render the macro successfully.

Environment

Confluence integrated with Jira

Diagnosis

The following stack trace will appear in the logs when attempting to add the Structure Gadget to a Confluence page. 

atlassian-confluence.log

1 2 3 4 5 6 2020-01-17 02:58:41,874 https-jsse-nio-8443-exec-62 url:/rest/structure/2.0/value username:admi ERROR AE06290 178x6727045x1 admin 127.0.0.1 /rest/structure/2.0/value [c.a.s.commons.rest.StructureRestInterceptor] [Structure REST API] error when calling POST /value ?={"jobId":null,"requests":[{"forestSpec":{"structureId":81211,"version":null,"... com.almworks.jira.structure.api.error.StructureRuntimeException: com.google.common.util.concurrent.UncheckedExecutionException: com.atlassian.activeobjects.internal.ActiveObjectsInitException: bundle [com.almworks.jira.structure] at com.almworks.structure.commons.platform.ClusterSyncToolsFactory$AtlassianCacheAdapter.get(ClusterSyncToolsFactory.java:209) at com.almworks.structure.commons.platform.LazilyCreatedCache.get(LazilyCreatedCache.java:23) at com.almworks.jira.structure.structure.AOBasedStructureManager.getStructureBeanOrNull(AOBasedStructureManager.java:686) at com.almworks.jira.structure.structure.AOBasedStructureManager.getStructurePermission(AOBasedStructureManager.java:433)

Conversely, the following stack trace may be seen from the Jira logs indicating problems loading plugin code from ActiveObjects bundle Jira Structure: 

atlassian-jira.log

1 2020-01-23 00:48:21,643 https-jsse-nio-8443-exec-48 WARN admin 48x7570858x1 1g77v0l 127.0.0.1 / [c.atlassian.ozymandias.SafePluginPointAccess] Unable to run plugin code because of 'com.almworks.jira.structure.api.error.StructureRuntimeException - com.google.common.util.concurrent.UncheckedExecutionException: com.atlassian.activeobjects.internal.ActiveObjectsInitException: bundle [com.almworks.jira.structure]'

Cause

This problem can be caused by corrupted plugin cache on the Jira side. When this happens, the system may not be able to render the Structure Gadget plugin code as expected and the failure is seen on the front end. 

Solution

Restart the affected Jira node and retest the behavior. 

Updated on March 19, 2025

Still need help?

The Atlassian Community is here for you.