java - EXCEPTION :Async operation timed out - When reading input stream in servlet -


i got exception exception :async operation timed out when reading input stream in servlet.
code read input stream :

        servletinputstream rdata = request.getinputstream();         int contentlength = request.getcontentlength()!=-1?request.getcontentlength():0;         byte[] ar_byte = new byte[contentlength];         rdata.read(ar_byte, 0, request.getcontentlength());         json_str =  new string(ar_byte, "utf-8");   

i got exception @ line
rdata.read(...
when application running in websphere 6.1 didnt when running in tomcat 6.0

stacktrace exception :

java.net.sockettimeoutexception: async operation timed out @ com.ibm.ws.tcp.channel.impl.aiotcpreadrequestcontextimpl.processsyncreadrequest(aiotcpreadrequestcontextimpl.java:157) @ com.ibm.ws.tcp.channel.impl.tcpreadrequestcontextimpl.read(tcpreadrequestcontextimpl.java:109) @ com.ibm.ws.http.channel.impl.httpservicecontextimpl.fillabuffer(httpservicecontextimpl.java:4130) @ com.ibm.ws.http.channel.impl.httpservicecontextimpl.readsingleblock(httpservicecontextimpl.java:3374) @ com.ibm.ws.http.channel.impl.httpservicecontextimpl.readbodybuffer(httpservicecontextimpl.java:3479) @ com.ibm.ws.http.channel.inbound.impl.httpinboundservicecontextimpl.getrequestbodybuffer(httpinboundservicecontextimpl.java:1604) @ com.ibm.ws.webcontainer.channel.wccbytebufferinputstream.bufferisgood(wccbytebufferinputstream.java:235) @ com.ibm.ws.webcontainer.channel.wccbytebufferinputstream.read(wccbytebufferinputstream.java:153) @ com.ibm.ws.webcontainer.srt.http.httpinputstream.read(httpinputstream.java:308) @ servlet.appservlet.dopost(appservlet.java:226) @ javax.servlet.http.httpservlet.service(httpservlet.java:763) @ javax.servlet.http.httpservlet.service(httpservlet.java:856) @ com.ibm.ws.webcontainer.servlet.servletwrapper.service(servletwrapper.java:1213) @ com.ibm.ws.webcontainer.servlet.servletwrapper.handlerequest(servletwrapper.java:658) @ com.ibm.ws.wswebcontainer.servlet.servletwrapper.handlerequest(servletwrapper.java:526) @ com.ibm.ws.webcontainer.servlet.cacheservletwrapper.handlerequest(cacheservletwrapper.java:90) @ com.ibm.ws.webcontainer.webcontainer.handlerequest(webcontainer.java:764) @ com.ibm.ws.wswebcontainer.webcontainer.handlerequest(webcontainer.java:1478) @ com.ibm.ws.webcontainer.channel.wcchannellink.ready(wcchannellink.java:133) @ com.ibm.ws.http.channel.inbound.impl.httpinboundlink.handlediscrimination(httpinboundlink.java:457) @ com.ibm.ws.http.channel.inbound.impl.httpinboundlink.handlenewrequest(httpinboundlink.java:515) @ com.ibm.ws.http.channel.inbound.impl.httpinboundlink.processrequest(httpinboundlink.java:300) @ com.ibm.ws.http.channel.inbound.impl.httpiclreadcallback.complete(httpiclreadcallback.java:102) @ com.ibm.ws.tcp.channel.impl.aioreadcompletionlistener.futurecompleted(aioreadcompletionlistener.java:165) @ com.ibm.io.async.abstractasyncfuture.invokecallback(abstractasyncfuture.java:217) @ com.ibm.io.async.asyncchannelfuture.firecompletionactions(asyncchannelfuture.java:161) @ com.ibm.io.async.asyncfuture.completed(asyncfuture.java:136) @ com.ibm.io.async.resulthandler.complete(resulthandler.java:196) @ com.ibm.io.async.resulthandler.runeventprocessingloop(resulthandler.java:751) @ com.ibm.io.async.resulthandler$2.run(resulthandler.java:881) @ com.ibm.ws.util.threadpool$worker.run(threadpool.java:1551) caused by: com.ibm.io.async.asynctimeoutexception(async operation timed out, [timeout, rc=0]) @ com.ibm.io.async.abstractasyncfuture.waitforcompletion(abstractasyncfuture.java:359) @ com.ibm.io.async.asyncfuture.getbytecount(asyncfuture.java:216) @ com.ibm.ws.tcp.channel.impl.aiosocketiochannel.readaiosync(aiosocketiochannel.java:214) @ com.ibm.ws.tcp.channel.impl.aiotcpreadrequestcontextimpl.processsyncreadrequest(aiotcpreadrequestcontextimpl.java:150) ... 30 more   

can 1 give suggestion solve issue.

thanks in advance.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -