Hi all,
I have been trying to integrate vaadin with spring security without configuring the application as spring-boot. I have been using the security sample provided in Vaadin4Spring git. But after the integration the navigator doesn’t seem to load the views. In the stacktrace it is being shown as vaadin views are found.
Finished creating instance of bean ‘scopedTarget.httpService’
[2015-05-19 17:04:39]
[http-bio-8081-exec-8]
[DEBUG]
Authentication attempt using org.springframework.security.authentication.dao.DaoAuthenticationProvider
[2015-05-19 17:04:39]
[http-bio-8081-exec-8]
[TRACE]
Publishing event in Root WebApplicationContext: org.springframework.security.authentication.event.AuthenticationSuccessEvent[source=org.springframework.security.authentication.UsernamePasswordAuthenticationToken@442be9fb: Principal: org.springframework.security.core.userdetails.User@36ebcb: Username: user; Password: [PROTECTED]
; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_USER; Credentials: [PROTECTED]
; Authenticated: true; Details: null; Granted Authorities: ROLE_USER]
[2015-05-19 17:04:39]
[http-bio-8081-exec-8]
[DEBUG]
Returning cached instance of singleton bean ‘delegatingApplicationListener’
[2015-05-19 17:04:39]
[http-bio-8081-exec-8]
[DEBUG]
Using default Url: /
java.lang.NullPointerException
at org.vaadin.spring.security.web.authentication.AbstractVaadinAuthenticationTargetUrlRequestHandler.handle(AbstractVaadinAuthenticationTargetUrlRequestHandler.java:98)
at org.vaadin.spring.security.web.authentication.VaadinUrlAuthenticationSuccessHandler.onAuthenticationSuccess(VaadinUrlAuthenticationSuccessHandler.java:44)
at org.vaadin.spring.security.web.authentication.SavedRequestAwareVaadinAuthenticationSuccessHandler.onAuthenticationSuccess(SavedRequestAwareVaadinAuthenticationSuccessHandler.java:81)
at org.vaadin.spring.security.GenericVaadinSecurity.login(GenericVaadinSecurity.java:161)
at org.vaadin.spring.security.GenericVaadinSecurity.login(GenericVaadinSecurity.java:217)
at org.vaadin.spring.security.GenericVaadinSecurity.login(GenericVaadinSecurity.java:232)
at com.leanswift.webApp.ui.presenterimpl.LoginViewPresenter.Login(LoginViewPresenter.java:38)
at com.leanswift.webApp.ui.viewImpl.LoginViewImpl.login(LoginViewImpl.java:52)
at com.ejt.vaadin.loginform.LoginForm.login(LoginForm.java:199)
at com.ejt.vaadin.loginform.LoginForm.access$000(LoginForm.java:44)
at com.ejt.vaadin.loginform.LoginForm$2.submitCompleted(LoginForm.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
I’m getting this error, while debugging I found that from the GenericVaadinSecurity getCurrentResonse() method was returning null.
I’m also using AbstractSecurityWebApplicationInitializer in my project.
Can anybody please help with this issue… Thanx in advance