Cynthia

here is the log data when trying synapse and *Axis2 (v1.4) with the synapse 
sample client program*.?

==============================  *client program (from axis2 v1.4 
quickstartadb)*==============================

synapse --> sample client program

no change

COMMAND:(edited from sample 6)
ant stockquote -Dtrpurl=http://localhost:8290/
Are you using the sample client and the server that ships with Synapse? or are you using a client and sample service that ships with axis2? do not mix up the two..

"ant stockquote -Dtrpurl=http://localhost:8290/"; is for the Synapse sample client (that only works with the Synapse sample service)

"client program (from axis2 v1.4 quickstartadb)" this is a sample client that ships with Axis2 1.4, which will only work with the corresponding sample axis2 service


============================ synapse log===============================

[HttpServerWorker-1] DEBUG SynapseMessageReceiver Synapse received a ne
w message for message mediation... ............... [HttpClientWorker-1] DEBUG SynapseCallbackReceiver Body : <?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>4.29086
01370053</ns:change><ns:earnings>-9.533756272266443</ns:earnings><ns:high>-149.06101369040186</ns:high><ns:last>151.5679492660207
8</ns:last><ns:lastTradeTimestamp>Fri May 16 15:57:39 CEST 2008</ns:lastTradeTimestamp><ns:low>-150.61316089735473</ns:low><ns:ma rketCap>1839679.0819715653</ns:marketCap><ns:name>IBM Company</ns:name><ns:open>157.49811197907718</ns:open><ns:peRatio>-17.80115
2833926515</ns:peRatio><ns:percentageChange>-3.003482178280913</ns:percentageChange><ns:prevClose>-142.86284659965042</ns:prevClo
se><ns:symbol>IBM</ns:symbol><ns:volume>15968</ns:volume></ns:return></ns:getQuoteResponse></soapenv:Body></soapenv:Envelope> ....
this looks fine.. Synapse got a getQuote message, sent it to the sample axis2 server, got its response, and forwarded it to the requesting client..
============================ axis2 log===============================

Fri May 16 15:57:39 CEST 2008 samples.services.SimpleStockQuoteService :: Generating quote for : IBM
Looks fine..
============================ client log ===============================
..............................................

