Spring WebServiceTemplate occur java.net.SocketTimeoutException: Read timed out in JBoss EAP log

Solution Verified - Updated -

Issue

The below exception is very frequently occurred. Please advise where to dig this issue.

10:57:28,176 ERROR [APPL] (ajp-/10.136.51.30:8009-19) WebServiceIOException in UserServiceImpl.retrieveProfile() >> org.springframework.ws.client.WebServiceIOException: I/O error: Read timed out; nested exception is java.net.SocketTimeoutException: Read timed out: org.springframework.ws.client.WebServiceIOException: I/O error: Read timed out; nested exception is java.net.SocketTimeoutException: Read timed out
    at org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:502) [spring-ws-core-2.0.1.RELEASE.jar:]
    at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:343) [spring-ws-core-2.0.1.RELEASE.jar:]
    at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:337) [spring-ws-core-2.0.1.RELEASE.jar:]
    at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:329) [spring-ws-core-2.0.1.RELEASE.jar:]
          ...
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.16.Final-redhat-1.jar:]
    at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:505) [jbossweb-7.0.16.Final-redhat-1.jar:]
    at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:452) [jbossweb-7.0.16.Final-redhat-1.jar:]
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:931) [jbossweb-7.0.16.Final-redhat-1.jar:]
    at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_33]
Caused by: java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method) [rt.jar:1.6.0_33]
    at java.net.SocketInputStream.read(SocketInputStream.java:129) [rt.jar:1.6.0_33]
    at java.net.ManagedSocketInputStreamHighPerformance.read(ManagedSocketInputStreamHighPerformance.java:258) [Agent.jar:1.6.0_33]
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) [rt.jar:1.6.0_33]
    at java.io.BufferedInputStream.read(BufferedInputStream.java:237) [rt.jar:1.6.0_33]
    at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78) [commons-httpclient-3.1.jar:]
      ...
    at org.springframework.ws.transport.http.CommonsHttpConnection.onSendAfterWrite(CommonsHttpConnection.java:112) [spring-ws-core-2.0.1.RELEASE.jar:]
      ...
    at org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:496) [spring-ws-core-2.0.1.RELEASE.jar:]
    ... 45 more

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
  • Spring WebServiceTemplate
    • 2.0.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content