sgv
04-30-2008, 01:58 PM
I have an application running open laszlo 4.0.10 proxied against a grails(hibernate) backend server. Laszlo code is compiled to swf8. (_not_ a dhtml issue)
My problem occurs during dataset.doRequest(): the user clicks too many times, hibernate throws an exception because there is more than one object on the session with the same id being passed to saveOrUpdate and I get an internal server 500 error in the laszlo debug window. The UI stops responding.
I looked at an open bug which is similar but seems to be caused by the request queue not unloading.
I have added the onerror handler to the dataset to unload requests from the LzLoadQueue if there are any at this point. I also added a timeout for requests. They are not timing out. The queuerequests attr is not set on the dataset as it slowed down the UI too much when I did.
I am using fiddler, firebug, server logging, and debug statements to no avail. Can anyone recommend a way to figure out what exactly is wrong and how to make the UI start responding again? :o
My problem occurs during dataset.doRequest(): the user clicks too many times, hibernate throws an exception because there is more than one object on the session with the same id being passed to saveOrUpdate and I get an internal server 500 error in the laszlo debug window. The UI stops responding.
I looked at an open bug which is similar but seems to be caused by the request queue not unloading.
I have added the onerror handler to the dataset to unload requests from the LzLoadQueue if there are any at this point. I also added a timeout for requests. They are not timing out. The queuerequests attr is not set on the dataset as it slowed down the UI too much when I did.
I am using fiddler, firebug, server logging, and debug statements to no avail. Can anyone recommend a way to figure out what exactly is wrong and how to make the UI start responding again? :o