I have a problem with Vaadin ; this is my code :
@SpringView(name = LoginView.VIEW_NAME)
public class LoginView extends Panel implements View {
    private static final long serialVersionUID = 4440163925650357979L;
    public static final String VIEW_NAME = "login";
    @Autowired
    private UiController controller;
    public LoginView() {
        super();
        System.out.println(controller);
    }
}
And the exception is like :
2017-01-17 10:20:32.649 ERROR 10176 --- [nio-8080-exec-8] com.vaadin.server.DefaultErrorHandler    : 
java.lang.NullPointerException: null
    at com.open.belgium.tonyrenard.vaadin.views.LoginView.lambda$0(LoginView.java:33) ~[classes/:na]
I'm not an expert with vaadin and I am totally lost. The dependences are ok ? I don't know...
It works and I change a point. Then, I rollback and it doesn't work anyway... Can you help me ?
EDIT : Controller is null and I don't understand why...
EDIT : I found the solution, my LoginView was not instantiated by Spring. Then, Spring will not instantiate the Controller. I have put off the new LoginView in the caller and the @Autowired works fine.
 
     
    