org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginPullRequestNotificationListener' defined in URL [bundle://84.0:0/META-INF/spring/atlassian-plugin-context.xml]: Cannot resolve reference to bean 'pullRequestBatchNotificationDao' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pullRequestBatchNotificationDao' defined in URL [bundle://84.0:0/META-INF/spring/atlassian-plugin-context.xml]: Initialization of bean failed; nested exception is java.lang.IllegalStateException: Invalid BundleContext.

Atlassian JIRA | Michael Heemskerk | 1 year ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd and rp . Or join the community to write better ones.
  1. 0

    On startup, {{EventListenerBeanRegistrar}} sometimes triggers errors like {noformat} 2015-12-02 10:41:18,111 WARN  [spring-startup]  c.a.s.i.p.OsgiBundledPathScanner Cannot scan directory /com/atlassian/oauth/shared/servlet/ in bundle com.atlassian.oauth.atlassian-oauth-service-provider-plugin as it does not exist 2015-12-02 10:55:42,505 WARN  [ThreadPoolAsyncTaskExecutor::Thread 10]  o.s.b.f.s.DisposableBeanAdapter Invocation of destroy method 'destroy' failed on bean with name 'batchNotificationJob': java.lang.IllegalStateException: Invalid BundleContext. 2015-12-02 10:55:42,517 ERROR [ThreadPoolAsyncTaskExecutor::Thread 10]  o.s.o.e.i.a.ContextLoaderListener Application context refresh failed (NonValidatingOsgiBundleXmlApplicationContext(bundle=com.atlassian.stash.notification, config=osgibundle:/META-INF/spring/*.xml)) org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginPullRequestNotificationListener' defined in URL [bundle://84.0:0/META-INF/spring/atlassian-plugin-context.xml]: Cannot resolve reference to bean 'pullRequestBatchNotificationDao' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pullRequestBatchNotificationDao' defined in URL [bundle://84.0:0/META-INF/spring/atlassian-plugin-context.xml]: Initialization of bean failed; nested exception is java.lang.IllegalStateException: Invalid BundleContext.         at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275) ~[spring-2.5.6.SEC03-atlassian-6.jar:4.1.6.RELEASE]         at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_45]         at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_45]         at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45]         ... 20 frames trimmed Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pullRequestBatchNotificationDao' defined in URL [bundle://84.0:0/META-INF/spring/atlassian-plugin-context.xml]: Initialization of bean failed; nested exception is java.lang.IllegalStateException: Invalid BundleContext.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480) ~[spring-2.5.6.SEC03-atlassian-6.jar:4.1.6.RELEASE]         at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_45]         ... 5 common frames omitted Caused by: java.lang.IllegalStateException: Invalid BundleContext.         at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:457) ~[org.apache.felix.framework-3.2.2.jar:na]         at com.atlassian.stash.plugin.util.EventListenerBeanRegistrar.registerIfEventListener(EventListenerBeanRegistrar.java:84) ~[na:na]         at com.atlassian.stash.plugin.util.EventListenerBeanRegistrar.postProcessBeforeInitialization(EventListenerBeanRegistrar.java:68) ~[na:na]         ... 6 common frames omitted {noformat} This appears to be because the {{eventListener}} OSGI service isn't available (yet). This can be avoided by using a {{ServiceTracker}} instead of a simple injected service. This would likely also solve the problem described in https://confluence.atlassian.com/display/STASHKB/SSH+Server+doesn't+start

    Atlassian JIRA | 1 year ago | Michael Heemskerk
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginPullRequestNotificationListener' defined in URL [bundle://84.0:0/META-INF/spring/atlassian-plugin-context.xml]: Cannot resolve reference to bean 'pullRequestBatchNotificationDao' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pullRequestBatchNotificationDao' defined in URL [bundle://84.0:0/META-INF/spring/atlassian-plugin-context.xml]: Initialization of bean failed; nested exception is java.lang.IllegalStateException: Invalid BundleContext.
  2. 0

    On startup, {{EventListenerBeanRegistrar}} sometimes triggers errors like {noformat} 2015-12-02 10:41:18,111 WARN  [spring-startup]  c.a.s.i.p.OsgiBundledPathScanner Cannot scan directory /com/atlassian/oauth/shared/servlet/ in bundle com.atlassian.oauth.atlassian-oauth-service-provider-plugin as it does not exist 2015-12-02 10:55:42,505 WARN  [ThreadPoolAsyncTaskExecutor::Thread 10]  o.s.b.f.s.DisposableBeanAdapter Invocation of destroy method 'destroy' failed on bean with name 'batchNotificationJob': java.lang.IllegalStateException: Invalid BundleContext. 2015-12-02 10:55:42,517 ERROR [ThreadPoolAsyncTaskExecutor::Thread 10]  o.s.o.e.i.a.ContextLoaderListener Application context refresh failed (NonValidatingOsgiBundleXmlApplicationContext(bundle=com.atlassian.stash.notification, config=osgibundle:/META-INF/spring/*.xml)) org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginPullRequestNotificationListener' defined in URL [bundle://84.0:0/META-INF/spring/atlassian-plugin-context.xml]: Cannot resolve reference to bean 'pullRequestBatchNotificationDao' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pullRequestBatchNotificationDao' defined in URL [bundle://84.0:0/META-INF/spring/atlassian-plugin-context.xml]: Initialization of bean failed; nested exception is java.lang.IllegalStateException: Invalid BundleContext.         at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275) ~[spring-2.5.6.SEC03-atlassian-6.jar:4.1.6.RELEASE]         at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_45]         at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_45]         at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45]         ... 20 frames trimmed Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pullRequestBatchNotificationDao' defined in URL [bundle://84.0:0/META-INF/spring/atlassian-plugin-context.xml]: Initialization of bean failed; nested exception is java.lang.IllegalStateException: Invalid BundleContext.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480) ~[spring-2.5.6.SEC03-atlassian-6.jar:4.1.6.RELEASE]         at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_45]         ... 5 common frames omitted Caused by: java.lang.IllegalStateException: Invalid BundleContext.         at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:457) ~[org.apache.felix.framework-3.2.2.jar:na]         at com.atlassian.stash.plugin.util.EventListenerBeanRegistrar.registerIfEventListener(EventListenerBeanRegistrar.java:84) ~[na:na]         at com.atlassian.stash.plugin.util.EventListenerBeanRegistrar.postProcessBeforeInitialization(EventListenerBeanRegistrar.java:68) ~[na:na]         ... 6 common frames omitted {noformat} This appears to be because the {{eventListener}} OSGI service isn't available (yet). This can be avoided by using a {{ServiceTracker}} instead of a simple injected service. This would likely also solve the problem described in https://confluence.atlassian.com/display/STASHKB/SSH+Server+doesn't+start

    Atlassian JIRA | 1 year ago | Michael Heemskerk
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginPullRequestNotificationListener' defined in URL [bundle://84.0:0/META-INF/spring/atlassian-plugin-context.xml]: Cannot resolve reference to bean 'pullRequestBatchNotificationDao' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pullRequestBatchNotificationDao' defined in URL [bundle://84.0:0/META-INF/spring/atlassian-plugin-context.xml]: Initialization of bean failed; nested exception is java.lang.IllegalStateException: Invalid BundleContext.
  3. 0
    samebug tip
    Mixed JpaTransactionManager with JTA transaction type in the beans.xml and persistence.xml
    via spring.io
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Your entity is not a valid Entity class.
  6. 0
    samebug tip
    Upgrade to Confluence 3.5.5 or install the patch as explained in the details.

  1. esaar 2 times, last 9 months ago
  2. abrazeneb 34 times, last 8 months ago
  3. Piz 9 times, last 9 months ago
  4. haerick 4 times, last 10 months ago
  5. Andreas Häber 8 times, last 11 months ago
3 more registered users
7 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.springframework.beans.factory.BeanCreationException

    Error creating bean with name 'pluginPullRequestNotificationListener' defined in URL [bundle://84.0:0/META-INF/spring/atlassian-plugin-context.xml]: Cannot resolve reference to bean 'pullRequestBatchNotificationDao' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pullRequestBatchNotificationDao' defined in URL [bundle://84.0:0/META-INF/spring/atlassian-plugin-context.xml]: Initialization of bean failed; nested exception is java.lang.IllegalStateException: Invalid BundleContext.

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference()
  2. Spring Beans
    BeanDefinitionValueResolver.resolveReference
    1. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)[spring-2.5.6.SEC03-atlassian-6.jar:4.1.6.RELEASE]
    1 frame
  3. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)[na:1.8.0_45]
    1 frame
  4. Spring Context
    AbstractApplicationContext.finishBeanFactoryInitialization
    1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
    1 frame
  5. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_45]
    2. java.lang.Thread.run(Thread.java:745)[na:1.8.0_45]
    2 frames