首页 新闻 搜索 专区 学院

websocket 每60s报WsHttpUpgradeHandler.timeoutAsync

0
悬赏园豆:50 [已解决问题] 解决于 2020-09-15 17:28

在后台连接了一个websocket连接,每60s就报如下错误,有知道这是什么情况的吗?

2020-09-10 14:22:40 [Catalina-utility-1] ERROR org.apache.coyote.http11.Http11NioProtocol -Error processing async timeouts
java.util.concurrent.ExecutionException: java.lang.AbstractMethodError: Method org/apache/tomcat/websocket/server/WsHttpUpgradeHandler.timeoutAsync(J)V is abstract
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.apache.coyote.AbstractProtocol.startAsyncTimeout(AbstractProtocol.java:615)
at org.apache.coyote.AbstractProtocol$1.run(AbstractProtocol.java:598)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.AbstractMethodError: Method org/apache/tomcat/websocket/server/WsHttpUpgradeHandler.timeoutAsync(J)V is abstract
at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.timeoutAsync(WsHttpUpgradeHandler.java)
at org.apache.coyote.http11.upgrade.UpgradeProcessorInternal.timeoutAsync(UpgradeProcessorInternal.java:78)
at org.apache.coyote.AbstractProtocol$2.run(AbstractProtocol.java:626)
... 8 common frames omitted

jianming2032的主页 jianming2032 | 初学一级 | 园豆:15
提问于:2020-09-10 15:00
< >
分享
最佳答案
0

从字面意思看,超时错误,java写的不太懂,定位到代码看看是不是配置有问题

收获园豆:50
秋风拂过朝阳 | 菜鸟二级 |园豆:258 | 2020-09-10 15:22

谢谢,我也觉得应该是配置的问题,每次刚好间隔60秒报一次错,就不知道在哪里配置
定位后报错是在这:

jianming2032 | 园豆:15 (初学一级) | 2020-09-10 15:36

@jianming2032: java我不太懂哈,那你看下timeoutFuture.get()的方法里面用了什么配置,调的什么数据。

秋风拂过朝阳 | 园豆:258 (菜鸟二级) | 2020-09-10 15:46

@秋风拂过朝阳: 好的,多谢指点,我再看看

jianming2032 | 园豆:15 (初学一级) | 2020-09-10 16:09
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册