Null Pointer on Startup
thomasturrell opened this issue · comments
Running mvn spring-boot:run results in:
Exception in thread "main" java.lang.NullPointerException
at org.springframework.boot.autoconfigure.security.AuthenticationManagerConfiguration.onApplicationEvent(AuthenticationManagerConfiguration.java:96)
at org.springframework.boot.autoconfigure.security.AuthenticationManagerConfiguration.onApplicationEvent(AuthenticationManagerConfiguration.java:54)
at org.springframework.boot.autoconfigure.security.AuthenticationManagerConfiguration$$EnhancerBySpringCGLIB$$6e726fa6.onApplicationEvent(<generated>)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:98)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:333)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:776)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:142)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:485)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:120)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:691)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:952)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:941)
at hello.Application.main(Application.java:14)
I am presuming that it is the same issue as spring-guides/gs-securing-web#15
Yes it's the same problem, and the same workarounds should be fine (spring-guides/gs-securing-web#16).
Hi, I just start to learn Spring from Spring.IO, but after checking out the commit 3142bb0 and run with mvn clean package && java -jar target/gs-authenticating-ldap-0.1.0.jar. I still see the NullPointerException problem, but no problem when using the commit 0f4e1ec and execute the same command. Does this problem is resolved in 3142bb0