the pages are locked on the pagemap. so you cannot have two concurrent
requests from the same user to the same pagemap. this is so when you
are coding your pages you can use the much simpler single-threaded
model.
every have fields in your servlet implementation? those have to be
synchronized or you will run into threading issues. this is the stuff
we make sure you dont have to worry about.
the trade off is that if you have long running requests you should
probably process them in a different thread and let the UI poll for
status.
-igor
On Jan 28, 2008 2:08 PM, cemeterygate <[EMAIL PROTECTED]> wrote:
>
> So I developed my first wicket application and I kept getting exception below
> as soon as i point my application to production database.
>
> Can someone tell me why wicket can't handle concurrent request?
>
> to replicate this issue, i have a page with a form component and regular
> submit button.
> on the onSubmit method,
> protected void onSubmit() {
> try {
> Thread.sleep(3 * 60 * 1000);
> } catch (InterruptedException e) {
> }
> }
>
> i put the thread into sleep for 3 minutes. I hit submit, then stop the
> request on browser and submit another request. then result to a internal
> error page. Why can't wicket handle mutiple submit? i dont' get it,
> shouldn't wicket process the new require like how servlet works? Someone
> please tell me how to work around this issue. Thanks in advance.
>
>
> 2008-01-25 14:45:05,443 ERROR [org.apache.wicket.RequestCycle] - <After 1
> minute the Pagemap null is still locked by:
> Thread[resin-tcp-connection-*:8080-45,5,main], giving up trying to get the
> page for path: 5>
> org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap null is
> still locked by: Thread[resin-tcp-connection-*:8080-45,5,main], giving up
> trying to get the page for path: 5
> at org.apache.wicket.Session.getPage(Session.java:734)
> at
> org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:443)
> at
> org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1152)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:489)
> at
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354)
> at
> org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:121)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:115)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
> at
> com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106)
> --
> View this message in context:
> http://www.nabble.com/Pagemap-null-is-still-locked-by-blah-exception%2C-help%21%21-why-does-wicket-have-to-lock-the-pagemap-tp15146763p15146763.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]