获取异常“HTTP传输错误:java.net.NoRouteToHostException:无法分配请求的地址”

时间:2015-01-08 06:18:05

标签: java linux web-services cxf

在尝试使用cxf生成的客户端调用Web服务时,我收到以下错误。我已经测试了1000个并发请求,高达100k我获得了良好的结果。但在此之后,下面提到的例外正在发生。任何人都可以帮我解决这个问题。可以通过设置任何服务器/网络参数来解决这个问题

com.sun.xml.internal.ws.client.ClientTransportException: HTTP transport error: java.net.NoRouteToHostException: Cannot assign requested address
at com.sun.xml.internal.ws.transport.http.client.HttpClientTransport.getOutput(HttpClientTransport.java:121)
at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:142)
at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:83)
at com.sun.xml.internal.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:78)
at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Fiber.java:587)
at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Fiber.java:546)
at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Fiber.java:531)
at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Fiber.java:428)
at com.sun.xml.internal.ws.client.Stub.process(Stub.java:211)

0 个答案:

没有答案