By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,403 Members | 880 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,403 IT Pros & Developers. It's quick & easy.

Re: Exception difference 2.4 ==> 2.5

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.