I'm using ejabberd-1.1.1 + PyMSNt-0.11.1 on a FreeBSD 6.x box. Last
days some users reported me they are losing MSN connection many times
per day. Here is a traceback

[2006-08-03 08:28:00] Traceback (most recent call last):
          File 
"/usr/local/lib/python2.4/site-packages/twisted/internet/pollreactor.py",
line 145, in doPoll
            log.callWithLogger(selectable, _drdw, selectable, fd,
event, POLLIN, POLLOUT, log)
          File "/usr/local/lib/python2.4/site-packages/twisted/python/log.py",
line 65, in callWithLogger
            callWithContext({"system": lp}, func, *args, **kw)
          File "/usr/local/lib/python2.4/site-packages/twisted/python/log.py",
line 52, in callWithContext
            return context.call({ILogContext: newCtx}, func, *args, **kw)
          File 
"/usr/local/lib/python2.4/site-packages/twisted/python/context.py",
line 43, in callWithContext
            return func(*args,**kw)
        --- <exception caught here> ---
          File 
"/usr/local/lib/python2.4/site-packages/twisted/internet/pollreactor.py",
line 160, in _doReadOrWrite
            why = selectable.doRead()
          File "/usr/local/lib/python2.4/site-packages/twisted/internet/tcp.py",
line 255, in doRead
            return self.protocol.dataReceived(data)
          File 
"/usr/local/lib/python2.4/site-packages/twisted/protocols/basic.py",
line 223, in dataReceived
            why = self.lineReceived(line)
          File "/usr/local/lib/jabber/pymsn/src/tlib/msn/msn.py", line
826, in lineReceived
            try: handler(params.split(' '))
          File "/usr/local/lib/jabber/pymsn/src/tlib/msn/msn.py", line
1182, in handle_NLN
            self.handleAvatarHelper(msnContact, params[4])
          File "/usr/local/lib/jabber/pymsn/src/tlib/msn/msn.py", line
1158, in handleAvatarHelper
            msnobj = MSNObject(unquote(msnobjStr))
          File "/usr/local/lib/jabber/pymsn/src/tlib/msn/msn.py", line
492, in __init__
            self.parse(s)
          File "/usr/local/lib/jabber/pymsn/src/tlib/msn/msn.py", line
535, in parse
            self.creator = e.getAttribute("Creator")
        exceptions.AttributeError: 'NoneType' object has no attribute
'getAttribute'

Any idea how to fix it?

Thanks in advance
-- 
Renato Botelho
From [EMAIL PROTECTED]  Thu Aug  3 17:03:19 2006
From: [EMAIL PROTECTED] (Gonzalo Barrio)
Date: Thu Aug  3 17:03:45 2006
Subject: [py-transports] PyMSNt losing connections
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

I have the same output and the same disconnections.
Here is the traceback.
I have make an svn update today but still with this problems.

[2006-08-03 13:58:36] Traceback (most recent call last):
          File "/usr/lib/python2.3/site-packages/twisted/python/log.py", 
line 53, in callWithLogger
            return callWithContext({"system": lp}, func, *args, **kw)
          File "/usr/lib/python2.3/site-packages/twisted/python/log.py", 
line 38, in callWithContext
            return context.call({ILogContext: newCtx}, func, *args, **kw)
          File 
"/usr/lib/python2.3/site-packages/twisted/python/context.py", line 59, 
in callWithContext
            return self.currentContext().callWithContext(ctx, func, 
*args, **kw)
          File 
"/usr/lib/python2.3/site-packages/twisted/python/context.py", line 37, 
in callWithContext
            return func(*args,**kw)
        --- <exception caught here> ---
          File 
"/usr/lib/python2.3/site-packages/twisted/internet/epollreactor.py", 
line 199, in _doReadOrWrite
            why = selectable.doRead()
          File 
"/usr/lib/python2.3/site-packages/twisted/internet/tcp.py", line 349, in 
doRead
            return self.protocol.dataReceived(data)
          File 
