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, insteadof 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/conditionsare caught, a single runtime error can make the webserver stuck.
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.
What lisp are you using?
What OS?
--
You received this message because you are subscribed to the Google Groups "weblocks" group.
To view this discussion on the web visit https://groups.google.com/d/msg/weblocks/-/atwMxi8L16kJ.
To post to this group, send email to webl...@googlegroups.com.
To unsubscribe from this group, send email to weblocks+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/weblocks?hl=en.
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).Then simply create the GF for the value nil
The web-server (hunchentoot) running the weblocks demo becomes unresponsive, until restarted.If you mean that page hangs, then you're probably in debug mode, and your lisp is displaying a stacktrace to help you debug the error. And you can fix it live, and then the page will render (if the browser hasn't already timed out). This is a GOOD thing.
It hasn't halted the webserver. If you open another tab to the same site (localhost?) the webserver wll spin up another thread to service the new request.
Unless you are running a single-threaded lisp, which I would wager you are doing.
Does that mean that unless all parts of a web application are written very carefully, making sure that all error exceptions/conditionsare caught, a single runtime error can make the webserver stuck.I don't even know how to respond to this. If you want help please thoroughly describe your stack (OS, lisp, libraries etc).