[Zope-dev] Re: Zope2.7.0rc2 AttributeError: 'NoneType' object has no attribute 'setHeader'

Dieter Maurer dieter at handshake.de
Sat Feb 7 13:24:44 EST 2004


Christian Heimes wrote at 2004-2-6 23:01 +0100:
>And the next one:
>
>Python2.3.3/Zope2.70rc2/Plone2rc5.
>
>Exception Type
>AttributeError
>Exception Value
>'str' object has no attribute 'RESPONSE'
>
>[...]
>Module Products.CMFPhoto.Photo, line 510, in clearCache
>AttributeError: 'str' object has no attribute 'RESPONSE'
>
>The relevant code line is self.REQUEST.RESPONSE.setHeader(). The error
>occured at object creation.
>
>Something really bad is going on!

This may indeed be a memory corruption problem where
the same object is released/freed twice.

A long time ago, I used "purify" to analyse such problems.
It may no longer be feasible as Python now uses its own
memory management on top of the standard one.

It may be possible to compile Python in a way that it checks
for badly used memory management functions.

-- 
Dieter



More information about the Zope-Dev mailing list