do you have request that take more then 1 minute?

Wicket has to do that to make sure that you as a developer doesnt have to
think about multi threaded
programming and we as a framework also doesn't have to worry about 2 render
cycles at the same
time of the same page.

johan



On Jan 28, 2008 11: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<http://nabble.com/>
> .
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to