You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Gordon Gekko <di...@tiscalinet.it> on 2005/08/20 20:08:13 UTC

[axis2] async client

Hi!

I've implemented a client and server using Axis2.  I've deployed 5 
identical servers on the same machine.  The client sends 5 asynchronous 
service requests, one for each server.  The problem that is that 
randomly some requests fail.  I've sniffed the traffic with ethereal and 
it seems that those problems arise because the client puts two post 
request in the same http packet or at least sends two http packets from 
the same port.  Following is the exact ethereal capture.

Is this a bug or am I doing something wrong?  Let me know if you need 
more information.  I can send you the code.

Thanks a lot!

Diego


   POST /axis2/services/bank2 HTTP/1.1
   POST /axis2/services/bank1 HTTP/1.1
   User-Agent: Axis/2.0
   SOAPAction: accumulate
   Connection: Keep-Alive
   Host: localhost:8080
   Content-Length: 459
   Content-Type: text/xml; charset=utf-8

   <?xml version='1.0' encoding='utf-8'?>
   <soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header>
   </soapenv:Header>
   <soapenv:Body>
   <accumulate xmlns="http://bank.org/ws/model">
   <operands>
   <arrayItem>1</arrayItem>
   <arrayItem>2</arrayItem>
   <arrayItem>3</arrayItem>
   <arrayItem>4</arrayItem>
   <arrayItem>2</arrayItem>
   </operands>
   </accumulate>
   </soapenv:Body>
   </soapenv:Envelope>

   User-Agent: Axis/2.0
   SOAPAction: accumulate
   Connection: Keep-Alive
   Host: localhost:8080
   Content-Length: 459
   Content-Type: text/xml; charset=utf-8

   <?xml version='1.0' encoding='utf-8'?>
   <soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header>
   </soapenv:Header>
   <soapenv:Body>
   <accumulate xmlns="http://bank.org/ws/model">
   <operands>
   <arrayItem>1</arrayItem>
   <arrayItem>2</arrayItem>
   <arrayItem>3</arrayItem>
   <arrayItem>4</arrayItem>
   <arrayItem>1</arrayItem>
   </operands>
   </accumulate>
   </soapenv:Body>
   </soapenv:Envelope>

   HTTP/1.1 200 OK
   Server: Apache-Coyote/1.1
   Set-Cookie: JSESSIONID=92DF014F64480ECA312C9D26FB3C6409; Path=/axis2
   Content-Type: text/xml;charset=utf-8
   Transfer-Encoding: chunked
   Date: Sat, 20 Aug 2005 17:42:51 GMT

   1c4
   <?xml version='1.0' encoding='utf-8'?>
   <soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header>
   <wsa:From xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
   <wsa:Address>http://localhost:8080/axis2/services/bank2</wsa:Address>
   </wsa:From>
   </soapenv:Header>
   <soapenv:Body>
   <accumulateResponse xmlns="http://bank.org/ws/model">
   <response-code>1</response-code>
   </accumulateResponse>
   </soapenv:Body>
   </soapenv:Envelope>

   0


Re: [axis2] async client

Posted by Gordon Gekko <di...@tiscalinet.it>.
Hi Davanum,

I have create a JIRA issue and uploaded the source code.  The issue key 
is AXIS2-166.

Thanks!

Diego



Davanum Srinivas wrote:

> Could you please log this as a bug and upload your files as a zip?
> 
> thanks,
> dims
> 
> On 8/20/05, Gordon Gekko <di...@tiscalinet.it> wrote:
> 
>>Hi!
>>
>>I've implemented a client and server using Axis2.  I've deployed 5
>>identical servers on the same machine.  The client sends 5 asynchronous
>>service requests, one for each server.  The problem that is that
>>randomly some requests fail.  I've sniffed the traffic with ethereal and
>>it seems that those problems arise because the client puts two post
>>request in the same http packet or at least sends two http packets from
>>the same port.  Following is the exact ethereal capture.
>>
>>Is this a bug or am I doing something wrong?  Let me know if you need
>>more information.  I can send you the code.
>>
>>Thanks a lot!
>>
>>Diego
>>
>>
>>   POST /axis2/services/bank2 HTTP/1.1
>>   POST /axis2/services/bank1 HTTP/1.1
>>   User-Agent: Axis/2.0
>>   SOAPAction: accumulate
>>   Connection: Keep-Alive
>>   Host: localhost:8080
>>   Content-Length: 459
>>   Content-Type: text/xml; charset=utf-8
>>
>>   <?xml version='1.0' encoding='utf-8'?>
>>   <soapenv:Envelope
>>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>>   <soapenv:Header>
>>   </soapenv:Header>
>>   <soapenv:Body>
>>   <accumulate xmlns="http://bank.org/ws/model">
>>   <operands>
>>   <arrayItem>1</arrayItem>
>>   <arrayItem>2</arrayItem>
>>   <arrayItem>3</arrayItem>
>>   <arrayItem>4</arrayItem>
>>   <arrayItem>2</arrayItem>
>>   </operands>
>>   </accumulate>
>>   </soapenv:Body>
>>   </soapenv:Envelope>
>>
>>   User-Agent: Axis/2.0
>>   SOAPAction: accumulate
>>   Connection: Keep-Alive
>>   Host: localhost:8080
>>   Content-Length: 459
>>   Content-Type: text/xml; charset=utf-8
>>
>>   <?xml version='1.0' encoding='utf-8'?>
>>   <soapenv:Envelope
>>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>>   <soapenv:Header>
>>   </soapenv:Header>
>>   <soapenv:Body>
>>   <accumulate xmlns="http://bank.org/ws/model">
>>   <operands>
>>   <arrayItem>1</arrayItem>
>>   <arrayItem>2</arrayItem>
>>   <arrayItem>3</arrayItem>
>>   <arrayItem>4</arrayItem>
>>   <arrayItem>1</arrayItem>
>>   </operands>
>>   </accumulate>
>>   </soapenv:Body>
>>   </soapenv:Envelope>
>>
>>   HTTP/1.1 200 OK
>>   Server: Apache-Coyote/1.1
>>   Set-Cookie: JSESSIONID=92DF014F64480ECA312C9D26FB3C6409; Path=/axis2
>>   Content-Type: text/xml;charset=utf-8
>>   Transfer-Encoding: chunked
>>   Date: Sat, 20 Aug 2005 17:42:51 GMT
>>
>>   1c4
>>   <?xml version='1.0' encoding='utf-8'?>
>>   <soapenv:Envelope
>>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>>   <soapenv:Header>
>>   <wsa:From xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
>>   <wsa:Address>http://localhost:8080/axis2/services/bank2</wsa:Address>
>>   </wsa:From>
>>   </soapenv:Header>
>>   <soapenv:Body>
>>   <accumulateResponse xmlns="http://bank.org/ws/model">
>>   <response-code>1</response-code>
>>   </accumulateResponse>
>>   </soapenv:Body>
>>   </soapenv:Envelope>
>>
>>   0
>>
>>
> 
> 
> 

