diff --git a/spring-websocket/src/main/java/org/springframework/web/socket/adapter/jetty/JettyWebSocketSession.java b/spring-websocket/src/main/java/org/springframework/web/socket/adapter/jetty/JettyWebSocketSession.java index 5fdd6f0d0a3a..48b87417bbff 100644 --- a/spring-websocket/src/main/java/org/springframework/web/socket/adapter/jetty/JettyWebSocketSession.java +++ b/spring-websocket/src/main/java/org/springframework/web/socket/adapter/jetty/JettyWebSocketSession.java @@ -306,7 +306,7 @@ private static class Jetty10SessionHelper implements SessionHelper { static { try { - Class type = loader.loadClass("org.eclipse.jetty.websocket.api.WebSocketPolicy"); + Class type = loader.loadClass("org.eclipse.jetty.websocket.api.Session"); getTextMessageSizeLimitMethod = type.getMethod("getMaxTextMessageSize"); getBinaryMessageSizeLimitMethod = type.getMethod("getMaxBinaryMessageSize"); getRemoteAddressMethod = type.getMethod("getRemoteAddress");