Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

using log4j 2 in bamboo plugin


We have bamboo plugin which uses 3-rd party dependency (also developed by us) that uses log4j 2 .


As well, in the plugin we also created  logger based on log4j 2 : LogManager.getLogger(type); In that case log from plugin and from 3-rd party dependency is written to the same place. 

Until bamboo 6.9 - everything work perfectly.

In 6.10 something changed and log initialization is failing


Causes are : 

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.bamboo.listener.GeneralEventsListener]: Constructor threw exception; nested exception is java.util.ServiceConfigurationError: org.apache.logging.log4j.spi.Provider: Provider org.apache.logging.slf4j.SLF4JProvider not a subtype
at org.springframework.beans.BeanUtils.instantiateClass(
... 129 more
Caused by: java.util.ServiceConfigurationError: org.apache.logging.log4j.spi.Provider: Provider org.apache.logging.slf4j.SLF4JProvider not a subtype
at java.util.ServiceLoader.access$300(
at java.util.ServiceLoader$LazyIterator.nextService(
at java.util.ServiceLoader$
at java.util.ServiceLoader$
at org.apache.logging.log4j.util.ProviderUtil.loadProviders(
at org.apache.logging.log4j.util.ProviderUtil.<init>(
at org.apache.logging.log4j.util.ProviderUtil.lazyInit(
at org.apache.logging.log4j.util.ProviderUtil.hasProviders(
at org.apache.logging.log4j.LogManager.<clinit>(
at com.bamboo.SDKBasedLoggerProvider.getLogger(
at com.bamboo.listener.BaseListener.<init>(
at com.bamboo.listener.GeneralEventsListener.<init>(
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
at java.lang.reflect.Constructor.newInstance(
at org.springframework.beans.BeanUtils.instantiateClass(
... 131 more


Please help.

1 answer

0 votes

Hi @Octane CI Plugins Owner

Thank you for reaching out to us to move forward on this one. In order to set you for success, I suggest you ask the same question on a different channel, more aligned to this content. This is the one:

It is more likely that your question will be read by people Bamboo developement skills, including our developers.


thanks for referring.

Like Daniel Santos likes this

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events