NutzCN Logo
问答 org.eclipse.jetty.io.EofException linux服务器报的异常,接口可以正常访问
发布于 1838天前 作者 passpart 4016 次浏览 复制 上一个帖子 下一个帖子
标签:
[qtp1926343982-4874] WARN org.nutz.mvc.impl.processor.FailProcessor - Error@/open/api/zone/visitMe :
org.eclipse.jetty.io.RuntimeIOException: org.eclipse.jetty.io.EofException
	at org.eclipse.jetty.server.ResponseWriter.isOpen(ResponseWriter.java:133)
	at org.eclipse.jetty.server.ResponseWriter.write(ResponseWriter.java:180)
	at java.io.PrintWriter.append(PrintWriter.java:1063)
	at java.io.PrintWriter.append(PrintWriter.java:56)
	at org.nutz.json.impl.JsonRenderImpl.string2Json(JsonRenderImpl.java:246)
	at org.nutz.json.handler.JsonStringLikeHandler.toJson(JsonStringLikeHandler.java:27)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:86)
	at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:129)
	at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:183)
	at org.nutz.json.impl.JsonRenderImpl.map2Json(JsonRenderImpl.java:175)
	at org.nutz.json.handler.JsonMapHandler.toJson(JsonMapHandler.java:28)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:82)
	at org.nutz.json.handler.JsonIterableHandler.toJson(JsonIterableHandler.java:34)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:82)
	at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:129)
	at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:183)
	at org.nutz.json.handler.JsonPojoHandler.toJson(JsonPojoHandler.java:125)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:82)
	at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:129)
	at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:183)
	at org.nutz.json.impl.JsonRenderImpl.map2Json(JsonRenderImpl.java:175)
	at org.nutz.json.handler.JsonMapHandler.toJson(JsonMapHandler.java:28)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:82)
	at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:129)
	at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:183)
	at org.nutz.json.handler.JsonPojoHandler.toJson(JsonPojoHandler.java:125)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:82)
	at org.nutz.json.Json.toJson(Json.java:254)
	at org.nutz.mvc.Mvcs.write(Mvcs.java:291)
	at org.nutz.mvc.view.UTF8JsonView.render(UTF8JsonView.java:68)
	at org.nutz.mvc.impl.processor.ViewProcessor.process(ViewProcessor.java:66)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:33)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:38)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:58)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:123)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
	at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
	at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
	at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
	at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:202)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	at org.nutz.mvc.WhaleFilter.doFilter(WhaleFilter.java:171)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1602)
	at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:214)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1588)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1557)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
	at org.eclipse.jetty.server.Server.handle(Server.java:502)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.eclipse.jetty.io.EofException
	at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:285)
	at org.eclipse.jetty.io.WriteFlusher.flush(WriteFlusher.java:393)
	at org.eclipse.jetty.io.WriteFlusher.completeWrite(WriteFlusher.java:349)
	at org.eclipse.jetty.io.ChannelEndPoint$3.run(ChannelEndPoint.java:133)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:295)
	... 6 more
Caused by: java.io.IOException: Broken pipe
	at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
	at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
	at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
	at sun.nio.ch.IOUtil.write(IOUtil.java:51)
	at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
	at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:263)
	... 11 more

7 回复

这边也是类似的异常,接口测试都没有问题

[qtp1926343982-4766] WARN org.nutz.mvc.impl.processor.FailProcessor - Error@/open/api/im/getUsers :
org.eclipse.jetty.io.RuntimeIOException: org.eclipse.jetty.io.EofException
	at org.eclipse.jetty.server.ResponseWriter.isOpen(ResponseWriter.java:133)
	at org.eclipse.jetty.server.ResponseWriter.write(ResponseWriter.java:180)
	at java.io.PrintWriter.append(PrintWriter.java:1063)
	at java.io.PrintWriter.append(PrintWriter.java:56)
	at org.nutz.json.impl.JsonRenderImpl.string2Json(JsonRenderImpl.java:246)
	at org.nutz.json.handler.JsonStringLikeHandler.toJson(JsonStringLikeHandler.java:27)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:86)
	at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:129)
	at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:183)
	at org.nutz.json.impl.JsonRenderImpl.map2Json(JsonRenderImpl.java:175)
	at org.nutz.json.handler.JsonMapHandler.toJson(JsonMapHandler.java:28)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:82)
	at org.nutz.json.handler.JsonIterableHandler.toJson(JsonIterableHandler.java:34)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:82)
	at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:129)
	at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:183)
	at org.nutz.json.impl.JsonRenderImpl.map2Json(JsonRenderImpl.java:175)
	at org.nutz.json.handler.JsonMapHandler.toJson(JsonMapHandler.java:28)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:82)
	at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:129)
	at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:183)
	at org.nutz.json.impl.JsonRenderImpl.map2Json(JsonRenderImpl.java:175)
	at org.nutz.json.handler.JsonMapHandler.toJson(JsonMapHandler.java:28)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:82)
	at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:129)
	at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:183)
	at org.nutz.json.handler.JsonPojoHandler.toJson(JsonPojoHandler.java:125)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:82)
	at org.nutz.json.Json.toJson(Json.java:254)
	at org.nutz.mvc.Mvcs.write(Mvcs.java:291)
	at org.nutz.mvc.view.UTF8JsonView.render(UTF8JsonView.java:68)
	at org.nutz.mvc.impl.processor.ViewProcessor.process(ViewProcessor.java:66)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:33)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:38)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:58)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:123)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
	at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
	at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
	at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
	at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:202)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	at org.nutz.mvc.WhaleFilter.doFilter(WhaleFilter.java:171)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1602)
	at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:214)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1588)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1557)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
	at org.eclipse.jetty.server.Server.handle(Server.java:502)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.eclipse.jetty.io.EofException
	at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:285)
	at org.eclipse.jetty.io.WriteFlusher.flush(WriteFlusher.java:393)
	at org.eclipse.jetty.io.WriteFlusher.completeWrite(WriteFlusher.java:349)
	at org.eclipse.jetty.io.ChannelEndPoint$3.run(ChannelEndPoint.java:133)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:295)
	... 6 more
Caused by: java.io.IOException: Connection reset by peer
	at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
	at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
	at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
	at sun.nio.ch.IOUtil.write(IOUtil.java:51)
	at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
	at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:263)
	... 11 more

是不是$.ajax

ajax 请求吗,用的是apicloud混合开发,

api.ajax({
    url: 'http://192.168.1.101:3101/upLoad',
    method: 'post',
    data: {
        values: {
            userId: 'xxxxx'
        }
    }
}, function(ret, err) {
    if (ret) {
        api.alert({ msg: JSON.stringify(ret) });
    } else {
        api.alert({ msg: JSON.stringify(err) });
    }
});

通常是按button触发ajax,然后没中断冒泡,就变成了直接提交,页面也跳转了,ajax没完成就被终止,对应的连接就被关闭,后端写响应就报错

哦哦,了解了,还有个问题,服务器上总是报一个警告

[WARN ] 20:38:40.466 org.eclipse.jetty.server.HttpChannel.handleException(HttpChannel.java:584) - /upload/yuan/20191209/21h1pv3am6gbbr26dmph3s6fun.jpg java.io.IOException: java.util.concurrent.TimeoutException: Idle timeout expired: 1200000/1200000 ms

上传文件超时了?

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