org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'crowdUserManager' defined in class path resource [applicationContext-CrowdClient.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_methodSecurityInterceptor': Cannot resolve reference to bean '_authenticationManager' while setting bean property 'authenticationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_authenticationManager': Cannot create inner bean '(inner bean)' of type [com.atlassian.crowd.integration.springsecurity.RemoteCrowdAuthenticationProvider] while setting bean property 'providers' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#7' defined in ServletContext resource [/WEB-INF/security.xml]: Cannot resolve reference to bean 'crowdUserDetailsService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'crowdUserDetailsService' defined in ServletContext resource [/WEB-INF/security.xml]: Cannot resolve reference to bean 'crowdGroupMembershipManager' while setting bean property 'groupMembershipManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'crowdGroupMembershipManager' defined in class path resource [applicationContext-CrowdClient.xml]: Initialization of bean failed; nested exception is java.lang.NullPointerException

Atlassian JIRA | David Yu | 8 years ago
  1. 0

    Following the documentation for integration AppFuse results in errors: ERROR [http-8080-1] ContextLoader.initWebApplicationContext(215) | Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'crowdUserManager' defined in class path resource [applicationContext-CrowdClient.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_methodSecurityInterceptor': Cannot resolve reference to bean '_authenticationManager' while setting bean property 'authenticationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_authenticationManager': Cannot create inner bean '(inner bean)' of type [com.atlassian.crowd.integration.springsecurity.RemoteCrowdAuthenticationProvider] while setting bean property 'providers' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#7' defined in ServletContext resource [/WEB-INF/security.xml]: Cannot resolve reference to bean 'crowdUserDetailsService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'crowdUserDetailsService' defined in ServletContext resource [/WEB-INF/security.xml]: Cannot resolve reference to bean 'crowdGroupMembershipManager' while setting bean property 'groupMembershipManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'crowdGroupMembershipManager' defined in class path resource [applicationContext-CrowdClient.xml]: Initialization of bean failed; nested exception is java.lang.NullPointerException at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:478) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) . . . The doc in question is: http://confluence.atlassian.com/display/CROWD/Integrating+AppFuse+-+a+Crowd-Spring+Security+Integration+Tutorial

    Atlassian JIRA | 8 years ago | David Yu
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'crowdUserManager' defined in class path resource [applicationContext-CrowdClient.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_methodSecurityInterceptor': Cannot resolve reference to bean '_authenticationManager' while setting bean property 'authenticationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_authenticationManager': Cannot create inner bean '(inner bean)' of type [com.atlassian.crowd.integration.springsecurity.RemoteCrowdAuthenticationProvider] while setting bean property 'providers' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#7' defined in ServletContext resource [/WEB-INF/security.xml]: Cannot resolve reference to bean 'crowdUserDetailsService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'crowdUserDetailsService' defined in ServletContext resource [/WEB-INF/security.xml]: Cannot resolve reference to bean 'crowdGroupMembershipManager' while setting bean property 'groupMembershipManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'crowdGroupMembershipManager' defined in class path resource [applicationContext-CrowdClient.xml]: Initialization of bean failed; nested exception is java.lang.NullPointerException
  2. 0

    Following the documentation for integration AppFuse results in errors: ERROR [http-8080-1] ContextLoader.initWebApplicationContext(215) | Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'crowdUserManager' defined in class path resource [applicationContext-CrowdClient.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_methodSecurityInterceptor': Cannot resolve reference to bean '_authenticationManager' while setting bean property 'authenticationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_authenticationManager': Cannot create inner bean '(inner bean)' of type [com.atlassian.crowd.integration.springsecurity.RemoteCrowdAuthenticationProvider] while setting bean property 'providers' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#7' defined in ServletContext resource [/WEB-INF/security.xml]: Cannot resolve reference to bean 'crowdUserDetailsService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'crowdUserDetailsService' defined in ServletContext resource [/WEB-INF/security.xml]: Cannot resolve reference to bean 'crowdGroupMembershipManager' while setting bean property 'groupMembershipManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'crowdGroupMembershipManager' defined in class path resource [applicationContext-CrowdClient.xml]: Initialization of bean failed; nested exception is java.lang.NullPointerException at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:478) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) . . . The doc in question is: http://confluence.atlassian.com/display/CROWD/Integrating+AppFuse+-+a+Crowd-Spring+Security+Integration+Tutorial

    Atlassian JIRA | 8 years ago | David Yu
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'crowdUserManager' defined in class path resource [applicationContext-CrowdClient.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_methodSecurityInterceptor': Cannot resolve reference to bean '_authenticationManager' while setting bean property 'authenticationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_authenticationManager': Cannot create inner bean '(inner bean)' of type [com.atlassian.crowd.integration.springsecurity.RemoteCrowdAuthenticationProvider] while setting bean property 'providers' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#7' defined in ServletContext resource [/WEB-INF/security.xml]: Cannot resolve reference to bean 'crowdUserDetailsService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'crowdUserDetailsService' defined in ServletContext resource [/WEB-INF/security.xml]: Cannot resolve reference to bean 'crowdGroupMembershipManager' while setting bean property 'groupMembershipManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'crowdGroupMembershipManager' defined in class path resource [applicationContext-CrowdClient.xml]: Initialization of bean failed; nested exception is java.lang.NullPointerException
  3. 0

    My own ConversationService.addConverter(Converter c) throws Exception - Spring Forum

    spring.io | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0' defined in ServletContext resource [/WEB-INF/config/webmvc-config.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowController' defined in ServletContext resource [/WEB-INF/config/webmvc-config.xml]: Cannot resolve reference to bean 'flowExecutor' while setting bean property 'flowExecutor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowExecutor': Cannot resolve reference to bean 'flowRegistry' while setting bean property 'flowDefinitionLocator'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowRegistry': Cannot resolve reference to bean 'facesFlowBuilderServices' while setting bean property 'flowBuilderServices'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'facesFlowBuilderServices': Cannot resolve reference to bean 'conversionService' while setting bean property 'conversionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'conversionService' defined in ServletContext resource [/WEB-INF/config/webflow-config.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [de.myapp.web.springframework.myappConversationService]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: de.myapp.web.springframework.myappConversationService.addConverter(Lorg/springframework/binding/convert/converters/Converter;)V
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error creating bean with name '_filterChainProxy' - Spring Forum

    spring.io | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_filterChainProxy': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_filterChainList': Cannot resolve reference to bean '_rememberMeFilter' while setting bean property 'filters' with key [6]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_rememberMeFilter': Cannot resolve reference to bean '_rememberMeServices' while setting bean property 'rememberMeServices'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_rememberMeServices': Initialization of bean failed; nested exception is org.springframework.security.config.SecurityConfigurationException: More than one UserDetailsService registered. Please use a specific Id in your configuration
  6. 0

    Enabling global-method-security with JPA @PersistenceContext annotations will fail on startup. This is with the recent 2.0.0 release cut. My userDetailsService is a custom implementation that requires access to an @Repository bean with an EntityManager. <sec:http auto-config="true"> <sec:intercept-url pattern="/assets/**" access="IS_AUTHENTICATED_ANONYMOUSLY"/> <sec:intercept-url pattern="/login*" access="IS_AUTHENTICATED_ANONYMOUSLY"/> <sec:intercept-url pattern="/logout*" access="IS_AUTHENTICATED_ANONYMOUSLY"/> <sec:intercept-url pattern="/unsupported*" access="IS_AUTHENTICATED_ANONYMOUSLY"/> <sec:intercept-url pattern="/password-*" access="IS_AUTHENTICATED_ANONYMOUSLY"/> <sec:intercept-url pattern="/**" access="ROLE_USER,ROLE_ADMIN"/> <sec:form-login login-page="/login.html" default-target-url="/app.html" authentication-failure-url="?login_error=1"/> <sec:logout logout-success-url="/logout.html"/> </sec:http> <sec:authentication-provider user-service-ref="userDetailsService"> <sec:password-encoder ref="passwordEncoder" /> </sec:authentication-provider> <sec:global-method-security secured-annotations="enabled" /> The exception: 2008-04-15 04:50:26,490 ERROR [main] org.springframework.web.context.ContextLoader: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_rememberMeServicesInjectionBeanPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot create inner bean '(inner bean)' of type [org.springframework.transaction.interceptor.TransactionInterceptor] while setting bean property 'transactionInterceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [epicenter-webapp-beans.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 'ehCacheManager' defined in class path resource [epicenter-repository-beans.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_methodDefinitionSourceAdvisor': Cannot create inner bean '(inner bean)' of type [org.springframework.security.intercept.method.aopalliance.MethodSecurityInterceptor] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean '_authenticationManager' while setting bean property 'authenticationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_authenticationManager': Cannot resolve reference to bean 'org.springframework.security.providers.dao.DaoAuthenticationProvider#0' while setting bean property 'providers' with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.providers.dao.DaoAuthenticationProvider#0': Cannot resolve reference to bean 'userDetailsService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDetailsService': Injection of resource fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'permissionRepository': Injection of persistence fields failed; nested exception is java.lang.NullPointerException at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:478) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:217) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:881) at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:606) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:366) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)

    Spring JIRA | 9 years ago | Steve Kondik
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_rememberMeServicesInjectionBeanPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot create inner bean '(inner bean)' of type [org.springframework.transaction.interceptor.TransactionInterceptor] while setting bean property 'transactionInterceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [epicenter-webapp-beans.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 'ehCacheManager' defined in class path resource [epicenter-repository-beans.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_methodDefinitionSourceAdvisor': Cannot create inner bean '(inner bean)' of type [org.springframework.security.intercept.method.aopalliance.MethodSecurityInterceptor] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean '_authenticationManager' while setting bean property 'authenticationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_authenticationManager': Cannot resolve reference to bean 'org.springframework.security.providers.dao.DaoAuthenticationProvider#0' while setting bean property 'providers' with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.providers.dao.DaoAuthenticationProvider#0': Cannot resolve reference to bean 'userDetailsService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDetailsService': Injection of resource fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'permissionRepository': Injection of persistence fields failed; nested exception is java.lang.NullPointerException

    25 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 'crowdUserManager' defined in class path resource [applicationContext-CrowdClient.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_methodSecurityInterceptor': Cannot resolve reference to bean '_authenticationManager' while setting bean property 'authenticationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_authenticationManager': Cannot create inner bean '(inner bean)' of type [com.atlassian.crowd.integration.springsecurity.RemoteCrowdAuthenticationProvider] while setting bean property 'providers' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#7' defined in ServletContext resource [/WEB-INF/security.xml]: Cannot resolve reference to bean 'crowdUserDetailsService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'crowdUserDetailsService' defined in ServletContext resource [/WEB-INF/security.xml]: Cannot resolve reference to bean 'crowdGroupMembershipManager' while setting bean property 'groupMembershipManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'crowdGroupMembershipManager' defined in class path resource [applicationContext-CrowdClient.xml]: Initialization of bean failed; nested exception is java.lang.NullPointerException

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean()
    2. Spring Beans
      AbstractAutowireCapableBeanFactory$1.run
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:478)
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
      2 frames
    3. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame