Thanks James!
You fixed the escapeToXml() bug,
That got rid of a few megs of logs :)
You didn't explicitly fix any others did you?
Namely, (7 TB's)
Still get this one:
alot
----
self.loginFailure("Exception while authenticating: %s" % failure)
File "/usr/local/pymsnt-20060717/src/tlib/msn/msnw.py", line 376,
in loginFailure
self.factory.msncon.loginFailed(message)
exceptions.AttributeError: 'NoneType' object has no attribute 'loginFailed'
----
AND
---
File "/usr/local/pymsnt-20060717/src/tlib/msn/msnw.py", line 744, in gotMessage
self.msncon.gotMessage(self.remoteUser, text)
File "/usr/local/pymsnt-20060717/src/legacy/glue.py", line 447, in gotMessage
self.session.sendMessage(self.jabberID, fro=source, body=text, mtype="chat")
exceptions.AttributeError: 'NoneType' object has no attribute 'sendMessage'
---
AND one I haven't posted yet:
---
File "/usr/local/pymsnt-20060717/src/tlib/msn/msn.py", line 1112, in handle_USR
self.loggedIn(params[2], int(params[3]))
File "/usr/local/pymsnt-20060717/src/tlib/msn/msnw.py", line 379, in loggedIn
LogEvent(INFO, self.factory.msncon.ident)
exceptions.AttributeError: 'NoneType' object has no attribute 'ident'
---
AND still
---
File "/usr/local/pymsnt-20060717/src/tlib/msn/msn.py", line 1191, in handle_NLN
self.contactStatusChanged(params[1], params[0], unquote(params[2]))
File "/usr/local/pymsnt-20060717/src/tlib/msn/msnw.py", line 442, in
contactStatusChanged
LogEvent(INFO, self.factory.msncon.ident)
exceptions.AttributeError: 'NoneType' object has no attribute 'ident'
---
AND
---
File "/usr/local/pymsnt-20060717/src/tlib/msn/msnw.py", line 69, in
_gotNotificationReferral
self.timeout.cancel()
exceptions.AttributeError: 'NoneType' object has no attribute 'cancel'
----
AND new rare one
------
File "/usr/local/pymsnt-20060717/src/tlib/msn/msnw.py", line 658, in
connectionLost
self.failedMessage(message)
File "/usr/local/pymsnt-20060717/src/tlib/msn/msnw.py", line 687,
in failedMessage
self.msncon.failedMessage(self.remoteUser, text)
File "/usr/local/pymsnt-20060717/src/legacy/glue.py", line 466, in
failedMessage
self.session.pytrans.statistics.stats["FailedMessageCount"] += 1
exceptions.AttributeError: 'NoneType' object has no attribute 'pytrans'
---
AND new rare one
---
File "/usr/local/pymsnt-20060717/src/tlib/msn/msn.py", line 2113, in
_checkTyping
self.gotContactTyping(message)
File "/usr/local/pymsnt-20060717/src/tlib/msn/msnw.py", line 762,
in gotContactTyping
self.msncon.gotContactTyping(message.userHandle)
File "/usr/local/pymsnt-20060717/src/legacy/glue.py", line 459, in
gotContactTyping
self.session.sendTypingNotification(self.jabberID,
msn2jid(contact, True), True)
exceptions.AttributeError: 'NoneType' object has no attribute
'sendTypingNotification'
----
Thanks!
David
---
On 7/19/06, James Bunton <[EMAIL PROTECTED]> wrote:
> On 19/07/2006, at 1:10 AM, David E Freitas wrote:
>
> > Hi,
> >
> > PyMSNt 0.11
> > Twisted 1.3
> > Python 2.4
> >
> > Still get this exception a lot:
> >
> > File "/usr/local/pymsnt-20060717/src/tlib/domish.py", line 90, in
> > serialize
> > write(" %s:%s='%s'" % (self.getPrefix(k[0]), k[1], escapeToXml(v,
> > 1)).encode("utf-8"))
> > exceptions.AttributeError: 'tuple' object has no attribute 'encode'
> >
>
> Oops. I misdiagnosed that before :P
>
> Fixed now. Thanks.
>
> ---
>
> James
From [EMAIL PROTECTED] Wed Jul 19 17:39:33 2006
From: [EMAIL PROTECTED] (Matthew Anderson)
Date: Wed Jul 19 17:39:42 2006
Subject: [py-transports] pyAIMt bugs, take two
Message-ID: <[EMAIL PROTECTED]>
Hi --
I never received any comment of any kind on my last query / message
to the list, and I still have yet to figure out exactly how to get my
component to talk to the pyAIMt component.
However, I have zeroed in exactly on one of the things that is
causing a traceback in pyAIMt. If it receives an unexpected presence
stanza (without a type, indicating available) it suffers a meltdown.
If I send a <presence type=probe /> stanza instead, it simply reports
<presence type="unavailable" /> with no traceback. I assume this
issue would be the same for the other gateways with the same
foundation code, though I've only attempted to work with pyAIMt.
Also, several times now after getting pyAIMt sufficiently confused
(2-3 tracebacks w/o actually shutting it down), pyAIMt has ceased to
function entirely, to the point that even a proper jabber client can
no longer interact with it successfully. Deleting the pyAIMt spool
files has no effect, restarting the jabberd2 server has no effect,
rebooting the server has no effect -- in fact, the only way I've
gotten it working again at all is to do a drop of the jabberd2 mysql
database, run the init script again, and re-register the test users.
Does anybody have any insight as to why these unexpected presence
fragments would be such a big problem?
Does anybody have any idea what could be tweaked in system state
where pyAIMt would be broken, and then fixed by dropping the jabberd2
database and making a new one?
If it's helpful, a diff of the mysqldumps before and after the
database refresh (and after the single user has re-registered) are
below.
Thanks,
--
Matt Anderson
dominar: [~/Desktop] % diff jabberd-broken.mysql after-resetup.mysql
38c38
< INSERT INTO `active` VALUES ('[EMAIL PROTECTED]',1,1152483537);
---
> INSERT INTO `active` VALUES ('[EMAIL PROTECTED]',1,1153325786);
65c65
< INSERT INTO `authreg` VALUES ('matt','bebop','CENSORED','44B180D1',
500,'9ab1d87180cd57442f7cfafa7476b4bc38d346c8');
---
> INSERT INTO `authreg` VALUES ('matt','bebop','CENSORED','44BE5ADA',
500,'5088ade3aaeb32e3ffbaa7aa072ccf3a4ec8e3a4');
114d113
< INSERT INTO `logout` VALUES ('[EMAIL PROTECTED]',2,1152563700);
310d308
< INSERT INTO `roster-items` VALUES ('[EMAIL PROTECTED]',23,'aim.bebop',NULL,
0,1,0),('[EMAIL PROTECTED]',9,'[EMAIL PROTECTED]',NULL,1,1,0),('[EMAIL
PROTECTED]',
16,'[EMAIL PROTECTED]',NULL,1,1,0);
377d374
< INSERT INTO `vcard` VALUES ('[EMAIL PROTECTED]',
1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL);