You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
both Vaadin 7.7.6 and 8.0.0.beta1 are incompatible with jetty 9.4.0.v20161208, as soon as server push (WEBSOCKET or WEBSOCKET_XHR) is enabled.
As soon as the user loads a UI, they get a session expired message.
I can provide a minimum working example if necessary.
Is it possible that the recent update for the vaadin atmosphere has triggerd this problem once again? 0f08e30
We saw this update has been made to vaadin:
<atmosphere.runtime.version>2.4.5.vaadin2</atmosphere.runtime.version>
@kolleggerm, most probably yes. You can always cherry-pick the change and build your own snapshot of 7.7 and test if it works. Any feedback is welcome.
The main challenge is that the new Atmosphere version requires Java 8. This means that someone would have to identify and backport the fixes related to Jetty 9.4 to an older version of Atmosphere.
@pinonpierre Thanks a lot. After adding <dependency> <groupId>org.eclipse.jetty.websocket</groupId> <artifactId>javax-websocket-server-impl</artifactId> <version>${jetty.version}</version> </dependency>
it works with 9.4.6.v20170531 !
Sorry for fomatting
and configure the webAppContext for jsr356 web sockets:
WebSocketServerContainerInitializer.configureContext(webAppContext);
@pinonpierre Where do I configure this? And what do I have to set in webAppContext? I'm getting the error javax.servlet.ServletException: Not running on Jetty, JSR-356 support unavailable
after adding the dependencies for websockets.
Vaadin 12/13 + push (PushMode.MANUAL) with embedded Jetty 9.3.25.v20180904 works right.
With embedded 9.4.15.v20190215 only with Transport.LONG_POLLING.
With other transport: "Session Expired
Take note of any unsaved data, and click here or press ESC key to continue.", "endRequest called when no request is active."
Have I wrong configuration?
Activity
Artur- commentedon Jan 3, 2017
Created Atmosphere/atmosphere#2241
Augar commentedon Mar 28, 2017
Hi!
Is it possible that the recent update for the vaadin atmosphere has triggerd this problem once again?
0f08e30
We saw this update has been made to vaadin:
<atmosphere.runtime.version>2.4.5.vaadin2</atmosphere.runtime.version>
We are facing an issue regarding Jetty 9.4.x and Vaadin 8.0.3 + 8.0.4
https://vaadin.com/forum#!/thread/15523853
If we use Jetty 9.4.x + Vaadin 8.0.3/8.0.4 and activate the @Push annotation we are recieving "Session expired" as soon as we open the website.
If we remove the @Push everything seems fine.
Using Vaadin 8.0.2 + @Push works fine.
Using Jetty 9.3.x + @Push + Vaadin 8.0.3/8.0.4 works fine.
Anybody got an idea on this issue?
Augar commentedon May 4, 2017
G'Day
Did a test using
and
Same result as with Jetty 9.4.4 -> did not work
Update Atmosphere to support latest Jetty versions
Update Atmosphere to support latest Jetty versions (#9359)
mvysny commentedon May 24, 2017
Thank you! Using 8.1.0.beta1 with Jetty 9.4.2.v20170220 fixed the Atmosphere/Push issue for me.
kolleggerm commentedon May 31, 2017
Will this feature be available for Vaadin 7?
elmot commentedon May 31, 2017
@kolleggerm, most probably yes. You can always cherry-pick the change and build your own snapshot of 7.7 and test if it works. Any feedback is welcome.
elmot commentedon May 31, 2017
Oops... I did not know some important details.
The patch most likely is not going to be backported to 7. Please use Vaadin 8.
Legioth commentedon May 31, 2017
The main challenge is that the new Atmosphere version requires Java 8. This means that someone would have to identify and backport the fixes related to Jetty 9.4 to an older version of Atmosphere.
mvysny commentedon May 31, 2017
What if they are using Vaadin 7.7 with Java 8? Would just upgrading of the atmosphere library work?
Artur- commentedon May 31, 2017
If I remember correctly there are API changes in Atmosphere, which you would have to fix in 7.7 in addition to using Java 8
pinonpierre commentedon Jun 7, 2017
I don't understand because I tried to use 8.1.0.beta1 with Jetty 9.4.2.v20170220 and it doesn't work for me (But works with 9.3.20.v20170531 version)
Is it solved or not?
If not, I don't understand why this issue is closed. Is there another one?
- Upgrade Jetty from 9.2.16.v20160414 to 9.3.20.v20170531 (It works w…
Update Atmosphere to support latest Jetty versions (#9359)
Update Atmosphere to support latest Jetty versions (#9359)
jreznot commentedon Sep 10, 2017
8.1.3 Still does not work with Jetty 9.4.6.v20170531
Works for me with 9.3.20.v20170531
pinonpierre commentedon Sep 10, 2017
Vaadin 8.1.3 works with Jetty 9.4.5.v20170502.
pinonpierre commentedon Sep 14, 2017
@jreznot, @lanmaster: Can you give us more details because "it doesn't work" is not enough to identify your issue.
FYI, since recently, we need to add 2 dependencies for websockets:
and configure the webAppContext for jsr356 web sockets:
WebSocketServerContainerInitializer.configureContext(webAppContext);jreznot commentedon Sep 14, 2017
Hi,
Check this Gradle project https://github.com/jreznot/electron-java-app
Simply import it using Eclipse / Intellij and start org.strangeway.electronvaadin.Launcher class in IDE
It works perfectly with servlet 3.0 configuration and org.eclipse.jetty.websocket:websocket-server:9.3.20.v20170531
Does not work with 9.4.6.v20170531.
lanmaster commentedon Sep 15, 2017
@pinonpierre Thanks a lot. After adding
<dependency> <groupId>org.eclipse.jetty.websocket</groupId> <artifactId>javax-websocket-server-impl</artifactId> <version>${jetty.version}</version> </dependency>it works with 9.4.6.v20170531 !
Sorry for fomatting
jreznot commentedon Sep 15, 2017
Unfortunately, it still writes to log
And returns 501 error on PUSH endpoint, so actually WebSocket transport still does not work:
Check this branch: https://github.com/jreznot/electron-java-app/tree/feature/jety-9.4
ChristinaSi commentedon Jul 17, 2018
@pinonpierre Where do I configure this? And what do I have to set in webAppContext? I'm getting the error
javax.servlet.ServletException: Not running on Jetty, JSR-356 support unavailableafter adding the dependencies for websockets.
gnkuzmin commentedon Mar 9, 2019
Vaadin 12/13 + push (PushMode.MANUAL) with embedded Jetty 9.3.25.v20180904 works right.
With embedded 9.4.15.v20190215 only with Transport.LONG_POLLING.
With other transport: "Session Expired
Take note of any unsaved data, and click here or press ESC key to continue.", "endRequest called when no request is active."
Have I wrong configuration?
bihu1 commentedon Jul 28, 2022
@gnkuzmin Did you solve the problem? I'm facing with the same one with Vaadin 23 and I'm searching for solution.