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

2004-02-09 Thread Tony McDonald
Thanks again for the reply Dieter,

On 6 Feb 2004, at 21:14, Dieter Maurer wrote:

REQUEST.RESPONSE is set up in
ZServer.HTTPServer.zhttp_handler.continue_request.
It should be impossible that is is None.

Agreed.

Maybe, we have a memory corruption.
I have seen objects magically becoming None in
Python versions with memory corruption problems (Python 2.1.1).
--
Dieter


Could be memory perhaps, but this is python2.3.3.

Christian Heimes wrote:
[...]
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!

Christian


The problem I'm having is that these are all stock Zope products from a 
Zope2.7.0rc2 release. The traceback is coming from the Zope core.

Traceback (innermost last):
...
  Module Shared.DC.Scripts.Bindings, line 320, in
__render_with_namespace__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module App.special_dtml, line 175, in _exec
  Module DocumentTemplate.DT_Util, line 201, in eval
   - __traceback_info__: RESPONSE
  Module string, line 0, in ?
AttributeError: 'NoneType' object has no attribute 'setHeader'
This also seems different from what Christian is reporting;

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!
So, I'm still baffled by this.

Many thanks to all those providing more data points. I *think* this is 
a 'Zope' thing and not a 'Tone' thing, but I've been wrong in that area 
before ;)

cheers
tone.
--
Dr Tony McDonald, Asst Director, FMSC. 0191 245 4223
Project Manager, FDTL-4 ePortfolios http://www.eportfolios.ac.uk/
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


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

2004-02-06 Thread Dieter Maurer
Tony McDonald wrote at 2004-2-5 19:29 +:
 ...
 Looks like RESPONSE is None.

 I do not see how this can happen...


Exactly! - this is why I said I'd never seen this before.

It's a 2.6.1 Data.fs that's been dropped into a stock 2.7.0rc2 release 
and I get this error.

Whether or not RESPONSE is None should not be dependent on
the Data.fs (RESPONSE is recreated for each request and
is independent of persistent objects).

I have no idea why this is happening, so I was hoping that it was an 
artifact of the 2.7.0rc2 release itself.

 Probably, I would start debugging.


Quite likely, but I have *no* idea where to start with this. All the 
modules mentioned in the trackback are Zope supplied ones, not third 
party ones, so I'd assumed it might be the core software.

REQUEST.RESPONSE is set up in
ZServer.HTTPServer.zhttp_handler.continue_request.
It should be impossible that is is None.


Maybe, we have a memory corruption.
I have seen objects magically becoming None in
Python versions with memory corruption problems (Python 2.1.1).

-- 
Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


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

2004-02-05 Thread Dieter Maurer
Tony McDonald wrote at 2004-2-5 12:43 +:
 ...
We have an index_html (initially DTML document, then tried method) that 
can be created (located at /prototype/myporfolio/index_html), have it's 
security settings changed quite happily. Then when the object is called 
we get the error in the subject line. The system specs are;
 ...
and the traceback is;

Traceback (innermost last):
 ...
   Module Shared.DC.Scripts.Bindings, line 320, in 
__render_with_namespace__
   Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
   Module App.special_dtml, line 175, in _exec
   Module DocumentTemplate.DT_Util, line 201, in eval
- __traceback_info__: RESPONSE
   Module string, line 0, in ?
AttributeError: 'NoneType' object has no attribute 'setHeader'

Looks like RESPONSE is None.

I do not see how this can happen...

Probably, I would start debugging.

-- 
Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


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

2004-02-05 Thread Tony McDonald
Thanks for the response Dieter,

On 5 Feb 2004, at 18:51, Dieter Maurer wrote:

Tony McDonald wrote at 2004-2-5 12:43 +:
...
We have an index_html (initially DTML document, then tried method) 
that
can be created (located at /prototype/myporfolio/index_html), have 
it's
security settings changed quite happily. Then when the object is 
called
we get the error in the subject line. The system specs are;
...
and the traceback is;

Traceback (innermost last):
...
  Module Shared.DC.Scripts.Bindings, line 320, in
__render_with_namespace__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module App.special_dtml, line 175, in _exec
  Module DocumentTemplate.DT_Util, line 201, in eval
   - __traceback_info__: RESPONSE
  Module string, line 0, in ?
AttributeError: 'NoneType' object has no attribute 'setHeader'
Looks like RESPONSE is None.

I do not see how this can happen...

Exactly! - this is why I said I'd never seen this before.

It's a 2.6.1 Data.fs that's been dropped into a stock 2.7.0rc2 release 
and I get this error.

I have no idea why this is happening, so I was hoping that it was an 
artifact of the 2.7.0rc2 release itself.

Probably, I would start debugging.

Quite likely, but I have *no* idea where to start with this. All the 
modules mentioned in the trackback are Zope supplied ones, not third 
party ones, so I'd assumed it might be the core software.

--
Dieter
once again, thanks for the reply Dieter.

tone.
--
Dr Tony McDonald, Asst Director, FMSC. 0191 245 4223
Project Manager, FDTL-4 ePortfolios http://www.eportfolios.ac.uk/
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )