Link to home
Start Free TrialLog in
Avatar of srikanthradix
srikanthradixFlag for United States of America

asked on

Thread times out. Please suggest

I am making a JDBC Call which is taking like 15 - 20 minutes, meanwhile the thread seems to be hung up or timed out. Here are the logs. Please suggest.

[6/24/08 10:21:12:747 EDT] 00000033 ThreadMonitor W   WSVR0605W: Thread "WebContainer : 0" (0000002c) has been active for 748389 milliseconds and may be hung.  There is/are 1 thread(s) in total in the server that may be hung.
[6/24/08 10:24:54:943 EDT] 00000031 ServletWrappe E   SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: Faces Servlet. Exception thrown : javax.faces.FacesException: Error parsing multipart/form-data
      at com.ibm.faces.context.MultipartExternalContextImpl$MultiPartServletRequestWrapper.<init>(MultipartExternalContextImpl.java:405)
      at com.ibm.faces.context.MultipartExternalContextImpl.<init>(MultipartExternalContextImpl.java:100)
      at com.ibm.faces.context.MultipartFacesContextFactoryImpl.getFacesContext(MultipartFacesContextFactoryImpl.java:66)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:192)
      at com.ibm.ws.cache.servlet.ServletWrapper.serviceProxied(ServletWrapper.java:275)
      at com.ibm.ws.cache.servlet.CacheHook.handleFragment(CacheHook.java:461)
      at com.ibm.ws.cache.servlet.CacheHook.handleServlet(CacheHook.java:283)
      at com.ibm.ws.cache.servlet.ServletWrapper.service(ServletWrapper.java:255)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:930)
      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
      at com.wellpoint.edl.filter.ApplicationSessionExpiryFilter.doFilter(Unknown Source)
      at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
      at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
      at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:761)
      at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:673)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:498)
      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
      at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
      at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:111)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:263)
      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
      at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
Caused by: java.net.SocketTimeoutException: Async operation timed out
      at com.ibm.ws.tcp.channel.impl.AioTCPReadRequestContextImpl.processSyncReadRequest(AioTCPReadRequestContextImpl.java:157)
      at com.ibm.ws.tcp.channel.impl.TCPReadRequestContextImpl.read(TCPReadRequestContextImpl.java:109)
      at com.ibm.ws.http.channel.impl.HttpServiceContextImpl.fillABuffer(HttpServiceContextImpl.java:4122)
      at com.ibm.ws.http.channel.impl.HttpServiceContextImpl.readSingleBlock(HttpServiceContextImpl.java:3366)
      at com.ibm.ws.http.channel.impl.HttpServiceContextImpl.readBodyBuffer(HttpServiceContextImpl.java:3471)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundServiceContextImpl.getRequestBodyBuffer(HttpInboundServiceContextImpl.java:1606)
      at com.ibm.ws.webcontainer.channel.WCCByteBufferInputStream.bufferIsGood(WCCByteBufferInputStream.java:109)
      at com.ibm.ws.webcontainer.channel.WCCByteBufferInputStream.read(WCCByteBufferInputStream.java:79)
      at com.ibm.ws.webcontainer.srt.http.HttpInputStream.read(HttpInputStream.java:292)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:229)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:246)
      at com.ibm.faces.fileupload.util.ContentLineReader.readLine(ContentLineReader.java:69)
      at com.ibm.faces.fileupload.util.MultipartContent.getContents(MultipartContent.java:71)
      at com.ibm.faces.context.MultipartExternalContextImpl$MultiPartServletRequestWrapper.<init>(MultipartExternalContextImpl.java:385)
      ... 35 more
Caused by: com.ibm.io.async.AsyncTimeoutException(Async operation timed out, [Timeout, rc=0])
      at com.ibm.io.async.AbstractAsyncFuture.waitForCompletion(AbstractAsyncFuture.java:359)
      at com.ibm.io.async.AsyncFuture.getByteCount(AsyncFuture.java:216)
      at com.ibm.ws.tcp.channel.impl.AioSocketIOChannel.readAIOSync(AioSocketIOChannel.java:214)
      at com.ibm.ws.tcp.channel.impl.AioTCPReadRequestContextImpl.processSyncReadRequest(AioTCPReadRequestContextImpl.java:150)
      ... 48 more

I am using WebSphere App Server, Is there anyway to say not to make assumptions that the thread is hung up or something. Please suggest.
Avatar of Mick Barry
Mick Barry
Flag of Australia image

it may just be that your longjdbc call is being detected and that thread gets timed out.

Avatar of srikanthradix

ASKER

ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for your time. Increasing the thread monitor threshold time worked.