You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by fachhoch <fa...@gmail.com> on 2012/06/14 10:50:57 UTC

Re: After 1 minute the Pagemap null is still locked by: Thread how to kill this request ?

I am still facing this problem root cause of my issues are database related, 
it takes time time to respond 

what can I do  to avoid pagemap lock? can I set  timeout for all my pages 
in a global way ? Please advice.  I saw this post 

http://apache-wicket.1842946.n4.nabble.com/Removing-Pagemap-lock-post-1-5-td3387575.html

I am using wicket 1.4.12 , using wicket 1.5.1 or above  will  resolve this
problem?
or is there any hack in wicket 1.4.xx
Please   advice.






 
 


--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/After-1-minute-the-Pagemap-null-is-still-locked-by-Thread-how-to-kill-this-request-tp4565091p4649966.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: After 1 minute the Pagemap null is still locked by: Thread how to kill this request ?

Posted by fachhoch <fa...@gmail.com>.
I cannot run this in seperate thread becasue this could happen in anypage not
just one page , all my pages uses db operations and for some reason once in 
a while   some  db operation takes time and  the page is stuck.Please  tell
more on using a different  pagemap . I encode all my urls.
can   I provide a link in my basepage   through which this link is
accessible to all pages ,can you  provide me simple code waht should be
called in onclick ?
Thanks a lot for you support.

 




--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/After-1-minute-the-Pagemap-null-is-still-locked-by-Thread-how-to-kill-this-request-tp4565091p4649976.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: After 1 minute the Pagemap null is still locked by: Thread how to kill this request ?

Posted by Martin Grigorov <mg...@apache.org>.
run such slow operations in a separate thread

in 1.5+ the lock is per page instance so you can just start a new page
(i.e. remove the ?pageId ffrom the url) and all will be fine.
In 1.4 I guess you need to use a different pageMap. The default
pageMap is null. I.e. you need to provide a non-null one:
?wicket:pageMapName=blah

On Thu, Jun 14, 2012 at 4:51 PM, fachhoch <fa...@gmail.com> wrote:
> if my dboperation is  pending and taking long time, there is now way I can
> call another resource ?
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/After-1-minute-the-Pagemap-null-is-still-locked-by-Thread-how-to-kill-this-request-tp4565091p4649973.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: After 1 minute the Pagemap null is still locked by: Thread how to kill this request ?

Posted by Thomas Götz <to...@decoded.de>.
Maybe you should think about an asynchronous approach, i.e. poll the state of your long-time-backend-operation e.g. by using an AjaxSelfUpdatingTimerBehavior.

   -Tom



On 14.06.2012 at 15:51 fachhoch wrote:

> if my dboperation is  pending and taking long time, there is now way I can 
> call another resource ? 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: After 1 minute the Pagemap null is still locked by: Thread how to kill this request ?

Posted by fachhoch <fa...@gmail.com>.
if my dboperation is  pending and taking long time, there is now way I can 
call another resource ? 


--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/After-1-minute-the-Pagemap-null-is-still-locked-by-Thread-how-to-kill-this-request-tp4565091p4649973.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: After 1 minute the Pagemap null is still locked by: Thread how to kill this request ?

Posted by Martin Grigorov <mg...@apache.org>.
In 1.5+ it should release the lock when your DB operation finishes. I
guess it should be the same in 1.4.x.

On Thu, Jun 14, 2012 at 4:32 PM, fachhoch <fa...@gmail.com> wrote:
> by default its supposed to timeout after 1 minute , but whenever  my pagemap
> is locked only way to  call new   resource is close the browser relogin as
> if new session. Please advice me.
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/After-1-minute-the-Pagemap-null-is-still-locked-by-Thread-how-to-kill-this-request-tp4565091p4649970.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: After 1 minute the Pagemap null is still locked by: Thread how to kill this request ?

Posted by fachhoch <fa...@gmail.com>.
by default its supposed to timeout after 1 minute , but whenever  my pagemap 
is locked only way to  call new   resource is close the browser relogin as
if new session. Please advice me.



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/After-1-minute-the-Pagemap-null-is-still-locked-by-Thread-how-to-kill-this-request-tp4565091p4649970.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: After 1 minute the Pagemap null is still locked by: Thread how to kill this request ?

Posted by Martin Grigorov <mg...@apache.org>.
See org.apache.wicket.settings.IRequestCycleSettings#setTimeout()

On Thu, Jun 14, 2012 at 11:50 AM, fachhoch <fa...@gmail.com> wrote:
> I am still facing this problem root cause of my issues are database related,
> it takes time time to respond
>
> what can I do  to avoid pagemap lock? can I set  timeout for all my pages
> in a global way ? Please advice.  I saw this post
>
> http://apache-wicket.1842946.n4.nabble.com/Removing-Pagemap-lock-post-1-5-td3387575.html
>
> I am using wicket 1.4.12 , using wicket 1.5.1 or above  will  resolve this
> problem?
> or is there any hack in wicket 1.4.xx
> Please   advice.
>
>
>
>
>
>
>
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/After-1-minute-the-Pagemap-null-is-still-locked-by-Thread-how-to-kill-this-request-tp4565091p4649966.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org