On Mon, Apr 9, 2012 at 7:48 AM, ashar <[email protected]> wrote: > I ran weblocks clsql demo. Runs OK. > Then I delete a row in Company table that is linked to an employee in > another table. > Run the employee page (that lists them). > Got an error There is no method > #<STANDARD-GENERIC-FUNCTION WEBLOCKS-CLSQL-DEMO::COMPANY-NAME (1)> > when called with arguments (NIL). > > The web-server (hunchentoot) running the weblocks demo becomes > unresponsive, until restarted. > > Is this normal? Should'nt it just show empty field, or give a record not > found runtime error to the user, instead > of throwing an error condtion and halting the webserver. > > Does that mean that unless all parts of a web application are written very > carefully, making sure that all error exceptions/conditions > are caught, a single runtime error can make the webserver stuck. > > Hmm, I'm not sure why the server is becoming unresponsive.
You can run Weblocks in either normal mode or debug mode. In normal mode, errors are trapped and cause an (uninformative) "internal error" popup to be displayed by the browser. In debug mode, at least if you're using SLIME, you should be able to poke around in the debugger to figure out what happened and then use the appropriate SLDB option to kill the thread that got the error. In either case, new server threads should be started automatically to serve subsequent requests. I haven't seen the behavior you're describing. What platform are you using? I'm running on SBCL, on Linux. -- Scott -- You received this message because you are subscribed to the Google Groups "weblocks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/weblocks?hl=en.
