On Wed, Aug 18, 2010 at 4:28 PM, Chris Withers <ch...@simplistix.co.uk>wrote:
> Iain Duncan wrote: > >> FWIW, I can sit there and hit reload, and get totally different responses >> randomly, sometimes my bfg methods return what they are supposed to, and >> others I get the 500s. >> Could there be a connection with using resource directory overloads in the >> zcml? >> > > It would be good to see the exceptions that are logged on the server side > that match those 500s... > > Chris > > Here is the traceback from one of the times it screwed up. gah, I expect this is not good for homestar runner, maybe something deeply wrong in my model code? The weird thing is now I just had no problem like 10 times in a row, and other times the js app fails when it makes the same request ( /bookings/by_date/2010-08-18 ). But when I hit the same thing in the browser or manually trigger the ajax code from the firebug console, it never fails. Any clues to the meaning of this traceback are most appreciated. 16:37:01,938 INFO [irmacs.views.bookings] BookingView.by_date() date: 2009-12-18 ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 38238) Traceback (most recent call last): File "/home/irmacs/irmacs_trunk/eggs/Paste-1.7.4-py2.6.egg/paste/httpserver.py", line 1068, in process_request_in_thread self.finish_request(request, client_address) File "/usr/lib/python2.6/SocketServer.py", line 320, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python2.6/SocketServer.py", line 615, in __init__ self.handle() File "/home/irmacs/irmacs_trunk/eggs/Paste-1.7.4-py2.6.egg/paste/httpserver.py", line 442, in handle BaseHTTPRequestHandler.handle(self) File "/usr/lib/python2.6/BaseHTTPServer.py", line 329, in handle self.handle_one_request() File "/home/irmacs/irmacs_trunk/eggs/Paste-1.7.4-py2.6.egg/paste/httpserver.py", line 437, in handle_one_request self.wsgi_execute() File "/home/irmacs/irmacs_trunk/eggs/Paste-1.7.4-py2.6.egg/paste/httpserver.py", line 287, in wsgi_execute self.wsgi_start_response) File "/home/irmacs/irmacs_trunk/eggs/repoze.who-1.0.18-py2.6.egg/repoze/who/middleware.py", line 107, in __call__ app_iter = app(environ, wrapper.wrap_start_response) File "/home/irmacs/irmacs_trunk/eggs/repoze.bfg-1.2.1-py2.6.egg/repoze/bfg/router.py", line 130, in __call__ response = view_callable(context, request) File "/home/irmacs/irmacs_trunk/eggs/repoze.bfg-1.2.1-py2.6.egg/repoze/bfg/configuration.py", line 1665, in _bfg_class_view response = getattr(inst, attr)() File "/home/irmacs/irmacs_trunk/Irmacs/irmacs/views/bookings.py", line 47, in by_date bookings = self.model.list( Booking, {'date':isodate} ) File "/home/irmacs/irmacs_trunk/framework_src/xornot.model/xornot/model/__init__.py", line 208, in list items = query.all() File "/home/irmacs/irmacs_trunk/eggs/SQLAlchemy-0.5.8-py2.6.egg/sqlalchemy/orm/query.py", line 1267, in all return list(self) File "/home/irmacs/irmacs_trunk/eggs/SQLAlchemy-0.5.8-py2.6.egg/sqlalchemy/orm/query.py", line 1422, in instances rows = [process[0](context, row) for row in fetch] File "/home/irmacs/irmacs_trunk/eggs/SQLAlchemy-0.5.8-py2.6.egg/sqlalchemy/orm/query.py", line 2032, in main return _instance(row, None) File "/home/irmacs/irmacs_trunk/eggs/SQLAlchemy-0.5.8-py2.6.egg/sqlalchemy/orm/mapper.py", line 1751, in _instance state._run_on_load(instance) File "/home/irmacs/irmacs_trunk/eggs/SQLAlchemy-0.5.8-py2.6.egg/sqlalchemy/orm/state.py", line 119, in _run_on_load self.manager.events.run('on_load', instance) AttributeError: 'NoneType' object has no attribute 'run' ----------------------------------------
_______________________________________________ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev