-
Notifications
You must be signed in to change notification settings - Fork 729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.AssertionError: null in ConnectorTracker #12565
Comments
There was one fix, that was related to connector tracker in 8.16.0. That introduced a regression that was fixed in 8.16.1. But there is no changes in it between 8.16.1 and 8.17.0, so this is a bit surprising. |
since 28th October we have vaadin 8.17.0 and we get the exeception every day multiple times. Can you explain it what does it mean and when/why can it happen? |
Hi, could you get a look at to this issue? |
I think the exception is possible only if connector id is null. |
Yes I know that, but how can the connector id be null after update to vaadin 8.17.0? |
Hi @TatuLund , we analyzed further. Next to our main application (vaadin 8.17.0) we also have another vaadin application running on the same tomcat (with vaadin 14.8.17). We got new catalina.out logs and we see the warning Can this cause the problem with the Vaadin 8 exception? ( I found this bug which would be fixed with 14.8.19: vaadin/flow#14232 |
more details:
|
Hi, can you give a statement if it can be caused by the vaadin 14 application? |
If you are using MPR and the Vaadin 8 application is embedded in Vaadin 14 using it, then yes. The MPR product is implemented in such a way that it interferes with couple of asserts. This has been "fixed" in Vaadin 8.19.0 so that it does not run those asserts if MPR is present. |
We have discovered the problem now, it seems to be happen only in rare cases when multiple threads are involved: Thread 1:
Thread 2:
So what we see here is, that
As the code looks like it would handle removing the session attribute with We need this to enforce session invalidation on other browser instances. Roland |
@rPraml for me your latest comment seems not to be related to original question about the ConnectorTracker. So should you actually open a new ticket about this. |
Why not httpSession.invalidate()? |
Hi,
we check regularly the logs of our customers and an AssertionError occures very often since we updated the vaadin version from 8.16.1 to 8.17.0.
Stacktrace:
java.lang.AssertionError: null at com.vaadin.ui.ConnectorTracker.getDiffState(ConnectorTracker.java:700) at com.vaadin.server.LegacyCommunicationManager.encodeState(LegacyCommunicationManager.java:96) at com.vaadin.server.AbstractClientConnector.encodeState(AbstractClientConnector.java:292) at com.vaadin.server.communication.SharedStateWriter.write(SharedStateWriter.java:67) at com.vaadin.server.communication.UidlWriter.write(UidlWriter.java:176) at com.vaadin.server.communication.UidlRequestHandler.writeUidl(UidlRequestHandler.java:125) at com.vaadin.server.communication.UidlRequestHandler.synchronizedHandleRequest(UidlRequestHandler.java:93) at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:40) at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1669) at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:464) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:239) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:215) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
Can you explain it what does it mean and when/why does it happen?
Kind regards
Noemi (FOCONIS AG)
The text was updated successfully, but these errors were encountered: