Hi

I have gotten all the Axis2 \Userguide samples to work except
EchoBlockingDualClient and EchoNonBlockingDualClient clients.

With options.setUseSeparateListener(true)

the request is sent to the service, the SOAPMonitor shows that the
request has been received and a response returned.

But the client never receives the response because of the JVM_Bind error.

The client stops without getting an response.


With options.setUseSeparateListener = FALSE - the client works.

Rick

-----------------------------------

Tomcat window output:

LogHandler:InvocationResponse

[INFO] <?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:wsa="http://www.w3.org/2005/08/addressing";>
<soapenv:Header>
<wsa:To>http://www.w3.org/2005/08/addressing/none</wsa:To>
<wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
</wsa:ReplyTo><wsa:MessageID>urn:uuid:76B5F5DB3D7474226D1195474410615</wsa:MessageID>
<wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action>
<wsa:RelatesTo>urn:uuid:76B5F5DB3D7474226D1195474410604</wsa:RelatesTo>
<wsa:FaultDetail><wsa:ProblemAction><wsa:Action>urn:echoResponse</wsa:Action>
</wsa:ProblemAction></wsa:FaultDetail>
</soapenv:Header><soapenv:Body><soapenv:Fault>
<faultcode>wsa:ActionNotSupported</faultcode>

<faultstring>The [action] cannot be processed at the
receiver.</faultstring><detail
/></soapenv:Fault></soapenv:Body></soapenv:Envelope>


----------------------

The output from the client is:

run.client.blockingdual:
     [java] ==================================== EchoBlockingDualClient
     [java] [INFO] Deploying module: addressing-1.3
     [java] [INFO] Deploying module: script-1.3
     [java] [INFO] Deploying module: sample-logging
     [java] [INFO] Deploying module: metadataExchange-1.3
     [java] [INFO] Deploying module: ping-1.3
     [java] [INFO] Deploying module: sample-logging
     [java] [INFO] Deploying module: soapmonitor-1.3
     [java] LoggingModule:init
     [java] [INFO] script module activated
     [java] [WARN] Attempt number 1 of 10 to reestalish connection
listener [EMAIL PROTECTED]
due to failure


     [java] java.net.BindException: Address already in use: JVM_Bind
     [java]     at java.net.PlainSocketImpl.socketBind(Native Method)
     [java]     at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
     [java]     at java.net.ServerSocket.bind(ServerSocket.java:319)
     [java]     at java.net.ServerSocket.<init>(ServerSocket.java:185)
     [java]     at java.net.ServerSocket.<init>(ServerSocket.java:97)
     [java]     at
org.apache.axis2.transport.http.server.DefaultConnectionListener.run(DefaultConnectionListener.java:72)
     [java]     at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
     [java]     at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
     [java]     at java.lang.Thread.run(Thread.java:595)


...


    [java] org.apache.axis2.AxisFault: Time out while waiting for the
server to send the response.
    [java]     at
org.apache.axis2.description.OutInAxisOperationClient$SyncCallBack.waitForCompletion(OutInAxisOperation.java:
    [java]     at
org.apache.axis2.description.OutInAxisOperationClient.sendAsync(OutInAxisOperation.java:286)
    [java]     at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:207)
    [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] [SimpleHTTPServer] Stop called
    [java] [INFO] Shut down connection listener
    [java] [INFO] Shut down HTTP processors
    [java] [INFO] HTTP protocol handler shut down
    [java]     at userguide.clients.EchoBlockingDualClient.main(Unknown Source)
    [java] LoggingModule:shutdown


-------------------------------------

SOAPMonitor:

Request:

<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:wsa="http://www.w3.org/2005/08/addressing";>
  <soapenv:Header>
    <wsa:To>http://127.0.0.1:9080/axis2/services/MyService</wsa:To>
    <wsa:ReplyTo>
      
<wsa:Address>http://192.168.33.1:8080/axis2/services/anonService1</wsa:Address>
    </wsa:ReplyTo>
    <wsa:MessageID>urn:uuid:10C8754F7B8137CD031195475108469</wsa:MessageID>
    <wsa:Action>urn:echo</wsa:Action>
  </soapenv:Header>
  <soapenv:Body>
    <example1:echo xmlns:example1="http://example1.org/example1";>
      <example1:Text>Axis2 Echo String</example1:Text>
    </example1:echo>
  </soapenv:Body>
</soapenv:Envelope>

Response:

?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
  <soapenv:Body>
    <example1:echo xmlns:example1="http://example1.org/example1";>
      <example1:Text>Axis2 Echo String</example1:Text>
    </example1:echo>
  </soapenv:Body>
</soapenv:Envelope>

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

Reply via email to