Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Eclipse Jetty 12.0.0 has been released!


If you have a simple Session.Listener to reproduce this could you please open an Issue on the jetty github project.


On Mon, Aug 21, 2023 at 7:52 PM Silvio Bierman <sbierman@xxxxxxxxxxxxxxxxxx> wrote:
Hi Lachlan,

Thanks for the reply. We override


but not


On 14-08-2023 09:10, Lachlan Roberts wrote:

Are you overriding both onWebSocketText and onWebSocketPartialText from the Session.Listener?
These cannot be used together for a particular message type (TEXT/BINARY).


On Fri, Aug 11, 2023 at 7:15 PM Silvio Bierman via jetty-users <jetty-users@xxxxxxxxxxx> wrote:
Thanks again,

Reading the docs I think I managed to convert my WebSocket related code to the new API. Instead of WebSocketListener/WebSocketAdapter I now use Session.Listener and there where some other minor changes. Everything compiles now.

However, JettyWebSocketServerContainer.upgrade throws an exception so I must still be doing something wrong.

org.eclipse.jetty.websocket.api.exceptions.InvalidWebSocketException: Cannot replace previously assigned [TEXT Handler] at MethodHandle(ObjectSocketAdapter,String,boolean)void with public void nl.idfix.scriptlet.scripts.handlers.ScriptHandler$ObjectSocketAdapter.onWebSocketText(java.lang.String)
    at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandlerMetadata.assertNotSet(
    at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandlerMetadata.setTextHandle(
    at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandlerFactory.createListenerMetadata(
    at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandlerFactory.createMetadata(
    at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandlerFactory.getMetadata(
    at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandlerFactory.newJettyFrameHandler(
    at org.eclipse.jetty.ee10.websocket.server.internal.JettyServerFrameHandlerFactory.newFrameHandler(
    at org.eclipse.jetty.websocket.core.server.internal.CreatorNegotiator.negotiate(
    at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker.upgradeRequest(
    at org.eclipse.jetty.websocket.core.server.internal.HandshakerSelector.upgradeRequest(
    at org.eclipse.jetty.ee10.websocket.server.JettyWebSocketServerContainer.upgrade(
    at nl.idfix.util.servlet.JettyContainer$Servlet.service(JettyContainer.scala:62)

On 10-08-2023 15:41, Joakim Erdfelt wrote:
Inline ...

On Thu, Aug 10, 2023 at 8:16 AM Silvio Bierman <sbierman@xxxxxxxxxxxxxxxxxx> wrote:
It is a server side error, the client is my browser on localhost.

Unfortunately this is not on any form of GIT. Only the (Scala) code is in an SVN repo. I left everything mostly as it as in the Jetty11 code.


libraryDependencies += "org.eclipse.jetty.ee10" % "jetty-ee10-servlet" % "12.0.0"
libraryDependencies += "org.eclipse.jetty.ee10.websocket" % "jetty-ee10-websocket-jetty-api" % "12.0.0.beta0"
libraryDependencies += "org.eclipse.jetty.ee10.websocket" % "jetty-ee10-websocket-jetty-server" % "12.0.0"
libraryDependencies += "org.eclipse.jetty.http2" % "jetty-http2-server" % "12.0.0"
libraryDependencies += "org.eclipse.jetty.http3" % "jetty-http3-server" % "12.0.0"

(Note the beta0 on the websocket API, there is no released version available yet).

The Jetty WebSocket API is not ee specific.
It was moved to jetty-core around beta1.

The server layer exists for all ee# levels.

Even core

- Joakim 

jetty-users mailing list
To unsubscribe from this list, visit

Back to the top