Hi Oleg, There is an exception in the listening side of the transport. Do you think this is the cause of the error?
Thanks, Supun.. 2010-05-13 23:39:40,076 [-] [http-Listener I/O dispatcher-1] ERROR ServerHandler I/O error: Input length = 1 java.nio.charset.MalformedInputException: Input length = 1 at java.nio.charset.CoderResult.throwException(CoderResult.java:260) at org.apache.http.impl.nio.reactor.SessionInputBufferImpl.readLine(SessionInputBufferImpl.java:189) at org.apache.http.impl.nio.codecs.AbstractMessageParser.parse(AbstractMessageParser.java:169) at org.apache.http.impl.nio.DefaultNHttpServerConnection.consumeInput(DefaultNHttpServerConnection.java:152) at org.apache.http.impl.nio.DefaultServerIOEventDispatch.inputReady(DefaultServerIOEventDispatch.java:147) at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:161) at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:339) at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:319) at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:275) at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104) at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:528) at java.lang.Thread.run(Thread.java:619) On Sat, May 15, 2010 at 4:28 PM, Oleg Kalnichevski <ol...@apache.org> wrote: > On Sat, 2010-05-15 at 14:02 +0530, Supun Kamburugamuva wrote: > > Hi, > > > > One of the I/O dispatcher threads in Synapse is blocked > > in SharedInputBuffer.read method. Here is the thread dump. I would really > > appreciate if you can point me to the correct path for figuring out the > root > > cause of this. > > > > This dispatcher is sending the message out from synapse. In this case it > > tries to read the incoming message read by the listeners to send it out. > > > > Thanks, > > Supun.. > > Supun, > > SharedInputBuffer is shared by two (or more) threads: a data consumer > and a data producer. The data consumer thread is stuck waiting for more > data to arrive because the data producer thread does not fill the buffer > with more data. > > Try to find out why there is no data in the shared buffer. > > Oleg > > > > > "http-Sender I/O dispatcher-2" prio=10 tid=0x08505800 nid=0x1718 in > > Object.wait() [0x613ac000] > > java.lang.Thread.State: WAITING (on object monitor) > > at java.lang.Object.wait(Native Method) > > - waiting on <0x8213c928> (a java.lang.Object) > > at java.lang.Object.wait(Object.java:485) > > at > > > org.apache.http.nio.util.SharedInputBuffer.waitForData(SharedInputBuffer.java:132) > > - locked <0x8213c928> (a java.lang.Object) > > at > > > org.apache.http.nio.util.SharedInputBuffer.read(SharedInputBuffer.java:192) > > - locked <0x8213c928> (a java.lang.Object) > > at > > > org.apache.http.nio.entity.ContentInputStream.read(ContentInputStream.java:64) > > at > > java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:221) > > at > > java.util.zip.InflaterInputStream.read(InflaterInputStream.java:141) > > at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:92) > > at java.io.FilterInputStream.read(FilterInputStream.java:90) > > at > > > org.wso2.carbon.relay.BinaryRelayBuilder.readAllFromInputSteam(BinaryRelayBuilder.java:48) > > at > > > org.wso2.carbon.relay.StreamingOnRequestDataSource.getInputStream(StreamingOnRequestDataSource.java:59) > > at javax.activation.DataHandler.writeTo(DataHandler.java:305) > > at > > > org.wso2.carbon.relay.ExpandingMessageFormatter.findAndWrite2OutputStream(ExpandingMessageFormatter.java:170) > > at > > > org.wso2.carbon.relay.ExpandingMessageFormatter.writeTo(ExpandingMessageFormatter.java:99) > > at > > > org.apache.synapse.transport.nhttp.util.GzipMessageFormatterDecorator.writeTo(GzipMessageFormatterDecorator.java:66) > > at > > > org.apache.synapse.transport.nhttp.Axis2HttpRequest.setStreamAsTempData(Axis2HttpRequest.java:332) > > at > > > org.apache.synapse.transport.nhttp.Axis2HttpRequest.getRequest(Axis2HttpRequest.java:169) > > at > > > org.apache.synapse.transport.nhttp.ClientHandler.processConnection(ClientHandler.java:194) > > at > > > org.apache.synapse.transport.nhttp.ClientHandler.connected(ClientHandler.java:160) > > at > > > org.apache.http.impl.nio.DefaultClientIOEventDispatch.connected(DefaultClientIOEventDispatch.java:134) > > at > > > org.apache.http.impl.nio.reactor.BaseIOReactor.sessionCreated(BaseIOReactor.java:284) > > at > > > org.apache.http.impl.nio.reactor.AbstractIOReactor.processNewChannels(AbstractIOReactor.java:423) > > at > > > org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:286) > > at > > > org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104) > > at > > > org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:528) > > at java.lang.Thread.run(Thread.java:619) > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org > For additional commands, e-mail: dev-h...@hc.apache.org > > -- Software Engineer, WSO2 Inc http://wso2.org supunk.blogspot.com