"/usr/lib/python2.3/site-packages/twisted/protocols/basic.py", line 232, 
in dataReceived
            why = self.lineReceived(line)
          File 
"/opt/jabber/usr/src/PyTransports/PyMSNt/src/tlib/msn/msn.py", line 826, 
in lineReceived
            try: handler(params.split(' '))
          File 
"/opt/jabber/usr/src/PyTransports/PyMSNt/src/tlib/msn/msn.py", line 
1182, in handle_NLN
            self.handleAvatarHelper(msnContact, params[4])
          File 
"/opt/jabber/usr/src/PyTransports/PyMSNt/src/tlib/msn/msn.py", line 
1158, in handleAvatarHelper
            msnobj = MSNObject(unquote(msnobjStr))
          File 
"/opt/jabber/usr/src/PyTransports/PyMSNt/src/tlib/msn/msn.py", line 492, 
in __init__
            self.parse(s)
          File 
"/opt/jabber/usr/src/PyTransports/PyMSNt/src/tlib/msn/msn.py", line 535, 
in parse
            self.creator = e.getAttribute("Creator")
        exceptions.AttributeError: 'NoneType' object has no attribute 
'getAttribute'





Renato Botelho wrote:
> I'm using ejabberd-1.1.1 + PyMSNt-0.11.1 on a FreeBSD 6.x box. Last
> days some users reported me they are losing MSN connection many times
> per day. Here is a traceback
>
> [2006-08-03 08:28:00] Traceback (most recent call last):
>          File 
> "/usr/local/lib/python2.4/site-packages/twisted/internet/pollreactor.py",
> line 145, in doPoll
>            log.callWithLogger(selectable, _drdw, selectable, fd,
> event, POLLIN, POLLOUT, log)
>          File 
> "/usr/local/lib/python2.4/site-packages/twisted/python/log.py",
> line 65, in callWithLogger
>            callWithContext({"system": lp}, func, *args, **kw)
>          File 
> "/usr/local/lib/python2.4/site-packages/twisted/python/log.py",
> line 52, in callWithContext
>            return context.call({ILogContext: newCtx}, func, *args, **kw)
>          File 
> "/usr/local/lib/python2.4/site-packages/twisted/python/context.py",
> line 43, in callWithContext
>            return func(*args,**kw)
>        --- <exception caught here> ---
>          File 
> "/usr/local/lib/python2.4/site-packages/twisted/internet/pollreactor.py",
> line 160, in _doReadOrWrite
>            why = selectable.doRead()
>          File 
> "/usr/local/lib/python2.4/site-packages/twisted/internet/tcp.py",
> line 255, in doRead
>            return self.protocol.dataReceived(data)
>          File 
> "/usr/local/lib/python2.4/site-packages/twisted/protocols/basic.py",
> line 223, in dataReceived
>            why = self.lineReceived(line)
>          File "/usr/local/lib/jabber/pymsn/src/tlib/msn/msn.py", line
> 826, in lineReceived
>            try: handler(params.split(' '))
>          File "/usr/local/lib/jabber/pymsn/src/tlib/msn/msn.py", line
> 1182, in handle_NLN
>            self.handleAvatarHelper(msnContact, params[4])
>          File "/usr/local/lib/jabber/pymsn/src/tlib/msn/msn.py", line
> 1158, in handleAvatarHelper
>            msnobj = MSNObject(unquote(msnobjStr))
>          File "/usr/local/lib/jabber/pymsn/src/tlib/msn/msn.py", line
> 492, in __init__
>            self.parse(s)
>          File "/usr/local/lib/jabber/pymsn/src/tlib/msn/msn.py", line
> 535, in parse
>            self.creator = e.getAttribute("Creator")
>        exceptions.AttributeError: 'NoneType' object has no attribute
> 'getAttribute'
>
> Any idea how to fix it?
>
> Thanks in advance

Reply via email to