You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by Subash Chaturanga <su...@gmail.com> on 2010/06/12 19:47:55 UTC

Timeout problem occurred in sample 12

Hi ,

I run the sample with " ant -Dmode=placeorder " .And the expected
result was a log with :

*SimpleStockQuoteService :: Accepted order for : 7482 stocks of IBM at
$ 169.27205579038733*

But when i do the ant it took a bit time and gives this exception

Buildfile: build.xml

init:

compile:

stockquote:
     [java] 2010-06-12 23:09:59,164 [-] [main] ERROR SandeshaModule
Could not load module policies. Using default values.
     [java] 2010-06-12 23:09:59,244 [-] [main]  INFO
MailTransportSender MAILTO Sender started
     [java] 2010-06-12 23:09:59,254 [-] [main]  INFO JMSSender JMS
Sender started
     [java] 2010-06-12 23:09:59,255 [-] [main]  INFO JMSSender JMS
Transport Sender initialized...
     [java] 2010-06-12 23:10:29,506 [-] [main]  INFO HTTPSender Unable
to sendViaPost to url[http://localhost:8280/]
     [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:237)
     [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)
     [java] 	at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:560)
     [java] 	at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
     [java] 	at
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
     [java] 	at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:415)
     [java] 	at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:240)
     [java] 	at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
     [java] 	at
org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutOnlyAxisOperation.java:272)
     [java] 	at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
     [java] 	at
org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.java:512)
     [java] 	at
org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.java:489)
     [java] 	at samples.userguide.StockQuoteClient.executeClient(Unknown Source)
     [java] 	at samples.userguide.StockQuoteClient.main(Unknown Source)
     [java] org.apache.axis2.AxisFault: Read timed out
     [java] 	at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
     [java] 	at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:197)
     [java] 	at
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
     [java] 	at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:415)
     [java] 	at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:240)
     [java] 	at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
     [java] 	at
org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutOnlyAxisOperation.java:272)
     [java] 	at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
     [java] 	at
org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.java:512)
     [java] 	at
org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.java:489)
     [java] 	at samples.userguide.StockQuoteClient.executeClient(Unknown Source)
     [java] 	at samples.userguide.StockQuoteClient.main(Unknown Source)
     [java] Caused by: 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:237)
     [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)
     [java] 	at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:560)
     [java] 	at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
     [java] 	... 10 more



Regards
/subash

Re: Timeout problem occurred in sample 12

Posted by Ruwan Linton <ru...@gmail.com>.
Hi Subash,

Please read through the samples guide correctly and carefully, I tried the
sample and it is working fine. Please note that the hosted samples guide on
the synapse.apache.org is for the 1.2 release version, where there are some
changes on the trunk, for example /soap addressing URL service path has to
be changed to /services

Also the log that you are expecting has to be appearing on the sample axis2
server not on the client side, this is a fire-and-forget case, where you do
not get a response to the client, but it is not giving the exception you
mentioned, please try the correct steps.

Thanks,
Ruwan

On Sun, Jun 13, 2010 at 8:40 PM, Subash Chaturanga <su...@gmail.com>wrote:

> I'm trying on the distribution from the  trunk ( synapse-2.0.0-SNAPSHOT )
>
> Thank You
> /subash
>



-- 
Ruwan Linton
Software Architect & Product Manager, WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org

Lean . Enterprise . Middleware

phone: +1 408 754 7388 ext 51789
email: ruwan@wso2.com; cell: +94 77 341 3097
blog: http://blog.ruwan.org
linkedin: http://www.linkedin.com/in/ruwanlinton
google: http://www.google.com/profiles/ruwan.linton
tweet: http://twitter.com/ruwanlinton

Re: Timeout problem occurred in sample 12

Posted by Subash Chaturanga <su...@gmail.com>.
I'm trying on the distribution from the  trunk ( synapse-2.0.0-SNAPSHOT )

Thank You
/subash

Re: Timeout problem occurred in sample 12

Posted by Ruwan Linton <ru...@gmail.com>.
Subash, are you trying the trunk or a specific release, if so what is the
version?

Thanks,
Ruwan

On Sat, Jun 12, 2010 at 11:17 PM, Subash Chaturanga <su...@gmail.com>wrote:

> Hi ,
>
> I run the sample with " ant -Dmode=placeorder " .And the expected
> result was a log with :
>
> *SimpleStockQuoteService :: Accepted order for : 7482 stocks of IBM at
> $ 169.27205579038733*
>
> But when i do the ant it took a bit time and gives this exception
>
> Buildfile: build.xml
>
> init:
>
> compile:
>
> stockquote:
>     [java] 2010-06-12 23:09:59,164 [-] [main] ERROR SandeshaModule
> Could not load module policies. Using default values.
>     [java] 2010-06-12 23:09:59,244 [-] [main]  INFO
> MailTransportSender MAILTO Sender started
>     [java] 2010-06-12 23:09:59,254 [-] [main]  INFO JMSSender JMS
> Sender started
>     [java] 2010-06-12 23:09:59,255 [-] [main]  INFO JMSSender JMS
> Transport Sender initialized...
>     [java] 2010-06-12 23:10:29,506 [-] [main]  INFO HTTPSender Unable
> to sendViaPost to url[http://localhost:8280/]
>     [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:237)
>     [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)
>     [java]     at
>
> org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:560)
>     [java]     at
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
>     [java]     at
> org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
>     [java]     at
>
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:415)
>     [java]     at
>
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:240)
>     [java]     at
> org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
>     [java]     at
>
> org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutOnlyAxisOperation.java:272)
>     [java]     at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
>     [java]     at
> org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.java:512)
>     [java]     at
> org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.java:489)
>     [java]     at samples.userguide.StockQuoteClient.executeClient(Unknown
> Source)
>     [java]     at samples.userguide.StockQuoteClient.main(Unknown Source)
>     [java] org.apache.axis2.AxisFault: Read timed out
>     [java]     at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>     [java]     at
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:197)
>     [java]     at
> org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
>     [java]     at
>
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:415)
>     [java]     at
>
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:240)
>     [java]     at
> org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
>     [java]     at
>
> org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutOnlyAxisOperation.java:272)
>     [java]     at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
>     [java]     at
> org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.java:512)
>     [java]     at
> org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.java:489)
>     [java]     at samples.userguide.StockQuoteClient.executeClient(Unknown
> Source)
>     [java]     at samples.userguide.StockQuoteClient.main(Unknown Source)
>     [java] Caused by: 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:237)
>     [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)
>     [java]     at
>
> org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:560)
>     [java]     at
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
>     [java]     ... 10 more
>
>
>
> Regards
> /subash
>



-- 
Ruwan Linton
Software Architect & Product Manager, WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org

Lean . Enterprise . Middleware

phone: +1 408 754 7388 ext 51789
email: ruwan@wso2.com; cell: +94 77 341 3097
blog: http://blog.ruwan.org
linkedin: http://www.linkedin.com/in/ruwanlinton
google: http://www.google.com/profiles/ruwan.linton
tweet: http://twitter.com/ruwanlinton