Something's definitely wrong...

ssteiner@idc <[email protected]> Wed, 20 Jan 2010 08:43:26 -0500
Newsgroups gmane.comp.python.xml
Message-ID <[email protected]>
--===============1973077437==
Content-Type: multipart/alternative; boundary=Apple-Mail-16-72481853


--Apple-Mail-16-72481853
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

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:=20

grouped =3D 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" =3D=3D 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
[email protected]
www.integrateddevcorp.com=20
(603)433-1232





--Apple-Mail-16-72481853
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; =
"><div>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.</div><div><br></div><div>Here's the most recent =
example:&nbsp;</div><div><br></div><div>grouped =3D grouper(2, =
tuple(mc_result))</div><div>File =
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xmlrpclib=
.py", line 1001, in __getitem__</div><div>raise Fault(item['faultCode'], =
item['faultString'])</div><div>Fault: &lt;Fault 1: "&lt;type =
'exceptions.TypeError'&gt;:'NoneType' object is =
unsubscriptable"&gt;</div><div><br></div><div>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.</div><div><br></div><div>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" =3D=3D type({}): =
so the code shouldn't even get called with =
"NoneType".</div><div><br></div><div>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.</div><div><br></div><div>This, btw, is a pretty simple, maybe 200 =
line pure Python app that is using the XML-RPC interface, SQLite, and =
zlib functions.</div><div><br></div><div>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.</div><div><br></div><div>Definitely in line for best bug =
report ever.</div><div><br></div><div>Anyone seen this specific symptom, =
regardless of =
cause?</div><div><br></div><div>S</div><div><br></div><div>
<span class=3D"Apple-style-span" style=3D"font-size: 12px; "><div><div =
style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space; "><span class=3D"Apple-style-span" =
style=3D"font-size: 14px; "><div style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; "><font class=3D"Apple-style-span" size=3D"3">Stephen =
F. Steiner</font></div><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; "><font class=3D"Apple-style-span" =
size=3D"3">Integrated Development Corporation</font></div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; "><a =
href=3D"mailto:[email protected]"><font =
class=3D"Apple-style-span" size=3D"3"><span class=3D"Apple-style-span" =
style=3D"color: rgb(0, 0, 238); =
">[email protected]</span></font></a></div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; "><font class=3D"Apple-style-span" size=3D"3"><a =
href=3D"http://www.integrateddevcorp.com"><font class=3D"Apple-style-span"=
 size=3D"4"><span class=3D"Apple-style-span" style=3D"color: rgb(0, 0, =
238); =
">www.integrateddevcorp.com&nbsp;</span></font></a></font></div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; "><font class=3D"Apple-style-span" =
size=3D"3">(603)433-1232</font></div><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal =
normal normal 14px/normal Helvetica; min-height: 17px; "><br></div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; font: normal normal normal 14px/normal Helvetica; =
min-height: 17px; "><br =
class=3D"khtml-block-placeholder"></div></div></span></div></div></span><b=
r class=3D"Apple-interchange-newline">
</div>
<br></body></html>=

--Apple-Mail-16-72481853--

--===============1973077437==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
XML-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/xml-sig

--===============1973077437==--