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
  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

    Worklight 6.1 application does not start due to Derby database failure

    Stack Overflow | 3 years ago | Barat Sahdzijeu
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'txManager' defined in URL [wsjar:file:/C:/IBM/Worklight/WorklightServer/worklight-jee-library.jar!/conf/core.xml]: Cannot resolve reference to bean 'brokerSessionFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'brokerSessionFactory' defined in URL [wsjar:file:/C:/IBM/Worklight/WorklightServer/worklight-jee-library.jar!/conf/spring-server-core.xml]: Cannot resolve reference to bean 'rssBrokerDS' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rssBrokerDS' defined in URL [wsjar:file:/C:/IBM/Worklight/WorklightServer/worklight-jee-library.jar!/conf/spring-server-core.xml]: Cannot resolve reference to bean 'worklight-direct' while setting bean property 'targetDataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worklight-direct' defined in URL [wsjar:file:/C:/IBM/Worklight/WorklightServer/worklight-jee-library.jar!/conf/spring-server-core.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: FWLSE0206E: The project /MyProject failed to initialize, because the project database schema for data source jdbc:derby:C:\ProgramData\IBM\Worklight\derby_1\WRKLGHT is from version N/A, which is not supported by the server from version 6.1.0.00.20131126-0630. Use the Worklight ant tasks to upgrade the project database schema. [project MyProject]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error creating bean with name 'transactionManager' - Spring Forum

    spring.io | 3 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [jobs/iosample/fixedLengthFileDbDump.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [jobs/iosample/fixedLengthFileDbDump.xml]: Invocation of init method failed; nested exception is org.hibernate.AnnotationException: java.lang.NoSuchMethodException: org.hibernate.validator.ClassValidator.<init>(java.lang.Class, java.util.ResourceBundle, org.hibernate.validator.MessageInterpolator, java.util.Map, org.hibernate.annotations.common.reflection.ReflectionManager)
  6. 0

    WebSphere:WebSphere Application Server:Exception caught while initializing context - WebSphere Application Server Forum

    ibm.com | 8 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'LogViewManager' defined in ServletContext resource [/WEB-INF/zingcontext-service.xml]: Cannot resolve reference to bean 'LogDAO' while setting bean property 'logDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'LogDAO' defined in ServletContext resource [/WEB-INF/zingcontext-hibernate.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/zingcontext-hibernate.xml]: Invocation of init method failed; nested exception is java.lang.ArrayStoreException

  1. esaar 2 times, last 4 months ago
  2. abrazeneb 34 times, last 3 months ago
  3. Piz 9 times, last 4 months ago
  4. haerick 4 times, last 6 months ago
  5. Andreas Häber 8 times, last 6 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