Re: [Zope3-Users] Issue with xmlrpc call to zope3 xmlrpc view hanging, until original call interupted.

2008-10-19 Thread Tim Hoffman
Hi Stephan

I changed the server type to zserver in deploy.ini and everything is
now working.

I also just tried twisted server and it also works fine.

Looks the problem is specifically in paste.server.

Rgds

Tim


On Mon, Oct 20, 2008 at 11:07 AM, Tim Hoffman <[EMAIL PROTECTED]> wrote:
> HI Stephan
>
> I have updated to zope.publisher 3.5.4 and it doesn't appear to have
> made a difference.
> One other thing to note, and that is if I try to call a non existent
> object via jsonrpc I get 404 errors
> but via xmlrpc I get the hang, so the problem has to be very early in
> the server.
>
> I am still using paster at the moment, will try zserver and twisted next.
>
> Rgds
>
> Tim Hoffman
>
> On Mon, Oct 20, 2008 at 9:15 AM, Tim Hoffman <[EMAIL PROTECTED]> wrote:
>> HI Stephan
>>
>> Yeah I have zope.publisher-3.5.3 at the moment.  I will run buildout
>> and update it and see if it fixes it.
>>
>> Rgds
>>
>> Tim
>>
>> On Sat, Oct 18, 2008 at 1:21 AM, Stephan Richter
>> <[EMAIL PROTECTED]> wrote:
>>> On Thursday 16 October 2008, Tim Hoffman wrote:
 I have a view defined for xmlrpc (zope.app.publisher 3.5.0)  the same
 view is also defined for jsonrpc using z3c.jsonrpc
>>>
>>> what version of zope.publisher do you use? We fixed a lockup problem due to
>>> missing headers when using twisted and I think paster. We are using version
>>> 3.5.4.
>>>
>>> Regards,
>>> Stephan
>>> --
>>> Stephan Richter
>>> Web Software Design, Development and Training
>>> Google me. "Zope Stephan Richter"
>>>
>>
>
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Issue with xmlrpc call to zope3 xmlrpc view hanging, until original call interupted.

2008-10-19 Thread Tim Hoffman
HI Stephan

I have updated to zope.publisher 3.5.4 and it doesn't appear to have
made a difference.
One other thing to note, and that is if I try to call a non existent
object via jsonrpc I get 404 errors
but via xmlrpc I get the hang, so the problem has to be very early in
the server.

I am still using paster at the moment, will try zserver and twisted next.

Rgds

Tim Hoffman

On Mon, Oct 20, 2008 at 9:15 AM, Tim Hoffman <[EMAIL PROTECTED]> wrote:
> HI Stephan
>
> Yeah I have zope.publisher-3.5.3 at the moment.  I will run buildout
> and update it and see if it fixes it.
>
> Rgds
>
> Tim
>
> On Sat, Oct 18, 2008 at 1:21 AM, Stephan Richter
> <[EMAIL PROTECTED]> wrote:
>> On Thursday 16 October 2008, Tim Hoffman wrote:
>>> I have a view defined for xmlrpc (zope.app.publisher 3.5.0)  the same
>>> view is also defined for jsonrpc using z3c.jsonrpc
>>
>> what version of zope.publisher do you use? We fixed a lockup problem due to
>> missing headers when using twisted and I think paster. We are using version
>> 3.5.4.
>>
>> Regards,
>> Stephan
>> --
>> Stephan Richter
>> Web Software Design, Development and Training
>> Google me. "Zope Stephan Richter"
>>
>
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Issue with xmlrpc call to zope3 xmlrpc view hanging, until original call interupted.

2008-10-19 Thread Tim Hoffman
HI Stephan

Yeah I have zope.publisher-3.5.3 at the moment.  I will run buildout
and update it and see if it fixes it.

Rgds

Tim

On Sat, Oct 18, 2008 at 1:21 AM, Stephan Richter
<[EMAIL PROTECTED]> wrote:
> On Thursday 16 October 2008, Tim Hoffman wrote:
>> I have a view defined for xmlrpc (zope.app.publisher 3.5.0)  the same
>> view is also defined for jsonrpc using z3c.jsonrpc
>
> what version of zope.publisher do you use? We fixed a lockup problem due to
> missing headers when using twisted and I think paster. We are using version
> 3.5.4.
>
> Regards,
> Stephan
> --
> Stephan Richter
> Web Software Design, Development and Training
> Google me. "Zope Stephan Richter"
>
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Issue with xmlrpc call to zope3 xmlrpc view hanging, until original call interupted.

