Python backend afcs.py __roominstance None

Avatar

Avatar

coulix

Avatar

coulix

coulix

01-12-2009

Hello there, a little bit of backend digging for today

I am often getting this kind of errors:

Traceback (most recent call last):

File "/home/django/domains/edoboard.com/src/django/django/core/handlers/base.py",

line 92, in get_response

response = callback(request, *callback_args, **callback_kwargs)


File "/home/django/domains/edoboard.com/edoboard/edorado/AFCS_sessions/views.py"

line 75, in join_session

sess = am.getSession(afcsSession.key)


File "/home/django/domains/edoboard.com/lib/python2.5/site-packages/afcs.py"

line 375, in getSession

sess = session(self.__roomInstance, self.url.split("/")[-1], room)


File "/home/django/domains/edoboard.com/lib/python2.5/site-packages/afcs.py"

line 205, in __init__

self.__instance = instance.replace('#room#', room)


AttributeError: 'NoneType' object has no attribute 'replace'

instance happens to be null

> implying self.__roomInstance is null at line 375 is null.

> implying __initialize called in init or login does not set self.__roomInstance right:

l428


if response.tagName == 'meeting-info':

      (..)

      if len(response.getElementsByTagName("room")) > 0:

       self.__roomInstance = response.getElementsByTagName("room")[0].attributes['instance'].value

So it seems like no room tag was present or response.tagName was not 'meeting-info', too bad i do not log the raw response. I am not always able to reproduce this error.

Wondering if it could have anything to do with being 'thread safe' in Python.

In anycase if i get more of those i will start logging xml response.

If you have any ideas or startegies to share to catch this one, that would be great.

Greg

View Entire Topic

Avatar

Avatar

coulix

Avatar

coulix

coulix

01-12-2009

Just in case i installed Apache 2 prefork to see if it is tread related.