471,066 Members | 1,391 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,066 software developers and data experts.

Re: Exception difference 2.4 ==> 2.5

On Wed, 19 Nov 2008 17:08:13 -0500
Terry Reedy <tj*****@udel.eduwrote:
am running Python 2.5.2. I was able to reduce the program to a
reasonably small version that exhibits the problem. It is in two files
in ftp://ftp.druid.net/pub/distrib/Test_2.5.tgz including Fredrik
Lundh's simple XML-RPC server. Just run the test program under 2.4,
2.5 and 2.6 to see the difference.

Report it on the bugs.python.org and it might possibly get fixed.
OK but I still don't think that I have even zeroed in on the bug. Even
the code I provided is pretty large and complex for a snippet meant to
identify the problem.

I managed to move everything into one test file and switched to the
SimpleXMLRPCServer module but to no avail. The new code is at
ftp://ftp.druid.net/pub/distrib/test_2.5

--
D'Arcy J.M. Cain <da***@druid.net | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.
Nov 20 '08 #1
1 1892
D'Arcy J.M. Cain <da***@druid.netwrote:
>I managed to move everything into one test file and switched to the
SimpleXMLRPCServer module but to no avail. The new code is at
ftp://ftp.druid.net/pub/distrib/test_2.5
It seems be this issue:

http://bugs.python.org/issue1739842

Your handler in the server thread correctly catches the RuntimeException
and converts into a Fault object which it returns. Unfortunately,
xmlrpclib then throws an exception instead of marshalling the Fault
object. Your server catches the exception and turns it into a 500
HTTP server error. The client thread then throws a ProtocolError,
which is uncaught.

So exceptions are working fine in your test case, the problem is that
xmlrpclib.dumps() can't marshall xmlrpclib.Fault objects in 2.5.

Ross Ridge

--
l/ // Ross Ridge -- The Great HTMU
[oo][oo] rr****@csclub.uwaterloo.ca
-()-/()/ http://www.csclub.uwaterloo.ca/~rridge/
db //
Nov 20 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

42 posts views Thread by cody | last post: by
13 posts views Thread by Markus Elfring | last post: by
4 posts views Thread by Seamus M | last post: by
1 post views Thread by cody | last post: by
3 posts views Thread by Ganesh Palaniappan | last post: by
reply views Thread by dirk | last post: by
reply views Thread by dirk | last post: by
2 posts views Thread by D'Arcy J.M. Cain | last post: by
reply views Thread by Chris Rebert | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.