[ 
https://issues.apache.org/jira/browse/SYNAPSE-270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12590371#action_12590371
 ] 

Ruwan Linton commented on SYNAPSE-270:
--------------------------------------

This is due to a concurrency issue. Hiranya you might not encounter the real 
issue because it needs a high end hardware to reproduce this.

Earlier the code block of creating the new aggregate for the first request of a 
aggregation was not synchronized which is the root cause of this issue and if 
there is another response for the same aggregate and the processor switches 
between threads, this occurs.

The stack trace you see was due to client side error and that also is fixed

> Synapse sample 400: Splitting and aggregating messages - Client times out 
> when running the sample 
> --------------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-270
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-270
>             Project: Synapse
>          Issue Type: Bug
>    Affects Versions: NIGHTLY
>         Environment: ubuntu, jdk15
>            Reporter: Charitha Kankanamge
>            Assignee: Ruwan Linton
>             Fix For: 1.2
>
>
> Sample client times out when running sample 400 as instructed in the sample 
> guide.
>   [java] java.net.SocketTimeoutException: Read timed out
>      [java]     at java.net.SocketInputStream.socketRead0(Native Method)
>      [java]     at java.net.SocketInputStream.read(SocketInputStream.java:129)
>      [java]     at 
> java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
>      [java]     at 
> java.io.BufferedInputStream.read(BufferedInputStream.java:235)
>      [java]     at 
> org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
>      [java]     at 
> org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
>      [java]     at 
> org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
>      [java]     at 
> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
>      [java]     at 
> org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
>      [java]     at 
> org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
>      [java]     at 
> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
>      [java]     at 
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
>      [java]     at 
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
>      [java]     at 
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
> Steps to reproduce:
> ================
> 1. Start Synapse with the sample configuration 400
> 2. Start axis2 server
> 3. Run client as follows
> ant stockquote -Daddurl=http://localhost:8080/soap/SplitAggregateProxy -Ditr=4
> This issue will not occur if you run the client again after timing out. 
> However, you should observe the issue in the first time.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to