The details of ERROR below
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'runnerConfigurationImpl' defined in URL [jar:file:/C:/atlassian-bitbucket-pipelines-runner/bin/runner.jar!/com/atlassian/pipelines/runner/core/configuration/RunnerConfigurationImpl.class]: Bean instantiation via constructor failed; nested exception is java.lang.IllegalAccessError: tried to access method com.atlassian.pipelines.runner.api.configuration.http.ImmutableHttpRetryConfiguration$Builder.<init>()V from class com.atlassian.pipelines.runner.api.configuration.http.ImmutableHttpRetryConfiguration
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'runnerConfigurationImpl' defined in URL [jar:file:/C:/atlassian-bitbucket-pipelines-runner/bin/runner.jar!/com/atlassian/pipelines/runner/core/configuration/RunnerConfigurationImpl.class]: Bean instantiation via constructor failed; nested exception is java.lang.IllegalAccessError: tried to access method com.atlassian.pipelines.runner.api.configuration.http.ImmutableHttpRetryConfiguration$Builder.<init>()V from class com.atlassian.pipelines.runner.api.configuration.http.ImmutableHttpRetryConfiguration
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:315)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:296)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:920)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
at com.atlassian.pipelines.runner.core.ApplicationImpl.main(ApplicationImpl.java:53)
Caused by: java.lang.IllegalAccessError: tried to access method com.atlassian.pipelines.runner.api.configuration.http.ImmutableHttpRetryConfiguration$Builder.<init>()V from class com.atlassian.pipelines.runner.api.configuration.http.ImmutableHttpRetryConfiguration
at com.atlassian.pipelines.runner.api.configuration.http.ImmutableHttpRetryConfiguration.builder(ImmutableHttpRetryConfiguration.java:138)
at com.atlassian.pipelines.runner.core.configuration.RunnerConfigurationImpl.<clinit>(RunnerConfigurationImpl.java:39)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:211)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:117)
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:311)
... 13 more
Hello @sumitdhar76 and welcome to the Community!
Based on the error message, it seems you are trying to start a Windows runner but it's currently failing.
If that is the case, could you please confirm if the machine where you are executing the runner meets the prerequisites for Windows runners?
OpenJDK 11 (11.0.15 or newer) is installed
Git 2.35.0 and above
PowerShell 5.0 and above
A 64-Bit Windows 10+ or Windows Server 2019+ instance with at least 8GB of RAM as a host for the runner.
Disable the Windows pagefile and swapfile (optional, recommended)
In case any of the above conditions are not met, the runner may not work as expected, so you need to make sure that the required dependencies and settings listed above are configured properly in the runner's host.
If your host already satisfies those requirements, but you are still facing the error, could you share the full log output of when you start the runner and receive the error? I ask this because the logs you originally shared in the message seem to be truncated, and we would need the full logs to understand what may be causing this.
Let me know in case you have any questions.
Thank you, @sumitdhar76 !
Patrik S
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.