Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Something's definitely wrong...
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
ssteiner @ idc  
View profile  
 More options Jan 20 2010, 8:43 am
From: ssteiner@idc <sstei...@integrateddevcorp.com>
Date: Wed, 20 Jan 2010 08:43:26 -0500
Local: Wed, Jan 20 2010 8:43 am
Subject: [XML-SIG] Something's definitely wrong...

I'm using the xmlrpc MultiCall class pretty heavily in an application and every time I've somehow caused an error in the xmlrpclib.py code, I get an exception trying to raise the exception.

Here's the most recent example:

grouped = grouper(2, tuple(mc_result))
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xmlrpclib. py", line 1001, in __getitem__
raise Fault(item['faultCode'], item['faultString'])
Fault: <Fault 1: "<type 'exceptions.TypeError'>:'NoneType' object is unsubscriptable">

I could understand if I was making some sort of coding error, then getting an error, but the Fault object itself, whenever it is used, seems to be generating some sort of new error either through its use, or, as above, the code attempting to construct the Fault object fails.

The thing that's confusing about the above error is that there's a check, just before the line of code that fails, that explictly checks whether the type of "item" == type({}): so the code shouldn't even get called with "NoneType".

This all smells horribly like corrupt memory so I'm hoping someone on this list has seen symptoms like this and can point me in the right direction to start tracking this down.

This, btw, is a pretty simple, maybe 200 line pure Python app that is using the XML-RPC interface, SQLite, and zlib functions.

I'm wondering if an earlier, uncaught error is actually setting this up but it's only happened about 4 times, at completely unpredictable times, and doesn't seem to be repeatable.

Definitely in line for best bug report ever.

Anyone seen this specific symptom, regardless of cause?

S

Stephen F. Steiner
Integrated Development Corporation
sstei...@integrateddevcorp.com
www.integrateddevcorp.com
(603)433-1232

_______________________________________________
XML-SIG maillist  -  XML-...@python.org
http://mail.python.org/mailman/listinfo/xml-sig


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dieter Maurer  
View profile  
 More options Jan 21 2010, 8:42 am
From: "Dieter Maurer" <die...@handshake.de>
Date: Thu, 21 Jan 2010 14:42:09 +0100
Local: Thurs, Jan 21 2010 8:42 am
Subject: Re: [XML-SIG] Something's definitely wrong...
ssteiner@idc wrote at 2010-1-20 08:43 -0500:

>I'm using the xmlrpc MultiCall class pretty heavily in an application and every time I've somehow caused an error in the xmlrpclib.py code, I get an exception trying to raise the exception.

>Here's the most recent example:

>grouped = grouper(2, tuple(mc_result))
>File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xmlrpclib. py", line 1001, in __getitem__
>raise Fault(item['faultCode'], item['faultString'])
>Fault: <Fault 1: "<type 'exceptions.TypeError'>:'NoneType' object is unsubscriptable">

You see here the client side code to report that an exception
has happened on the server side.

The "TypeError" was not raised at this place but on the server side.
Here, a "Fault" is (successfully) raised with "faultCode" 1 and "faultString"
"<type 'exceptions.TypeError'>:'NoneType' object is unsubscriptable">.

If you are lucky, the server side has logged information for
the raised exception. If not, you need to convince the server side
to do so.

--
Dieter
_______________________________________________
XML-SIG maillist  -  XML-...@python.org
http://mail.python.org/mailman/listinfo/xml-sig


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ssteiner@idc  
View profile  
 More options Jan 21 2010, 8:55 am
From: "ssteiner@idc" <sstei...@integrateddevcorp.com>
Date: Thu, 21 Jan 2010 08:55:20 -0500
Local: Thurs, Jan 21 2010 8:55 am
Subject: Re: [XML-SIG] Something's definitely wrong...

On Jan 21, 2010, at 8:42 AM, Dieter Maurer wrote:

Thanks, this is the first time I've used this particular interface; I'll forward to the site operator.

Thanks again,

S

_______________________________________________
XML-SIG maillist  -  XML-...@python.org
http://mail.python.org/mailman/listinfo/xml-sig


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »