Re: [Zope] First run TypeError
I managed a fix to my threading and it solved my trouble. It was a bit sidetracked earlier with the Type Error message. My hunch was right in the end. Many thanks. Regards, David David Pratt wrote: Hi Andreas. I have been experimenting with creating backend storages for zope. There is no traceback or error that appears in the error log or event log. My hunch is that the message may be erroneous and that access to the storage is being blocked since the database I am currently experimenting with is not thread safe. I am trying to handle this with a connection pool. I believe that the block is cleared with first two requests that don't succeed - since each time it would be calling a new thread. I believe the reason that this is only occurring on startup is because zope has to load objects with the initial threads to the storage before serving requests. Regards David Andreas Jung wrote: --On 7. Mai 2006 09:04:54 -0300 David Pratt <[EMAIL PROTECTED]> wrote: I've got a bit more information from my Z2.log: On a normal startup attempt with data.fs: I get one or two lines with "HEAD /VirtualHostBase/http/:80/ HTTP/1.1" 200 312 "" "" as the anonymous Then a GET 200 code (ok) when I authenticate at the /manage URL On the new storage: No "HEAD" lines appear as the anonymous user and the first two GETs to the /manage URL give a 500 code (internal server error) The following error appears on the browser: Error Type: TypeError Error Value: unbound method method_descriptor object must be called with Application instance as first argument (got RequestContainer instance instead) What is a hybrid storage? Where is the full traceback? You posting contains very little useful information to figure out what you are really trying to do. -aj ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] First run TypeError
Hi Andreas. I have been experimenting with creating backend storages for zope. There is no traceback or error that appears in the error log or event log. My hunch is that the message may be erroneous and that access to the storage is being blocked since the database I am currently experimenting with is not thread safe. I am trying to handle this with a connection pool. I believe that the block is cleared with first two requests that don't succeed - since each time it would be calling a new thread. I believe the reason that this is only occurring on startup is because zope has to load objects with the initial threads to the storage before serving requests. Regards David Andreas Jung wrote: --On 7. Mai 2006 09:04:54 -0300 David Pratt <[EMAIL PROTECTED]> wrote: I've got a bit more information from my Z2.log: On a normal startup attempt with data.fs: I get one or two lines with "HEAD /VirtualHostBase/http/:80/ HTTP/1.1" 200 312 "" "" as the anonymous Then a GET 200 code (ok) when I authenticate at the /manage URL On the new storage: No "HEAD" lines appear as the anonymous user and the first two GETs to the /manage URL give a 500 code (internal server error) The following error appears on the browser: Error Type: TypeError Error Value: unbound method method_descriptor object must be called with Application instance as first argument (got RequestContainer instance instead) What is a hybrid storage? Where is the full traceback? You posting contains very little useful information to figure out what you are really trying to do. -aj ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] First run TypeError
--On 7. Mai 2006 09:04:54 -0300 David Pratt <[EMAIL PROTECTED]> wrote: I've got a bit more information from my Z2.log: On a normal startup attempt with data.fs: I get one or two lines with "HEAD /VirtualHostBase/http/:80/ HTTP/1.1" 200 312 "" "" as the anonymous Then a GET 200 code (ok) when I authenticate at the /manage URL On the new storage: No "HEAD" lines appear as the anonymous user and the first two GETs to the /manage URL give a 500 code (internal server error) The following error appears on the browser: Error Type: TypeError Error Value: unbound method method_descriptor object must be called with Application instance as first argument (got RequestContainer instance instead) What is a hybrid storage? Where is the full traceback? You posting contains very little useful information to figure out what you are really trying to do. -aj -- ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany Web: www.zopyx.com - Email: [EMAIL PROTECTED] - Phone +49 - 7071 - 793376 E-Publishing, Python, Zope & Plone development, Consulting pgpdGu5dfQZMM.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] First run TypeError
I've got a bit more information from my Z2.log: On a normal startup attempt with data.fs: I get one or two lines with "HEAD /VirtualHostBase/http/:80/ HTTP/1.1" 200 312 "" "" as the anonymous Then a GET 200 code (ok) when I authenticate at the /manage URL On the new storage: No "HEAD" lines appear as the anonymous user and the first two GETs to the /manage URL give a 500 code (internal server error) The following error appears on the browser: Error Type: TypeError Error Value: unbound method method_descriptor object must be called with Application instance as first argument (got RequestContainer instance instead) The third GET always succeeds (200 ok) in allowing authentication. The instance behaves as normal in every regard afterwards. This only occurs on startup. Regards, David David Pratt wrote: Hi. I have been experimenting with making a hybrid storage for zodb. The storage seems to work well except that I am getting this error on the first request to the server and I am not exactly sure where it is coming from. Error Type: TypeError Error Value: unbound method method_descriptor object must be called with Application instance as first argument (got RequestContainer instance instead) When I refresh the browser, I get my login and no problems at all using the zope instance etc. The event and error logs are clean. But when I restart the server, the error appears on startup again. Many thanks. Regards, David ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] First run TypeError
Hi. I have been experimenting with making a hybrid storage for zodb. The storage seems to work well except that I am getting this error on the first request to the server and I am not exactly sure where it is coming from. Error Type: TypeError Error Value: unbound method method_descriptor object must be called with Application instance as first argument (got RequestContainer instance instead) When I refresh the browser, I get my login and no problems at all using the zope instance etc. The event and error logs are clean. But when I restart the server, the error appears on startup again. Many thanks. Regards, David ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )