@yshaojie 你好,想跟你请教个问题:
<p style="font-size:13.3333330154419px;">
少杰,webbit怎么进行超时设置啊,就是加长超时的时间。在查一个数据量较大的sql时总是报错 org.webbitserver.WebbitException: java.net.SocketTimeoutException: Read timeout on [id: 0x0e28abb7, /127.0.0.1:60498 => /127.0.0.1:8080]
</p>
<p style="font-size:13.3333330154419px;">
网上查了好多种方法都不行,项目是你以前做的 smc-analyze
</p>
<p style="font-size:13.3333330154419px;">
<br>
</p>
<p style="font-size:13.3333330154419px;">
<strong>具体错误:</strong>
</p>
<p style="font-size:13.3333330154419px;">
Caused by: java.lang.RuntimeException: java.net.SocketTimeoutException: Read timeout<br>
at io.airlift.http.client.StringResponseHandler.handleException(StringResponseHandler.java:49)
at io.airlift.http.client.StringResponseHandler.handleException(StringResponseHandler.java:31)
at io.airlift.http.client.netty.NettyResponseFuture.failed(NettyResponseFuture.java:99)
at io.airlift.http.client.netty.NettyHttpResponseChannelHandler.handleException(NettyHttpResponseChannelHandler.java:84)
at io.airlift.http.client.netty.NettyHttpResponseChannelHandler.exceptionCaught(NettyHttpResponseChannelHandler.java:62)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:112)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43)
at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67)
at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314)
... 3 more
Caused by: java.net.SocketTimeoutException: Read timeout
at io.airlift.http.client.netty.NettyHttpResponseChannelHandler.handleException(NettyHttpResponseChannelHandler.java:77)
... 10 more
Caused by: org.jboss.netty.handler.timeout.ReadTimeoutException
at org.jboss.netty.handler.timeout.ReadTimeoutHandler.<clinit>(ReadTimeoutHandler.java:84)
at io.airlift.http.client.netty.HttpClientPipelineFactory.<init>(HttpClientPipelineFactory.java:42)
at io.airlift.http.client.netty.NettyAsyncHttpClient.<init>(NettyAsyncHttpClient.java:95)
at io.airlift.http.client.netty.StandaloneNettyAsyncHttpClient.<init>(StandaloneNettyAsyncHttpClient.java:32)
at io.airlift.http.client.netty.StandaloneNettyAsyncHttpClient.<init>(StandaloneNettyAsyncHttpClient.java:22)
at io.airlift.http.client.netty.StandaloneNettyAsyncHttpClient.<init>(StandaloneNettyAsyncHttpClient.java:18)
at com.sohu.smc.analyze.utils.AirliftHttpUtil.<clinit>(AirliftHttpUtil.java:31)
这个应该是httpclient设置的超时吧,你是?
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。