2008-10-17 Thread Stephan Richter
On Thursday 16 October 2008, Tim Hoffman wrote:
> I have a view defined for xmlrpc (zope.app.publisher 3.5.0)  the same
> view is also defined for jsonrpc using z3c.jsonrpc

what version of zope.publisher do you use? We fixed a lockup problem due to 
missing headers when using twisted and I think paster. We are using version 
3.5.4.

Regards,
Stephan
-- 
Stephan Richter
Web Software Design, Development and Training
Google me. "Zope Stephan Richter"
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Issue with xmlrpc call to zope3 xmlrpc view hanging, until original call interupted.

2008-10-17 Thread Tim Hoffman
HI Marius


No SSL in the picture,

I will try with zserver /and/or twisted and see how that goes

Thanks for the hints

Rgds

Tim

On Fri, Oct 17, 2008 at 1:50 AM, Marius Gedminas <[EMAIL PROTECTED]> wrote:
> On Thu, Oct 16, 2008 at 04:39:13PM +0800, Tim Hoffman wrote:
>> I wonder if anyone can shed some light  on a problem I am having with
>> xmlrpc calls to a zope3 server.
>>
>> I am running zope3 from buildout on python2.5 on unbuntu.
>>
>> I have a view defined for xmlrpc (zope.app.publisher 3.5.0)  the same
>> view is also defined for jsonrpc using z3c.jsonrpc
>>
>> I am testing with xmlrpclib and the z3c.jsonrpc proxy
>>
>> Everything works fine when testing the jsonrpc call. However when
>> performing the xmlrpc call
>> the call hangs, until I either kill the server, or the ctl ^c the test.
>>
>> I know the zcml registration for the view is correct as I end up in
>> the method of the view on the server,because
>> I can put
>>
>> import pdb
>> pdb.set_trace()
>>
>> in the method in question, and when I kill the client socket the
>> server thread advances to the set_trace call
>>
>> It seems as if the publisher for xmlrpc is not reading everything from
>> the socket.
>
> This sounds strangely familiar.  Is the request in plain-text, or is it
> going over SSL?
>
>> I have been using xmlrpclib for years against zope2 and never
>> experienced sort of problem, and my current python 2.4 and 2.5
>> xmlrpclib in ubuntu
>> works fine against existing zope2 servers.
>
> xmlrpclib works fine for me against zope 3 using zserver (or maybe
> zope.app.twisted) on python 2.4, no SSL.
>
>> I am using paste.httpserver .
>
> If I'm not mistaken, paste.httpserver will sometimes hang forever if you
> send a request with a body and no Content-Type field.  Can you check
> whether xmlrpclib sends it?
>
>> Any ideas, things I could try to diagnose the problem?
>
> Change other variables (no SSL if you have it; python 2.4 versus 2.5;
> zserver instead of paster), try to see where the hang occurs on the
> server side.
>
> Marius Gedminas
> --
> Some of the more environmentally aware dinosaurs were worried about the
> consequences of an accident with the new Iridium enriched fusion reactor.
> "If it goes off only the cockroaches and mammals will survive..." they said.
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFI937kkVdEXeem148RAiviAJ49zqC2BN4VRkXJLyiyjoNV2ahwWwCcD4TK
> 5uGEd8FR2bI/H2EYONXHplM=
> =5d9+
> -END PGP SIGNATURE-
>
> ___
> Zope3-users mailing list
> Zope3-users@zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users
>
>
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Issue with xmlrpc call to zope3 xmlrpc view hanging, until original call interupted.

2008-10-16 Thread Marius Gedminas
On Thu, Oct 16, 2008 at 04:39:13PM +0800, Tim Hoffman wrote:
> I wonder if anyone can shed some light  on a problem I am having with
> xmlrpc calls to a zope3 server.
> 
> I am running zope3 from buildout on python2.5 on unbuntu.
> 
> I have a view defined for xmlrpc (zope.app.publisher 3.5.0)  the same
> view is also defined for jsonrpc using z3c.jsonrpc
> 
> I am testing with xmlrpclib and the z3c.jsonrpc proxy
> 
> Everything works fine when testing the jsonrpc call. However when
> performing the xmlrpc call
> the call hangs, until I either kill the server, or the ctl ^c the test.
> 
> I know the zcml registration for the view is correct as I end up in
> the method of the view on the server,because
> I can put
> 
> import pdb
> pdb.set_trace()
> 
> in the method in question, and when I kill the client socket the
> server thread advances to the set_trace call
> 
> It seems as if the publisher for xmlrpc is not reading everything from
> the socket.

