NullPointerException on RouterLink

System.err.println(“>>>>>>>>>>>>>>> MainView.MainView() UNO” + viewClass.getName() + " " + caption + " " + icon.name());
final RouterLink routerLink = new RouterLink(caption, viewClass);

This constructor generate a java.lang.NullPointerException: the printing before contructor generate this row:

MainView.MainView() UNOit.prismatdi.ui.agenti.CampionarioView campionarioAgente EDIT

Any ideas please??

Your post is a bit hard to read. Can you fix the formatting please? If you get a NPE, place a break point before the line that throws the exception and inspect the values for potential null references.

Alejandro Duarte:
Your post is a bit hard to read. Can you fix the formatting please? If you get a NPE, place a break point on the line that throws the exception and inspect the values for potential null references.

Print before the instatiation of RouterLink: MainView.MainView() UNOit.prismatdi.ui.agenti.CampionarioView campionarioAgente EDIT
I cannot place a breakpoint because this error is throw before the start of app, just after the connections of database.
Maybe is better to post all the trace of starting app.
18281579.txt (21 KB)

I’ve found: the annotation @Springcomponent was the killer!
May be it’s better that I re-read integration vaadin-spring!