[java] 2008-05-16 15:57:20,947 [192.168.150.24-DEDSAV01.MAC.DOM] [Thread-0] *INFO SynapseInitializationModule Deploying the Synapse service.. * [java] 2008-05-16 15:57:21,013 [192.168.150.24-DEDSAV01.MAC.DOM] [Thread-0] INFO SynapseInitializationModule Initializing S andesha 2... [java] 2008-05-16 15:57:21,021 [192.168.150.24-DEDSAV01.MAC.DOM] [Thread-0] INFO SynapseInitializationModule Synapse server name : DEDSAV01.MAC.DOM [java] 2008-05-16 15:57:21,022 [192.168.150.24-DEDSAV01.MAC.DOM] [Thread-0] INFO SynapseInitializationModule Deploying Prox y services... [java] 2008-05-16 15:57:21,022 [192.168.150.24-DEDSAV01.MAC.DOM] [Thread-0] INFO SynapseInitializationModule Synapse initia lized successfully...! [java] 2008-05-16 15:57:21,052 [192.168.150.24-DEDSAV01.MAC.DOM] [Thread-0] DEBUG HttpCoreNIOSSLSender Loading Key Store fro m URL : file:/home/CHENG/synapse-1.1.1-bin/lib/identity.jks [java] 2008-05-16 15:57:21,714 [192.168.150.24-DEDSAV01.MAC.DOM] [Thread-0] DEBUG HttpCoreNIOSSLSender Loading Trust Key Sto re from URL : file:/home/CHENG/synapse-1.1.1-bin/lib/trust.jks [java] 2008-05-16 15:57:26,905 [192.168.150.24-DEDSAV01.MAC.DOM] [Thread-0] INFO HttpCoreNIOSender HTTPS Sender starting [java] 2008-05-16 15:57:26,906 [192.168.150.24-DEDSAV01.MAC.DOM] [Thread-0] INFO HttpCoreNIOSender HTTP Sender starting [java] 2008-05-16 15:57:29,437 [192.168.150.24-DEDSAV01.MAC.DOM] [HttpCoreNIOSender] DEBUG NativeWorkerPool Using native uti l.concurrent package.. [java] 2008-05-16 15:57:29,438 [192.168.150.24-DEDSAV01.MAC.DOM] [HttpCoreNIOSender] DEBUG NativeWorkerPool Using native uti l.concurrent package.. [java] 2008-05-16 15:57:30,118 [192.168.150.24-DEDSAV01.MAC.DOM] [Thread-0] INFO PipeImpl Using native OS Pipes for event-d riven to stream IO bridging [java] 2008-05-16 15:57:30,909 [192.168.150.24-DEDSAV01.MAC.DOM] [Thread-0] DEBUG ConnectionPool No connections available fo r reuse [java] 2008-05-16 15:57:30,949 [192.168.150.24-DEDSAV01.MAC.DOM] [Thread-0] DEBUG HttpCoreNIOSender A new connection establi shed [java] 2008-05-16 15:57:30,949 [192.168.150.24-DEDSAV01.MAC.DOM] [Thread-0] DEBUG Axis2HttpRequest start streaming outgoing http request [java] org.apache.axis2.AxisFault: The input stream for an incoming message is null. [java] at java.lang.Throwable.<init>(Throwable.java:181) [java] at java.lang.Exception.<init>(Exception.java:29) [java] at java.io.IOException.<init>(IOException.java:28) [java] at java.rmi.RemoteException.<init>(RemoteException.java:51) [java] at org.apache.axis2.AxisFault.<init>(AxisFault.java:126) [java] at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:71) [java] at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:326) [java] at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389) [java] at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) [java] at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) [java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528) [java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508) [java] at samples.userguide.StockQuoteClient.executeClient(Unknown Source) [java] at samples.userguide.StockQuoteClient.main(Unknown Source) [java] 2008-05-16 15:57:31,771 [192.168.150.24-DEDSAV01.MAC.DOM] [I/O dispatcher 1] DEBUG ClientHandler HTTP connection [loc alhost/127.0.0.1:8290]: Connected ([EMAIL PROTECTED]) [java] 2008-05-16 15:57:31,771 [192.168.150.24-DEDSAV01.MAC.DOM] [I/O dispatcher 1] DEBUG Axis2HttpRequest get source channe l of the pipe on which the outgoing response is written [java] 2008-05-16 15:57:31,831 [192.168.150.24-DEDSAV01.MAC.DOM] [I/O dispatcher 1] DEBUG ClientHandler HTTP connection [loc alhost/127.0.0.1:8290]: Output ready [java] 2008-05-16 15:57:31,839 [192.168.150.24-DEDSAV01.MAC.DOM] [I/O dispatcher 1] DEBUG ClientHandler HTTP connection [loc alhost/127.0.0.1:8290]: Content encoder [chunk-coded; completed: false] [java] 2008-05-16 15:57:31,839 [192.168.150.24-DEDSAV01.MAC.DOM] [I/O dispatcher 1] DEBUG ClientHandler HTTP connection [loc alhost/127.0.0.1:8290]: Output ready [java] 2008-05-16 15:57:31,839 [192.168.150.24-DEDSAV01.MAC.DOM] [I/O dispatcher 1] DEBUG ClientHandler HTTP connection [loc alhost/127.0.0.1:8290]: Content encoder [chunk-coded; completed: true] [java] 2008-05-16 15:57:31,849 [192.168.150.24-DEDSAV01.MAC.DOM] [I/O dispatcher 1] DEBUG ClientHandler HTTP connection [loc alhost/127.0.0.1:8290]: Request ready [java] 2008-05-16 15:58:31,496 [192.168.150.24-DEDSAV01.MAC.DOM] [I/O dispatcher 1] DEBUG ClientHandler HTTP connection [loc alhost/127.0.0.1:8290]: Timeout [java] 2008-05-16 15:58:31,496 [192.168.150.24-DEDSAV01.MAC.DOM] [I/O dispatcher 1] DEBUG ClientHandler Connection Timeout [java] 2008-05-16 15:58:31,497 [192.168.150.24-DEDSAV01.MAC.DOM] [I/O dispatcher 1] DEBUG ClientHandler HTTP connection [clo sed]: Closed
This looks totally wrong! What are you using as the client? Somehow, Synapse has started within the client!?? Something is messed up big time related to the way you are running your client.. Can you run the client on a Windows/Linux desktop as per the samples documentation/guides etc. instead of on the AS400 first?

asankha

Reply via email to