NutzCN Logo
问答 使用webscoekt出现错误
发布于 2770天前 作者 qq_1aa76597 2528 次浏览 复制 上一个帖子 下一个帖子
标签: play
nternal Server Error in WebSocket (closing the socket) for request WS /socket

Execution exception (In /app/controllers/front/gift/Application.java around line 15)
IllegalStateException occured : The outbound channel is closed

play.exceptions.JavaExecutionException: The outbound channel is closed
	at play.mvc.ActionInvoker.invoke(ActionInvoker.java:237)
	at play.mvc.WebSocketInvoker.invoke(WebSocketInvoker.java:28)
	at play.server.PlayHandler$WebSocketInvocation.execute(PlayHandler.java:1263)
	at play.Invoker$Invocation.run(Invoker.java:278)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalStateException: The outbound channel is closed
	at play.server.PlayHandler$3.send(PlayHandler.java:1180)
	at play.mvc.Http$Outbound.sendJson(Http.java:867)
	at controllers.front.gift.Application$WebSocket.listen(Application.java:15)
	at play.mvc.ActionInvoker.invokeWithContinuation(ActionInvoker.java:557)
	at play.mvc.ActionInvoker.invoke(ActionInvoker.java:508)
	at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:484)
	at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:479)
	at play.mvc.ActionInvoker.invoke(ActionInvoker.java:161)
	... 11 more
13:50:47,887 INFO  ~ id1blackUserId19
4 回复

直连的? 前面有nginx不?

就是在我自己本地测试的,没有Nginx

哦, 不晓得了

我是同时打开俩个浏览器打开那个页面就会出现那个问题

添加回复
请先登陆
回到顶部