473,378 Members | 1,084 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 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 2001
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

42
by: cody | last post by:
public DateTime Value { get { try { return new DateTime(int.Parse(tbYear.Text), int.Parse(tbMonth.Text), int.Parse(tbDay.Text)); } catch (FormatException)
13
by: Markus Elfring | last post by:
Do you know a class library that can convert the error/return codes that are listed in the standard header file "errno.h" into a well-known exception hierarchy? Did anybody derive it from...
4
by: Seamus M | last post by:
It seems when I use the getLine() method of the Exception class, it returns the line number of the "throw new Exception" statement and not the line number where the error actually occured in the...
1
by: cody | last post by:
is there any difference between try{}catch(Exception){} and try{}catch{} ? if not, why this short syntax? i think it encourages programmers especially beginners to catch all exceptions...
7
by: Mr Flibble | last post by:
Are try { //something } catch { // }
3
by: Ganesh Palaniappan | last post by:
We're getting following exception for the below piece of code. We're wondering how it is possible since we're having a null check for objGraphics and strokePen... Exception:...
0
by: dirk | last post by:
I am writing a custom control (code see below) and I am getting an exception that drives me crazy. When I drag my control on a form, Visual Studio shows immediately the following exception: ...
0
by: dirk | last post by:
I am writing a custom control (code see below) and I am getting an exception that drives me crazy. When I drag my control on a form, Visual Studio shows immediately the following exception: ...
2
by: D'Arcy J.M. Cain | last post by:
I am having a strange problem and I can't seem to zero in on it. I am also having trouble reducing it to a small enough snippet that I can post here. I think that I am doing what the more complex...
0
by: Chris Rebert | last post by:
On Tue, Nov 18, 2008 at 8:56 PM, D'Arcy J.M. Cain <darcy@druid.netwrote: What happens under Python 2.6? Cheers, Chris -- Follow the path of the Iguana... http://rebertia.com
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.