You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlrpc-auto@ws.apache.org by "Jochen Wiedmann (JIRA)" <xm...@ws.apache.org> on 2007/02/11 22:44:05 UTC

[jira] Resolved: (XMLRPC-112) XmlRpcClient executeAsync() causes failures for subsequent execute()

     [ https://issues.apache.org/jira/browse/XMLRPC-112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jochen Wiedmann resolved XMLRPC-112.
------------------------------------

    Resolution: Cannot Reproduce

Closing, no response from user.


> XmlRpcClient executeAsync() causes failures for subsequent execute()
> --------------------------------------------------------------------
>
>                 Key: XMLRPC-112
>                 URL: https://issues.apache.org/jira/browse/XMLRPC-112
>             Project: XML-RPC
>          Issue Type: Bug
>          Components: Releases
>    Affects Versions: 3.0
>         Environment: Mac OS X 10.4 on the Client
>            Reporter: Alastair Tse
>         Attachments: XmlRpcAsync.java, XmlRpcAsync.java
>
>
> I'm currently using Apache WS XML-RPC 3.0 and I think I might have stumbled across a bug regarding using executeAsync() and execute() in the same client. Basically, I have an XMLRPC client which I would like to use synchronous calls and some with asynchronous, however, as soon as I start using executeAsync(), all the subsequent execute() will start to fail.
> The XML-RPC server is a Python SimpleXMLRPCServer. I've also tested it with the twisted.web XMLRPC implementation as well. I did some further investigating and found that the executeAsync call was sending a "Content-Length: 0" with no corresponding XMLRPC request to the server, causing an HTTP 500 response from the server.
> From ngrep, the HTTP headers look something like this:
> T 192.168.9.3:50335 -> XX.XXX.XXX.XX:8999 [AP]
>   POST / HTTP/1.1..Content-Type: text/xml..User-Agent: Apache XML RPC 3.0 (Su
>   n HTTP Transport)..Content-Length: 0..Cache-Control: no-cache..Pragma: no-c
>   ache..Host: XX.XXX.XXX.XX:8999..Accept: text/html, image/gif, i
>   mage/jpeg, *; q=.2, */*; q=.2..Connection: keep-alive....
> ##
> T XX.XXX.XXX.XX:8999 -> 192.168.9.3:50335 [AP]
>   HTTP/1.0 500 Internal error..
> ##
> Attached is an example client that produces an error. Change the execute call to a function on an echo XMLRPC server.
> It would be great to know if it is my fault, or something funny going on with the threading inside XMLRPC.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.