This sounds strangely familiar.  Is the request in plain-text, or is it
going over SSL?

> I have been using xmlrpclib for years against zope2 and never
> experienced sort of problem, and my current python 2.4 and 2.5
> xmlrpclib in ubuntu
> works fine against existing zope2 servers.

xmlrpclib works fine for me against zope 3 using zserver (or maybe
zope.app.twisted) on python 2.4, no SSL.

> I am using paste.httpserver .

If I'm not mistaken, paste.httpserver will sometimes hang forever if you
send a request with a body and no Content-Type field.  Can you check
whether xmlrpclib sends it?

> Any ideas, things I could try to diagnose the problem?

Change other variables (no SSL if you have it; python 2.4 versus 2.5;
zserver instead of paster), try to see where the hang occurs on the
server side.

Marius Gedminas
-- 
Some of the more environmentally aware dinosaurs were worried about the
consequences of an accident with the new Iridium enriched fusion reactor.
"If it goes off only the cockroaches and mammals will survive..." they said.


signature.asc
Description: Digital signature
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Issue with xmlrpc call to zope3 xmlrpc view hanging, until original call interupted.

2008-10-16 Thread Roger Ineichen
Hi Tim

> Betreff: [Zope3-Users] Issue with xmlrpc call to zope3 xmlrpc 
> view hanging,until original call interupted.
> 
> Hi
> 
> I wonder if anyone can shed some light  on a problem I am 
> having with xmlrpc calls to a zope3 server.
> 
> I am running zope3 from buildout on python2.5 on unbuntu.
> 
> I have a view defined for xmlrpc (zope.app.publisher 3.5.0)  
> the same view is also defined for jsonrpc using z3c.jsonrpc
> 
> I am testing with xmlrpclib and the z3c.jsonrpc proxy
> 
> Everything works fine when testing the jsonrpc call. However 
> when performing the xmlrpc call the call hangs, until I 
> either kill the server, or the ctl ^c the test.
> 
> I know the zcml registration for the view is correct as I end 
> up in the method of the view on the server,because I can put
> 
> import pdb
> pdb.set_trace()
> 
> in the method in question, and when I kill the client socket 
> the server thread advances to the set_trace call and I get 
> the stacktrace on the client as follows
> 
> Traceback (most recent call last):
>   File "bin/python", line 136, in 
> execfile(sys.argv[0])
>   File "x.py", line 6, in 
> print x.iba.stores.name()
>   File "/usr/lib/python2.5/xmlrpclib.py", line 1147, in __call__
> return self.__send(self.__name, args)
>   File "/usr/lib/python2.5/xmlrpclib.py", line 1437, in __request
> verbose=self.__verbose
>   File "/usr/lib/python2.5/xmlrpclib.py", line 1185, in request
> errcode, errmsg, headers = h.getreply()
>   File "/usr/lib/python2.5/httplib.py", line 1199, in getreply
> response = self._conn.getresponse()
>   File "/usr/lib/python2.5/httplib.py", line 928, in getresponse
> response.begin()
>   File "/usr/lib/python2.5/httplib.py", line 385, in begin
> version, status, reason = self._read_status()
>   File "/usr/lib/python2.5/httplib.py", line 343, in _read_status
> line = self.fp.readline()
>   File "/usr/lib/python2.5/socket.py", line 331, in readline
> data = recv(1)
> KeyboardInterrupt
> 
> 
> It seems as if the publisher for xmlrpc is not reading 
> everything from the socket.
> 
> I have been using xmlrpclib for years against zope2 and never 
> experienced sort of problem, and my current python 2.4 and 
> 2.5 xmlrpclib in ubuntu works fine against existing zope2 servers.
> 
> I am using paste.httpserver .
> 
> Any ideas, things I could try to diagnose the problem?

As far as I understand the problem is at the server side
if you receive a xmlrpc request and not if you use a 
XMLRPC client and will send a request.

The z3c.jsonrpc doesn't use anything similar then the xmlrpclib 
implementation. I mean the jsonrpc and xmlrpc implemenation are 
not comparable for that problem.

The z3c.json package offers a JSON python client. Only this
client uses similar patterns then the xmlrpclib package.

Regards
Roger Ineichen

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users