Re: [axis2] async client

Posted by Davanum Srinivas <da...@gmail.com>.
Could you please log this as a bug and upload your files as a zip?

thanks,
dims

On 8/20/05, Gordon Gekko <di...@tiscalinet.it> wrote:
> Hi!
> 
> I've implemented a client and server using Axis2.  I've deployed 5
> identical servers on the same machine.  The client sends 5 asynchronous
> service requests, one for each server.  The problem that is that
> randomly some requests fail.  I've sniffed the traffic with ethereal and
> it seems that those problems arise because the client puts two post
> request in the same http packet or at least sends two http packets from
> the same port.  Following is the exact ethereal capture.
> 
> Is this a bug or am I doing something wrong?  Let me know if you need
> more information.  I can send you the code.
> 
> Thanks a lot!
> 
> Diego
> 
> 
>    POST /axis2/services/bank2 HTTP/1.1
>    POST /axis2/services/bank1 HTTP/1.1
>    User-Agent: Axis/2.0
>    SOAPAction: accumulate
>    Connection: Keep-Alive
>    Host: localhost:8080
>    Content-Length: 459
>    Content-Type: text/xml; charset=utf-8
> 
>    <?xml version='1.0' encoding='utf-8'?>
>    <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>    <soapenv:Header>
>    </soapenv:Header>
>    <soapenv:Body>
>    <accumulate xmlns="http://bank.org/ws/model">
>    <operands>
>    <arrayItem>1</arrayItem>
>    <arrayItem>2</arrayItem>
>    <arrayItem>3</arrayItem>
>    <arrayItem>4</arrayItem>
>    <arrayItem>2</arrayItem>
>    </operands>
>    </accumulate>
>    </soapenv:Body>
>    </soapenv:Envelope>
> 
>    User-Agent: Axis/2.0
>    SOAPAction: accumulate
>    Connection: Keep-Alive
>    Host: localhost:8080
>    Content-Length: 459
>    Content-Type: text/xml; charset=utf-8
> 
>    <?xml version='1.0' encoding='utf-8'?>
>    <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>    <soapenv:Header>
>    </soapenv:Header>
>    <soapenv:Body>
>    <accumulate xmlns="http://bank.org/ws/model">
>    <operands>
>    <arrayItem>1</arrayItem>
>    <arrayItem>2</arrayItem>
>    <arrayItem>3</arrayItem>
>    <arrayItem>4</arrayItem>
>    <arrayItem>1</arrayItem>
>    </operands>
>    </accumulate>
>    </soapenv:Body>
>    </soapenv:Envelope>
> 
>    HTTP/1.1 200 OK
>    Server: Apache-Coyote/1.1
>    Set-Cookie: JSESSIONID=92DF014F64480ECA312C9D26FB3C6409; Path=/axis2
>    Content-Type: text/xml;charset=utf-8
>    Transfer-Encoding: chunked
>    Date: Sat, 20 Aug 2005 17:42:51 GMT
> 
>    1c4
>    <?xml version='1.0' encoding='utf-8'?>
>    <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>    <soapenv:Header>
>    <wsa:From xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
>    <wsa:Address>http://localhost:8080/axis2/services/bank2</wsa:Address>
>    </wsa:From>
>    </soapenv:Header>
>    <soapenv:Body>
>    <accumulateResponse xmlns="http://bank.org/ws/model">
>    <response-code>1</response-code>
>    </accumulateResponse>
>    </soapenv:Body>
>    </soapenv:Envelope>
> 
>    0
> 
> 


-- 
Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform