2013년 8월 12일 월요일

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

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


Technote (troubleshooting)


Problem(Abstract)

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
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.

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

댓글 없음:

댓글 쓰기