Topic
2 replies Latest Post - ‏2012-06-26T14:54:27Z by DGawron
GQWW_Manikandan_A
GQWW_Manikandan_A
11 Posts
ACCEPTED ANSWER

Pinned topic Caused by: java.io.IOException: Async IO operation failed

‏2012-06-26T07:18:56Z |
Dear ,
If webservice call taking more than 1 min getting the below error and 500 error page is displayed. Please advice.

Caused by: java.io.IOException: Async IO operation failed (1), reason: RC: 32 Broken pipe
at com.ibm.io.async.AsyncLibrary$IOExceptionCache.<init>(AsyncLibrary.java:891)
at com.ibm.io.async.AsyncLibrary$IOExceptionCache.get(AsyncLibrary.java:904)
at com.ibm.io.async.AsyncLibrary.getIOException(AsyncLibrary.java:918)
at com.ibm.io.async.AbstractAsyncChannel.multiIO(AbstractAsyncChannel.java:473)
at com.ibm.io.async.AsyncSocketChannelHelper.write(AsyncSocketChannelHelper.java:478)
at com.ibm.io.async.AsyncSocketChannelHelper.write(AsyncSocketChannelHelper.java:396)
at com.ibm.ws.tcp.channel.impl.AioSocketIOChannel.writeAIO(AioSocketIOChannel.java:282)
Updated on 2012-06-26T14:54:27Z at 2012-06-26T14:54:27Z by DGawron
  • mburati
    mburati
    352 Posts
    ACCEPTED ANSWER

    Re: Caused by: java.io.IOException: Async IO operation failed

    ‏2012-06-26T14:39:36Z  in response to GQWW_Manikandan_A
    I double checked with another WEF Web Svc expert and that does not look like a timeout error from the WS stack itself (we would expect such a timeout to be wrapped in a SOAP Fault).

    Instead, it looks like a network timeout error, somewhere else in the network chain of that request.

    Is this for a request through an IBM HTTP Server proxy (IHS) or directly to portal?

    If through IHS, then I found a similar error and explanation (about IHS timeout config) in a web search of the error that you received
    that says you can receive such errors, if a request takes longer than the default configured IHS timeout of 60 seconds, so if you are using IHS as a proxy, you may want to check what its timeout is set to.

    Obviously, anything you can do to improve the performance of the web services could also help (many users won't wait that long for a browser page to return and may start trying to manually refresh the browser page and/or open a new browser assuming existing one is hung etc).

    I hope this info helps,
    ..mb1
  • DGawron
    DGawron
    50 Posts
    ACCEPTED ANSWER

    Re: Caused by: java.io.IOException: Async IO operation failed

    ‏2012-06-26T14:54:27Z  in response to GQWW_Manikandan_A
    It looks like there is an issue with the service end-point or some network intermediary. A normal web service call timeout would have a stack trace such as this:

    Exception Error in method sdGetMembers_InputPage_NextAction. Error in method sdGetMembers_ShowResults. Error in method getMembersExecute. Error in method wsc1.invoke. Error in method wsc1.invokeInternal. java.net.SocketTimeoutException: Async operation timed out
    Stack Trace
    javax.xml.ws.WebServiceException: java.net.SocketTimeoutException: Async operation timed out
    at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:175)
    ...
    Caused by: java.net.SocketTimeoutException: Async operation timed out
    at com.ibm.ws.tcp.channel.impl.AioTCPReadRequestContextImpl.processSyncReadRequest(AioTCPReadRequestContextImpl.java:189)
    ...
    Caused by: com.ibm.io.async.AsyncTimeoutException(Async operation timed out, Timeout, rc=0)
    ...

    You should verify that the end-point is working correctly. 500-level errors generally indicate the server is having a problem.