Confluence macros missing in macro browser
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
Problem
The Default Macro Metadata Provider will not start. Macros will not display in the macro browser.
The following appears in the atlassian-confluence.log
:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
2013-12-04 13:29:20,385 ERROR [main] [atlassian.plugin.manager.DefaultPluginManager] enableConfiguredPluginModule There was an
error loading the descriptor 'null' of plugin 'confluence.macro.metadata.provider'. Disabling.
com.atlassian.spring.container.ComponentNotFoundException: Failed to find component: Error creating bean with name
'macroMetadataProviders' defined in class path resource [x]: Cannot create inner bean
'com.atlassian.confluence.macro.browser.DefaultMacroMetadataProvider#1d98320' of type
[com.atlassian.confluence.macro.browser.DefaultMacroMetadataProvider] while setting bean property 'sourceList'
with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with
name 'com.atlassian.confluence.macro.browser.DefaultMacroMetadataProvider#1d98320' defined in class path resource [x]: Cannot
create inner bean 'com.atlassian.confluence.plugin.ModuleDescriptorCacheFactory#14a78438' of type
[com.atlassian.confluence.plugin.ModuleDescriptorCacheFactory] while setting constructor argument;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'com.atlassian.confluence.plugin.ModuleDescriptorCacheFactory#14a78438' defined in class path resource [x]:
Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public com.atlassian.confluence.plugin.ModuleDescriptorCache
com.atlassian.confluence.plugin.ModuleDescriptorCacheFactory.create(java.lang.Class,
com.atlassian.plugin.predicate.ModuleDescriptorPredicate)]
threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/lucene/search/ConstantScoreRangeQuery
at com.atlassian.spring.container.SpringContainerContext.getComponent(SpringContainerContext.java:79)
at com.atlassian.spring.container.ContainerManager.getComponent(ContainerManager.java:33)
at com.atlassian.confluence.plugin.descriptor.SpringComponentModuleDescriptor.enabled
(SpringComponentModuleDescriptor.java:122)
at com.atlassian.plugin.manager.DefaultPluginManager.notifyModuleEnabled(DefaultPluginManager.java:1661)
at com.atlassian.confluence.plugin.ConfluencePluginManager.notifyModuleEnabled(ConfluencePluginManager.java:135)
at com.atlassian.plugin.manager.DefaultPluginManager.enableConfiguredPluginModule(DefaultPluginManager.java:1453)
at com.atlassian.plugin.manager.DefaultPluginManager.enableConfiguredPluginModules(DefaultPluginManager.java:1420)
at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:875)
at com.atlassian.confluence.plugin.ConfluencePluginManager.addPlugins(ConfluencePluginManager.java:236)
at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:258)
at com.atlassian.confluence.plugin.ConfluencePluginManager.init(ConfluencePluginManager.java:207)
at com.atlassian.confluence.plugin.PluginFrameworkContextListener.contextInitialized
(PluginFrameworkContextListener.java:54)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4205)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4704)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Diagnosis
This has occurred in versions 5.2.3 and higher.
The above stack trace occurs in the logs after the plugin system is initiated during startup.
Cause
Incompatible plugins, most likely the Adaptavist Rate Macro.
Resolution
Disable Adaptavist Rate Macro
Disable and/or update all other incompatible plugins
ℹ️ The overall issue of Default Macro Metadata Provider plugin being disabled is being tracked in this bug report: CONFSERVER-31868 - Default Macro Metadata Provider plugin is disabled on startup.
Was this helpful?