最近出现这个后:HTTP/1.1 requires host
就频繁的出现:
[10:44:35.830] java.net.NoRouteToHostException: Write failed: Connection timed out
[10:44:35.830] at jrockit.net.SocketNativeIO.writeBytesPinned(Native Method)
[10:44:35.830] at jrockit.net.SocketNativeIO.socketWrite(SocketNativeIO.java:73)
[10:44:35.830] at java.net.SocketOutputStream.socketWrite0(SocketOutputStream.java)
[10:44:35.830] at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
[10:44:35.830] at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
[10:44:35.830] at com.caucho.vfs.SocketStream.write(SocketStream.java:210)
[10:44:35.830] at com.caucho.vfs.WriteStream.write(WriteStream.java:309)
[10:44:35.830] at com.caucho.server.connection.ResponseStream.writeNext(ResponseStream.java:448)
[10:44:35.830] at com.caucho.server.connection.ToByteResponseStream.write(ToByteResponseStream.java:329)
[10:44:35.830] at com.caucho.server.connection.ServletOutputStreamImpl.write(ServletOutputStreamImpl.java:68)
[10:44:35.830] at com.caucho.vfs.Path.writeToStream(Path.java:1073)
[10:44:35.830] at com.caucho.servlets.FileServlet.service(FileServlet.java:351)
[10:44:35.830] at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106)
[10:44:35.830] at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413)
[10:44:35.830] at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
[10:44:35.830] at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)
[10:44:35.830] at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
[10:44:35.830] at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
[10:44:35.830] at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
[10:44:35.830] at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:173)
[10:44:35.830] at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
[10:44:35.830] at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274)
[10:44:35.830] at com.caucho.server.port.TcpConnection.run(TcpConnection.java:514)
[10:44:35.830] at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:520)
[10:44:35.830] at com.caucho.util.ThreadPool.run(ThreadPool.java:442)
[10:44:35.830] at java.lang.Thread.run(Thread.java:595)
服务器用resin,java是1.5(64bit)的。
查不出原因,苦脑啊
分享到:
相关推荐
在应用程序中调用不同服务时,经常会遇到No route to host程序异常的问题。下文分享该问题的排查过程与解决方法。
格式化namenode时 报错 No Route to Host from node1/192.168.3.101 to hadoop05:8485 failed on socket timeout exception: java.net.NoRouteToHostException: No route to host解决方案 一、报错信息概要: 在配置...
- **错误现象1:java.net.NoRouteToHostException: No route to host** - 原因:此错误通常由于防火墙阻止了通信导致。 - 解决方法:关闭Master服务器上的防火墙,例如在Linux环境下使用`chkconfig iptables off`...
java.net.NoRouteToHostException: No route to host 是 Hadoop 中的常见问题,主要是由于网络连接问题。解决方法是停止 iptables 服务,例如使用 `sudo /etc/init.d/iptables stop` 命令。 更改 namenode 后,在 ...
- 在执行DNS查询时,可能会遇到各种异常,如`UnknownHostException`(无法找到主机)、`NoRouteToHostException`(无路由到主机)、`SocketTimeoutException`(超时)等。这些异常都需要适当地捕获和处理。 6. **...
Java网络编程中可能遇到的异常包括`BindException`、`ConnectException`、`MalformedURLException`、`NoRouteToHostException`、`ProtocolException`、`SocketException`、`UnknownHostException`和`...
如`ConnectException`表示连接失败,`SocketException`通常与网络连接有关,`MalformedURLException`则是在解析URL时格式错误,`UnknownHostException`是无法解析主机名,`NoRouteToHostException`表示无法找到到...
在Java中,网络编程涉及异常处理,如`BindException`(绑定地址或端口失败)、`ConnectException`(连接失败)、`MalformedURLException`(URL格式错误)、`NoRouteToHostException`(找不到到目的地的路由)、`...