Trying to navigate to an unknown state '' and an error view provider not pr

I am using Navigator() so that I have a login page and a main page.
Everything works fine, I can login and be directed to the main page and from the main page using a menu option get back to the login page.

However if I click on the
to close the web page to close the page and then type into a new browser page the application’s URL I get the following error;

Apr 30, 2014 4:27:11 PM com.vaadin.server.DefaultErrorHandler doDefault
java.lang.IllegalArgumentException: Trying to navigate to an unknown state ‘’ and an error view provider not present
at com.vaadin.navigator.Navigator.navigateTo(
at com.vaadin.ui.UI.doInit(
at com.vaadin.server.communication.UIInitHandler.getBrowserDetailsUI(
at com.vaadin.server.communication.UIInitHandler.synchronizedHandleRequest(
at com.vaadin.server.SynchronizedRequestHandler.handleRequest(
at com.vaadin.server.VaadinService.handleRequest(
at com.vaadin.server.VaadinServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at org.apache.catalina.core.StandardWrapperValve.invoke(
at org.apache.catalina.core.StandardContextValve.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.valves.ErrorReportValve.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.catalina.connector.CoyoteAdapter.service(
at org.apache.jk.server.JkCoyoteHandler.invoke(
at org.apache.jk.common.HandlerRequest.invoke(
at org.apache.jk.common.ChannelSocket.invoke(
at org.apache.jk.common.ChannelSocket.processConnection(
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(
at org.apache.tomcat.util.threads.ThreadPool$

The only solution is to close and reopen the browser and then I can access the application.

Can anyone help with this issue?

Can you please share the code on how you are initializing various views in the navigator? Do you have a default View setup for fragement ‘’? Some thing like this

navigator.addView("", new LoginViewOrDefaultView());


better solution would be:

LoginView loginView = new LoginView ();
LogoutView logoutView = new LogoutView();

navigator.addView(“login”, loginView );
navigator.addView(“logout”, logoutView );

navigator.setErrorView(loginView );

more details at!/thread/2386776