org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_messageBrokerDefaultHandlerMapping': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_messageBroker': Cannot resolve reference to bean 'org.springframework.flex.core.LoginCommandConfigProcessor#0' while setting bean property 'configProcessors' with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.flex.core.LoginCommandConfigProcessor#0': Cannot resolve reference to bean 'myLoginCommand' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myLoginCommand' defined in ServletContext resource [/WEB-INF/flex-security.xml]: Post-processing failed of bean type [class com.lyreco.sfm.security.CustomLoginCommand] failed; nested exception is java.lang.NullPointerException

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via Stack Overflow by Saravanan Sivaji

Spring Security detects beans in the root context. Move the detection of the bean (or declare it explictly) in the root context.

,
via spring.io by Unknown author

Mixed JpaTransactionManager with JTA transaction type in the beans.xml and persistence.xml

Solutions on the web

via Spring JIRA by Philippe Mouawad, 1 year ago
'myLoginCommand' defined in ServletContext resource [/WEB-INF/flex-security.xml]: Post-processing failed of bean type [class com.lyreco.sfm.security.CustomLoginCommand] failed; nested exception is java.lang.NullPointerException
via Spring JIRA by Philippe Mouawad, 1 year ago
'myLoginCommand' defined in ServletContext resource [/WEB-INF/flex-security.xml]: Post-processing failed of bean type [class com.lyreco.sfm.security.CustomLoginCommand] failed; nested exception is java.lang.NullPointerException
via coderanch.com by Unknown author, 1 year ago
Error creating bean with name 'mySessionFactory' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Initialization of bean failed; nested exception is : org/springframework/jdbc/support/SQLExceptionTranslator
via Stack Overflow by Nilesh
, 2 years ago
Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/spring-servlet.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of
via soso.io by Unknown author, 2 years ago
Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Initialization of bean failed; nested exception is
via Stack Overflow by user548656
, 2 years ago
Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_messageBrokerDefaultHandlerMapping': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_messageBroker': Cannot resolve reference to bean 'org.springframework.flex.core.LoginCommandConfigProcessor#0' while setting bean property 'configProcessors' with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.flex.core.LoginCommandConfigProcessor#0': Cannot resolve reference to bean 'myLoginCommand' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myLoginCommand' defined in ServletContext resource [/WEB-INF/flex-security.xml]: Post-processing failed of bean type [class com.lyreco.sfm.security.CustomLoginCommand] failed; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 day ago
3 times, 2 months ago
2 times, 4 months ago
Once, 5 months ago
Once, 11 months ago
57 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.