Navigator.navitgateto(<Viewname>) doesn't work anymore

Hello :slight_smile:

I am working currently with Vaadin 8.0.3 and I got a problem. (Yeah. Don’t you say… :smiley: )

Well I got a button to change view after a Facebook authentication. Thats not the problem. It works pretty fine.
The problem occures when enter my site, then hit multiple times the backbutton till I reach an other site I visited before and the come back to my vaadin app → now it’s impossible to change the View with this button.

This is my code:

button.addClickListener(new Button.ClickListener()
{
    @Override
    public void buttonClick(Button.ClickEvent clickEvent)
    {
          if(FacebookUserData.getInstance().isFacebookLoggedIn())
                   nav.navigateTo(ViewNames.LOGGEDINVIEW);
    }
 });

The facebook-data is ok. The button fires. Seems pretty well till this point.
The navigator works and its current navigationstate changes to the new views name.
BUT
in the browser nothing happens. Like the button has not listener. Just nothing.

This is what I get, when I deploy on my server and try the issue (on localhost I don’t get this):

Mar 21, 2017 9:20:06 AM org.atmosphere.container.JSR356Endpoint onError
SEVERE:
java.io.IOException: java.util.concurrent.ExecutionException: java.io.IOException: Unexpected error [32]
writing data to the APR/native socket [94,781,224,217,792]
with wrapper [org.apache.tomcat.util.net.AprEndpoint$AprSocketWrapper@37fa926d:94781224217792]
.
at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.startMessageBlock(WsRemoteEndpointImplBase.java:286)
at org.apache.tomcat.websocket.WsSession.sendCloseMessage(WsSession.java:572)
at org.apache.tomcat.websocket.WsSession.onClose(WsSession.java:495)
at org.apache.tomcat.websocket.WsFrameBase.processDataControl(WsFrameBase.java:348)
at org.apache.tomcat.websocket.WsFrameBase.processData(WsFrameBase.java:290)
at org.apache.tomcat.websocket.WsFrameBase.processInputBuffer(WsFrameBase.java:131)
at org.apache.tomcat.websocket.server.WsFrameServer.onDataAvailable(WsFrameServer.java:67)
at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler$WsReadListener.onDataAvailable(WsHttpUpgradeHandler.java:204)
at org.apache.coyote.http11.upgrade.AbstractServletInputStream.onDataAvailable(AbstractServletInputStream.java:203)
at org.apache.coyote.http11.upgrade.AbstractProcessor.upgradeDispatch(AbstractProcessor.java:93)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:635)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2536)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2525)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.util.concurrent.ExecutionException: java.io.IOException: Unexpected error [32]
writing data to the APR/native socket [94,781,224,217,792]
with wrapper [org.apache.tomcat.util.net.AprEndpoint$AprSocketWrapper@37fa926d:94781224217792]
.
at org.apache.tomcat.websocket.FutureToSendHandler.get(FutureToSendHandler.java:120)
at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.startMessageBlock(WsRemoteEndpointImplBase.java:281)
… 16 more
Caused by: java.io.IOException: Unexpected error [32]
writing data to the APR/native socket [94,781,224,217,792]
with wrapper [org.apache.tomcat.util.net.AprEndpoint$AprSocketWrapper@37fa926d:94781224217792]
.
at org.apache.coyote.http11.upgrade.AprServletOutputStream.doWriteInternal(AprServletOutputStream.java:144)
at org.apache.coyote.http11.upgrade.AprServletOutputStream.doWrite(AprServletOutputStream.java:70)
at org.apache.coyote.http11.upgrade.AbstractServletOutputStream.writeInternal(AbstractServletOutputStream.java:153)
at org.apache.coyote.http11.upgrade.AbstractServletOutputStream.write(AbstractServletOutputStream.java:121)
at org.apache.tomcat.websocket.server.WsRemoteEndpointImplServer.onWritePossible(WsRemoteEndpointImplServer.java:94)
at org.apache.tomcat.websocket.server.WsRemoteEndpointImplServer.doWrite(WsRemoteEndpointImplServer.java:81)
at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.writeMessagePart(WsRemoteEndpointImplBase.java:456)
at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.startMessage(WsRemoteEndpointImplBase.java:344)
at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.startMessageBlock(WsRemoteEndpointImplBase.java:276)
… 16 more