sorry for not searching in the archive with markmail. I have found the answer here:
On 10/8/07, Asankha C. Perera <[email protected]> wrote: Eric Are you using windows? Also whats your client application written in? Most probably what happens is that your client sends the request stating HTTP 1.1 which implies the use of keepalives unless a "Connection: close" header is specified along with the request. But as soon as it gets the response back - the client closes the connection and possibly terminates itself. One way to find out if this is the cause is to send the request to Synpase through TCPMon etc and check if what I am saying is taking place - note that the sample stockquote client etc that uses Axis2 in our samples also suffers from this - but this is not a defect with Synapse. We could update Synapse to just do a WARN on this.. your thoughts are welcome asankha > -----Original Message----- > From: [email protected] [mailto:[email protected]] > Sent: Wednesday, December 16, 2009 5:13 PM > To: [email protected] > Subject: Sample 0 connection Error > > Hello, > > > > I have just installed and tried the sample 0 application of Synapse. > It seems to work somehow, but there is still an error message in the > Synapse console output saying "An existing connection was closed by the > remote host" (translated from german). On both sides, server and > client, everything seems to be ok, it's just synapse. > > Here are the console outputs > > > > ____________________________________________________________________ > > Axis2 Server console output: > > > > Wed Dec 16 16:50:55 CET 2009 samples.services.SimpleStockQuoteService > :: Generating quote for : IBM > > ____________________________________________________________________ > > > > Synapse console output: > > > > 2009-12-16 16:50:55,143 [192.168.2.1-Fat-Core2Duo] [HttpServerWorker-1] > INFO LogMediator To: > http://localhost:9000/soap/SimpleStockQuoteService, WSAction: urn: > > getQuote, SOAPAction: urn:getQuote, ReplyTo: > http://www.w3.org/2005/08/addressing/anonymous, MessageID: > urn:uuid:2304C5A25C1B68873B1260978654900, Direction: req > > uest, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Head > er xmlns:wsa="htt > > p://www.w3.org/2005/08/addressing"><wsa:To>http://localhost:9000/soap/S > impleStockQuoteService</wsa:To><wsa:MessageID>urn:uuid:2304C5A25C1B6887 > 3B1260978654900</w > > sa:MessageID><wsa:Action>urn:getQuote</wsa:Action></soapenv:Header><soa > penv:Body><m0:getQuote > xmlns:m0="http://services.samples/xsd"><m0:request><m0:symbol>IBM< > > /m0:symbol></m0:request></m0:getQuote></soapenv:Body></soapenv:Envelope > > > > 2009-12-16 16:50:55,159 [192.168.2.1-Fat-Core2Duo] [HttpServerWorker-1] > INFO TimeoutHandler This engine will expire all callbacks after : 86400 > seconds, irresp > > ective of the timeout action, after the specified or optional timeout > > 2009-12-16 16:50:55,205 [192.168.2.1-Fat-Core2Duo] [HttpClientWorker-1] > INFO LogMediator To: http://www.w3.org/2005/08/addressing/anonymous, > WSAction: , SOAPAc > > tion: , ReplyTo: http://www.w3.org/2005/08/addressing/anonymous, > MessageID: urn:uuid:9253641FAB4022EBA1639719603782565-1091310631, > Direction: response, Envelope > > : <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body > ><ns:getQuoteResponse xmlns:ns= > > "http://services.samples/xsd"><ns:return > type="samples.services.GetQuoteResponse"><ns:change>- > 2.740026424743019</ns:change><ns:earnings>12.985968531667194</ns:e > > arnings><ns:high>- > 99.59315516535092</ns:high><ns:last>99.61536938248533</ns:last><ns:last > TradeTimestamp>Wed Dec 16 16:50:55 CET 2009</ns:lastTradeTimestamp><ns: > > low>- > 97.2809218305695</ns:low><ns:marketCap>5.610176071955402E7</ns:marketCa > p><ns:name>IBM > Company</ns:name><ns:open>102.67366425811228</ns:open><ns:peRatio>23. > > 97205777063296</ns:peRatio><ns:percentageChange>- > 2.4133990851988454</ns:percentageChange><ns:prevClose>113.5339132904851 > 5</ns:prevClose><ns:symbol>IBM</ns:symbo > > l><ns:volume>15275</ns:volume></ns:return></ns:getQuoteResponse></soape > nv:Body></soapenv:Envelope> > > 2009-12-16 16:50:55,842 [192.168.2.1-Fat-Core2Duo] [I/O dispatcher 7] > ERROR ServerHandler I/O error: An existing connection was closed by > the remote host (translated) > > ______________________________________________________________ > > > > Client console output: > > > > C:\Program Files\Apache Software Foundation\synapse- > 1.2\samples\axis2Client>ant stockquote - > Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl= > > http://localhost:8280 -Dmode=quote -Dsymbol=IBM > > Buildfile: build.xml > > > > init: > > > > compile: > > > > stockquote: > > [java] 2009-12-16 16:50:54,805 [-] [main] INFO > MailTransportSender MAILTO Sender started > > [java] 2009-12-16 16:50:54,824 [-] [main] INFO JMSSender JMS > Sender started > > [java] Standard :: Stock price = $99.61536938248533 > > > > BUILD SUCCESSFUL > > Total time: 2 seconds > > ________________________________________________________________ > > > > according to the tutorial the output should be like in this link: > > http://synapse.apache.org/Synapse_QuickStart.html > > I'm running jdk 1.6 on Windows 7 with deactivated UAC, and temporaly > deactivated windows firewall trying to solve this error. > > Any advise or information about this error would be appreciated. > > > > > > Best regards, > > > > > > Thuy
