IBM Support

WSWS3228E: Error: Exception: java.net.SocketTimeoutException: Async operation timed out

Troubleshooting


Problem

WSWS3228E exception occurs in WebService client (JAX-RPC) when invoking WebService call and WebService provider is taking more than default timeout (300 secs) to process the request.

Symptom

Following exception is observed in client side. The exception will be found in the SystemOut.log or as a SOAPFault message.

HttpOutboundC 1 WSWS3228E: Error: Exception: java.net.SocketTimeoutException: Async operation timed out
at
com.ibm.ws.tcp.channel.impl.AioTCPReadRequestContextImpl.processSyncRead
Request(AioTCPReadRequestContextImpl.java:157)
at
com.ibm.ws.tcp.channel.impl.TCPReadRequestContextImpl.read(TCPReadReques
tContextImpl.java:109)
at
com.ibm.ws.http.channel.outbound.impl.HttpOutboundServiceContextImpl.par
seResponseMessageSync(HttpOutboundServiceContextImpl.java:1625)
at
com.ibm.ws.http.channel.outbound.impl.HttpOutboundServiceContextImpl.rea
dSyncResponse(HttpOutboundServiceContextImpl.java:695)
at
com.ibm.ws.http.channel.outbound.impl.HttpOutboundServiceContextImpl.sta
rtResponseReadSync(HttpOutboundServiceContextImpl.java:1743)
at
com.ibm.ws.http.channel.outbound.impl.HttpOutboundServiceContextImpl.fin
ishRequestMessage(HttpOutboundServiceContextImpl.java:1163)
at
com.ibm.ws.webservices.engine.transport.http.HttpOutboundChannelConnecti
on.sendSOAPRequest(HttpOutboundChannelConnection.java:366)
at
com.ibm.ws.webservices.engine.transport.http.HTTPSender.invoke(HTTPSende
r.java:606)
at
com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWra
pper.java:262)
at
com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWra
pper.java:262)
at
com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine
.java:336)
at
com.ibm.ws.webservices.engine.client.Connection.invokeEngine(Connection.
java:936)

Cause

HTTP transport custom properties for JAX-RPC web services applications in Infocenter is not clear on how to set "timeout" and "write_timeout" properties as JVM custom properties or incorrectly documented.

For example refer to WebSphere Application Server V8.0 Infocenter:
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=matt&product=was-base-dist&topic=rwbs_httptransportprop

Resolving The Problem

Set following JVM custom properties as required
For:

  1. "timeout" set custom property as com.ibm.ws.webservices.readTimeout
  2. "write_timeout" set custom property as com.ibm.ws.webservices.writeTimeout

The above property values are in seconds.

Note:
  1. Setting HTTP transport custom properties for JAX-RPC web services applications as JVM custom properties applies to all webservices application hosted on server.
  2. If your WebService implementation is JAX-WS then timeout and write_timeout are correct

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Web Services (for example: SOAP or UDDI or WSGW or WSIF)","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF035","label":"z\/OS"}],"Version":"8.5;8.0;7.0","Edition":"Base;Developer;Express;Network Deployment;Single Server","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21568332