You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2018/02/26 08:32:03 UTC
[Bug 62133] New: java.lang.NoSuchMethodError when the client project
works with websocket
https://bz.apache.org/bugzilla/show_bug.cgi?id=62133
Bug ID: 62133
Summary: java.lang.NoSuchMethodError when the client project
works with websocket
Product: Tomcat 9
Version: unspecified
Hardware: PC
Status: NEW
Severity: blocker
Priority: P2
Component: WebSocket
Assignee: dev@tomcat.apache.org
Reporter: wangying8052@163.com
Target Milestone: -----
To handle the real time messaging, our project depends on websocket and set the
<Loader delegate="true"/> in script Context.xml. When running at tomcat 7.0.47,
we get the following exception:
java.lang.NoSuchMethodError:
javax.websocket.Session.addMessageHandler(Ljava/lang/Class;Ljavax/websocket/MessageHandler$Whole;)V
at com.horizon.common.websocket.WsServer.onOpen(WsServer.java:33)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.tomcat.websocket.pojo.PojoEndpointBase.doOnOpen(PojoEndpointBase.java:58)
at
org.apache.tomcat.websocket.pojo.PojoEndpointServer.onOpen(PojoEndpointServer.java:70)
at
org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:129)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:629)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 62133] java.lang.NoSuchMethodError when the client project
works with websocket
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62133
Wang Ying <wa...@163.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
Version|unspecified |7.0.47
Target Milestone|----- |---
Product|Tomcat 9 |Tomcat 7
Component|WebSocket |WebSocket
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 62133] java.lang.NoSuchMethodError when the client project
works with websocket
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62133
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Mark Thomas <ma...@apache.org> ---
You are trying to use a Java WebSocket 1.1 method that does not exist in Tomcat
7.0.47. You need at least 7.0.56 for WebSocket 1.1.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 62133] java.lang.NoSuchMethodError when the client project
works with websocket
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62133
--- Comment #2 from Wang Ying <wa...@163.com> ---
@(In reply to Mark Thomas from comment #1)
> You are trying to use a Java WebSocket 1.1 method that does not exist in
> Tomcat 7.0.47. You need at least 7.0.56 for WebSocket 1.1.
Thanks your quick reply, I have submit an issue in the client project and
suggested they upgrade the tomcat version!
https://github.com/Jibesh97/cm/issues/1
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org