Confluence macros missing in macro browser
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
:
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: CONF-31868 - Getting issue details... STATUS