Page Map Is Locked, Can't Switch Pages When A Transaction Is Ongoing
Hi, if any of you could help, we have a problem in one of our wicket installations. We have a system that connects to another system. Sometimes the system's reply lasts for more than a minute. Wicket is having problem with regards to the page map being locked. I click for example on a page to request for a balance, the host doesn't return anymessage for about 1 minute or more. So instead of waiting, i will try to move to another page, problem is... i can't switch pages. wicket seems to have locked the page map and i can't get out or even logout. After a minute, an exception is thrown saying that the page map may have been locked for more than 1 minute is there any way around this? Thanks A Lot Carlo
Re: Page Map Is Locked, Can't Switch Pages When A Transaction Is Ongoing
I'd suggest running the transaction in the background (separate thread) and using an AjaxStoppableSelfUpdatingTimer to periodically check if the thread was finished and only do the redirect after finishing. This way, the pagemap remains unlocked. 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: Hi, if any of you could help, we have a problem in one of our wicket installations. We have a system that connects to another system. Sometimes the system's reply lasts for more than a minute. Wicket is having problem with regards to the page map being locked. I click for example on a page to request for a balance, the host doesn't return anymessage for about 1 minute or more. So instead of waiting, i will try to move to another page, problem is... i can't switch pages. wicket seems to have locked the page map and i can't get out or even logout. After a minute, an exception is thrown saying that the page map may have been locked for more than 1 minute is there any way around this? Thanks A Lot Carlo -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page Map Is Locked, Can't Switch Pages When A Transaction Is Ongoing
hi, i believe this is due to the fact that wicket has synchronized page maps for access. do you think it is safe to remove it? what are the precautions when removing synchronized for wicket page maps? Is there a setting that I could use to disable this? Thanks A Lot Carlo On Thu, Jan 21, 2010 at 5:13 PM, Jeroen Steenbeeke j.steenbeeke.ml@ gmail.com wrote: I'd suggest running the transaction in the background (separate thread) and using an AjaxStoppableSelfUpdatingTimer to periodically check if the thread was finished and only do the redirect after finishing. This way, the pagemap remains unlocked. 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: Hi, if any of you could help, we have a problem in one of our wicket installations. We have a system that connects to another system. Sometimes the system's reply lasts for more than a minute. Wicket is having problem with regards to the page map being locked. I click for example on a page to request for a balance, the host doesn't return anymessage for about 1 minute or more. So instead of waiting, i will try to move to another page, problem is... i can't switch pages. wicket seems to have locked the page map and i can't get out or even logout. After a minute, an exception is thrown saying that the page map may have been locked for more than 1 minute is there any way around this? Thanks A Lot Carlo -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page Map Is Locked, Can't Switch Pages When A Transaction Is Ongoing
I'd suggest adapting your application to use Wicket properly instead of the other way around. I'm not a Wicket Dev but I'm pretty sure that desynchronizing page map access will cause more problems than it solves. Your problem is that Page A displays data which can take a lot of time to gather due to polling an external system. So use this scenario. 1) Upon load, Page A starts a thread that fetches the information, and displays a placeholder (a loading image or something like that). Once the page is loaded your thread will be running and the pagemap unlocked. 2) Use Ajax polling (in the way I suggested) to check if the thread has finished. This will not lock the pagemap so you are free to navigate the site. Once the thread is finished, you can replace the placeholder from step 1 with the actual panel Alternatively, you could use a push solution (e.g. wicketstuff-push) to automatically publish the data upon thread completion (or append it as the data comes in). 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: hi, i believe this is due to the fact that wicket has synchronized page maps for access. do you think it is safe to remove it? what are the precautions when removing synchronized for wicket page maps? Is there a setting that I could use to disable this? Thanks A Lot Carlo On Thu, Jan 21, 2010 at 5:13 PM, Jeroen Steenbeeke j.steenbeeke.ml@ gmail.com wrote: I'd suggest running the transaction in the background (separate thread) and using an AjaxStoppableSelfUpdatingTimer to periodically check if the thread was finished and only do the redirect after finishing. This way, the pagemap remains unlocked. 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: Hi, if any of you could help, we have a problem in one of our wicket installations. We have a system that connects to another system. Sometimes the system's reply lasts for more than a minute. Wicket is having problem with regards to the page map being locked. I click for example on a page to request for a balance, the host doesn't return anymessage for about 1 minute or more. So instead of waiting, i will try to move to another page, problem is... i can't switch pages. wicket seems to have locked the page map and i can't get out or even logout. After a minute, an exception is thrown saying that the page map may have been locked for more than 1 minute is there any way around this? Thanks A Lot Carlo -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page Map Is Locked, Can't Switch Pages When A Transaction Is Ongoing
Why not follow the Jeroen's suggestion instead of trying to trick framework internals? Ernesto On Thu, Jan 21, 2010 at 11:17 AM, Carlo Camerino carlo.camer...@gmail.comwrote: hi, i believe this is due to the fact that wicket has synchronized page maps for access. do you think it is safe to remove it? what are the precautions when removing synchronized for wicket page maps? Is there a setting that I could use to disable this? Thanks A Lot Carlo On Thu, Jan 21, 2010 at 5:13 PM, Jeroen Steenbeeke j.steenbeeke.ml@ gmail.com wrote: I'd suggest running the transaction in the background (separate thread) and using an AjaxStoppableSelfUpdatingTimer to periodically check if the thread was finished and only do the redirect after finishing. This way, the pagemap remains unlocked. 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: Hi, if any of you could help, we have a problem in one of our wicket installations. We have a system that connects to another system. Sometimes the system's reply lasts for more than a minute. Wicket is having problem with regards to the page map being locked. I click for example on a page to request for a balance, the host doesn't return anymessage for about 1 minute or more. So instead of waiting, i will try to move to another page, problem is... i can't switch pages. wicket seems to have locked the page map and i can't get out or even logout. After a minute, an exception is thrown saying that the page map may have been locked for more than 1 minute is there any way around this? Thanks A Lot Carlo -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page Map Is Locked, Can't Switch Pages When A Transaction Is Ongoing
if i can't do this, is there anyway that i could at least increase the timeout of the pagemap to greater than 1 minute? 1 minute would be too little i guess On Thu, Jan 21, 2010 at 2:34 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Why not follow the Jeroen's suggestion instead of trying to trick framework internals? Ernesto On Thu, Jan 21, 2010 at 11:17 AM, Carlo Camerino carlo.camer...@gmail.comwrote: hi, i believe this is due to the fact that wicket has synchronized page maps for access. do you think it is safe to remove it? what are the precautions when removing synchronized for wicket page maps? Is there a setting that I could use to disable this? Thanks A Lot Carlo On Thu, Jan 21, 2010 at 5:13 PM, Jeroen Steenbeeke j.steenbeeke.ml@ gmail.com wrote: I'd suggest running the transaction in the background (separate thread) and using an AjaxStoppableSelfUpdatingTimer to periodically check if the thread was finished and only do the redirect after finishing. This way, the pagemap remains unlocked. 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: Hi, if any of you could help, we have a problem in one of our wicket installations. We have a system that connects to another system. Sometimes the system's reply lasts for more than a minute. Wicket is having problem with regards to the page map being locked. I click for example on a page to request for a balance, the host doesn't return anymessage for about 1 minute or more. So instead of waiting, i will try to move to another page, problem is... i can't switch pages. wicket seems to have locked the page map and i can't get out or even logout. After a minute, an exception is thrown saying that the page map may have been locked for more than 1 minute is there any way around this? Thanks A Lot Carlo -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page Map Is Locked, Can't Switch Pages When A Transaction Is Ongoing
is there anyway that i could just kill the previous thread? On Thu, Jan 21, 2010 at 3:05 AM, Carlo Camerino carlo.camer...@gmail.comwrote: if i can't do this, is there anyway that i could at least increase the timeout of the pagemap to greater than 1 minute? 1 minute would be too little i guess On Thu, Jan 21, 2010 at 2:34 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Why not follow the Jeroen's suggestion instead of trying to trick framework internals? Ernesto On Thu, Jan 21, 2010 at 11:17 AM, Carlo Camerino carlo.camer...@gmail.comwrote: hi, i believe this is due to the fact that wicket has synchronized page maps for access. do you think it is safe to remove it? what are the precautions when removing synchronized for wicket page maps? Is there a setting that I could use to disable this? Thanks A Lot Carlo On Thu, Jan 21, 2010 at 5:13 PM, Jeroen Steenbeeke j.steenbeeke.ml@ gmail.com wrote: I'd suggest running the transaction in the background (separate thread) and using an AjaxStoppableSelfUpdatingTimer to periodically check if the thread was finished and only do the redirect after finishing. This way, the pagemap remains unlocked. 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: Hi, if any of you could help, we have a problem in one of our wicket installations. We have a system that connects to another system. Sometimes the system's reply lasts for more than a minute. Wicket is having problem with regards to the page map being locked. I click for example on a page to request for a balance, the host doesn't return anymessage for about 1 minute or more. So instead of waiting, i will try to move to another page, problem is... i can't switch pages. wicket seems to have locked the page map and i can't get out or even logout. After a minute, an exception is thrown saying that the page map may have been locked for more than 1 minute is there any way around this? Thanks A Lot Carlo -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page Map Is Locked, Can't Switch Pages When A Transaction Is Ongoing
If you do it my way, then you don't have to 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: is there anyway that i could just kill the previous thread? On Thu, Jan 21, 2010 at 3:05 AM, Carlo Camerino carlo.camer...@gmail.comwrote: if i can't do this, is there anyway that i could at least increase the timeout of the pagemap to greater than 1 minute? 1 minute would be too little i guess On Thu, Jan 21, 2010 at 2:34 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Why not follow the Jeroen's suggestion instead of trying to trick framework internals? Ernesto On Thu, Jan 21, 2010 at 11:17 AM, Carlo Camerino carlo.camer...@gmail.comwrote: hi, i believe this is due to the fact that wicket has synchronized page maps for access. do you think it is safe to remove it? what are the precautions when removing synchronized for wicket page maps? Is there a setting that I could use to disable this? Thanks A Lot Carlo On Thu, Jan 21, 2010 at 5:13 PM, Jeroen Steenbeeke j.steenbeeke.ml@ gmail.com wrote: I'd suggest running the transaction in the background (separate thread) and using an AjaxStoppableSelfUpdatingTimer to periodically check if the thread was finished and only do the redirect after finishing. This way, the pagemap remains unlocked. 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: Hi, if any of you could help, we have a problem in one of our wicket installations. We have a system that connects to another system. Sometimes the system's reply lasts for more than a minute. Wicket is having problem with regards to the page map being locked. I click for example on a page to request for a balance, the host doesn't return anymessage for about 1 minute or more. So instead of waiting, i will try to move to another page, problem is... i can't switch pages. wicket seems to have locked the page map and i can't get out or even logout. After a minute, an exception is thrown saying that the page map may have been locked for more than 1 minute is there any way around this? Thanks A Lot Carlo -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page Map Is Locked, Can't Switch Pages When A Transaction Is Ongoing
Read up on Future's in the java.concurrent packages. They might provide you with a good way to work with answers that lie in the future... Martijn On Thu, Jan 21, 2010 at 12:14 PM, Carlo Camerino carlo.camer...@gmail.com wrote: is there anyway that i could just kill the previous thread? On Thu, Jan 21, 2010 at 3:05 AM, Carlo Camerino carlo.camer...@gmail.comwrote: if i can't do this, is there anyway that i could at least increase the timeout of the pagemap to greater than 1 minute? 1 minute would be too little i guess On Thu, Jan 21, 2010 at 2:34 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Why not follow the Jeroen's suggestion instead of trying to trick framework internals? Ernesto On Thu, Jan 21, 2010 at 11:17 AM, Carlo Camerino carlo.camer...@gmail.comwrote: hi, i believe this is due to the fact that wicket has synchronized page maps for access. do you think it is safe to remove it? what are the precautions when removing synchronized for wicket page maps? Is there a setting that I could use to disable this? Thanks A Lot Carlo On Thu, Jan 21, 2010 at 5:13 PM, Jeroen Steenbeeke j.steenbeeke.ml@ gmail.com wrote: I'd suggest running the transaction in the background (separate thread) and using an AjaxStoppableSelfUpdatingTimer to periodically check if the thread was finished and only do the redirect after finishing. This way, the pagemap remains unlocked. 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: Hi, if any of you could help, we have a problem in one of our wicket installations. We have a system that connects to another system. Sometimes the system's reply lasts for more than a minute. Wicket is having problem with regards to the page map being locked. I click for example on a page to request for a balance, the host doesn't return anymessage for about 1 minute or more. So instead of waiting, i will try to move to another page, problem is... i can't switch pages. wicket seems to have locked the page map and i can't get out or even logout. After a minute, an exception is thrown saying that the page map may have been locked for more than 1 minute is there any way around this? Thanks A Lot Carlo -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page Map Is Locked, Can't Switch Pages When A Transaction Is Ongoing
Carlo, If you need some code illustrating how to do this, I can mail you the source code of a similar use case: creating a lengthy PDF and providing users with progress feedback... It uses the same approach Jeroen mentioned. Best, Ernesto On Thu, Jan 21, 2010 at 12:21 PM, Jeroen Steenbeeke j.steenbeeke.ml@ gmail.com wrote: If you do it my way, then you don't have to 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: is there anyway that i could just kill the previous thread? On Thu, Jan 21, 2010 at 3:05 AM, Carlo Camerino carlo.camer...@gmail.comwrote: if i can't do this, is there anyway that i could at least increase the timeout of the pagemap to greater than 1 minute? 1 minute would be too little i guess On Thu, Jan 21, 2010 at 2:34 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Why not follow the Jeroen's suggestion instead of trying to trick framework internals? Ernesto On Thu, Jan 21, 2010 at 11:17 AM, Carlo Camerino carlo.camer...@gmail.comwrote: hi, i believe this is due to the fact that wicket has synchronized page maps for access. do you think it is safe to remove it? what are the precautions when removing synchronized for wicket page maps? Is there a setting that I could use to disable this? Thanks A Lot Carlo On Thu, Jan 21, 2010 at 5:13 PM, Jeroen Steenbeeke j.steenbeeke.ml@ gmail.com wrote: I'd suggest running the transaction in the background (separate thread) and using an AjaxStoppableSelfUpdatingTimer to periodically check if the thread was finished and only do the redirect after finishing. This way, the pagemap remains unlocked. 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: Hi, if any of you could help, we have a problem in one of our wicket installations. We have a system that connects to another system. Sometimes the system's reply lasts for more than a minute. Wicket is having problem with regards to the page map being locked. I click for example on a page to request for a balance, the host doesn't return anymessage for about 1 minute or more. So instead of waiting, i will try to move to another page, problem is... i can't switch pages. wicket seems to have locked the page map and i can't get out or even logout. After a minute, an exception is thrown saying that the page map may have been locked for more than 1 minute is there any way around this? Thanks A Lot Carlo -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page Map Is Locked, Can't Switch Pages When A Transaction Is Ongoing
hi, please do. thanks a lot! On Thu, Jan 21, 2010 at 3:38 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Carlo, If you need some code illustrating how to do this, I can mail you the source code of a similar use case: creating a lengthy PDF and providing users with progress feedback... It uses the same approach Jeroen mentioned. Best, Ernesto On Thu, Jan 21, 2010 at 12:21 PM, Jeroen Steenbeeke j.steenbeeke.ml@ gmail.com wrote: If you do it my way, then you don't have to 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: is there anyway that i could just kill the previous thread? On Thu, Jan 21, 2010 at 3:05 AM, Carlo Camerino carlo.camer...@gmail.comwrote: if i can't do this, is there anyway that i could at least increase the timeout of the pagemap to greater than 1 minute? 1 minute would be too little i guess On Thu, Jan 21, 2010 at 2:34 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Why not follow the Jeroen's suggestion instead of trying to trick framework internals? Ernesto On Thu, Jan 21, 2010 at 11:17 AM, Carlo Camerino carlo.camer...@gmail.comwrote: hi, i believe this is due to the fact that wicket has synchronized page maps for access. do you think it is safe to remove it? what are the precautions when removing synchronized for wicket page maps? Is there a setting that I could use to disable this? Thanks A Lot Carlo On Thu, Jan 21, 2010 at 5:13 PM, Jeroen Steenbeeke j.steenbeeke.ml@ gmail.com wrote: I'd suggest running the transaction in the background (separate thread) and using an AjaxStoppableSelfUpdatingTimer to periodically check if the thread was finished and only do the redirect after finishing. This way, the pagemap remains unlocked. 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: Hi, if any of you could help, we have a problem in one of our wicket installations. We have a system that connects to another system. Sometimes the system's reply lasts for more than a minute. Wicket is having problem with regards to the page map being locked. I click for example on a page to request for a balance, the host doesn't return anymessage for about 1 minute or more. So instead of waiting, i will try to move to another page, problem is... i can't switch pages. wicket seems to have locked the page map and i can't get out or even logout. After a minute, an exception is thrown saying that the page map may have been locked for more than 1 minute is there any way around this? Thanks A Lot Carlo -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page Map Is Locked, Can't Switch Pages When A Transaction Is Ongoing
where do i get this class? AjaxStoppableSelfUpdatingTimer ? On Thu, Jan 21, 2010 at 3:43 AM, Carlo Camerino carlo.camer...@gmail.comwrote: hi, please do. thanks a lot! On Thu, Jan 21, 2010 at 3:38 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Carlo, If you need some code illustrating how to do this, I can mail you the source code of a similar use case: creating a lengthy PDF and providing users with progress feedback... It uses the same approach Jeroen mentioned. Best, Ernesto On Thu, Jan 21, 2010 at 12:21 PM, Jeroen Steenbeeke j.steenbeeke.ml@ gmail.com wrote: If you do it my way, then you don't have to 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: is there anyway that i could just kill the previous thread? On Thu, Jan 21, 2010 at 3:05 AM, Carlo Camerino carlo.camer...@gmail.comwrote: if i can't do this, is there anyway that i could at least increase the timeout of the pagemap to greater than 1 minute? 1 minute would be too little i guess On Thu, Jan 21, 2010 at 2:34 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Why not follow the Jeroen's suggestion instead of trying to trick framework internals? Ernesto On Thu, Jan 21, 2010 at 11:17 AM, Carlo Camerino carlo.camer...@gmail.comwrote: hi, i believe this is due to the fact that wicket has synchronized page maps for access. do you think it is safe to remove it? what are the precautions when removing synchronized for wicket page maps? Is there a setting that I could use to disable this? Thanks A Lot Carlo On Thu, Jan 21, 2010 at 5:13 PM, Jeroen Steenbeeke j.steenbeeke.ml@ gmail.com wrote: I'd suggest running the transaction in the background (separate thread) and using an AjaxStoppableSelfUpdatingTimer to periodically check if the thread was finished and only do the redirect after finishing. This way, the pagemap remains unlocked. 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: Hi, if any of you could help, we have a problem in one of our wicket installations. We have a system that connects to another system. Sometimes the system's reply lasts for more than a minute. Wicket is having problem with regards to the page map being locked. I click for example on a page to request for a balance, the host doesn't return anymessage for about 1 minute or more. So instead of waiting, i will try to move to another page, problem is... i can't switch pages. wicket seems to have locked the page map and i can't get out or even logout. After a minute, an exception is thrown saying that the page map may have been locked for more than 1 minute is there any way around this? Thanks A Lot Carlo -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page Map Is Locked, Can't Switch Pages When A Transaction Is Ongoing
My apologies, that is a class we use internally. Must have confused it with some basic wicket class. You can use AbstractAjaxTimerBehavior to similar effect. Just override the onTimer method 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: where do i get this class? AjaxStoppableSelfUpdatingTimer ? On Thu, Jan 21, 2010 at 3:43 AM, Carlo Camerino carlo.camer...@gmail.comwrote: hi, please do. thanks a lot! On Thu, Jan 21, 2010 at 3:38 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Carlo, If you need some code illustrating how to do this, I can mail you the source code of a similar use case: creating a lengthy PDF and providing users with progress feedback... It uses the same approach Jeroen mentioned. Best, Ernesto On Thu, Jan 21, 2010 at 12:21 PM, Jeroen Steenbeeke j.steenbeeke.ml@ gmail.com wrote: If you do it my way, then you don't have to 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: is there anyway that i could just kill the previous thread? On Thu, Jan 21, 2010 at 3:05 AM, Carlo Camerino carlo.camer...@gmail.comwrote: if i can't do this, is there anyway that i could at least increase the timeout of the pagemap to greater than 1 minute? 1 minute would be too little i guess On Thu, Jan 21, 2010 at 2:34 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Why not follow the Jeroen's suggestion instead of trying to trick framework internals? Ernesto On Thu, Jan 21, 2010 at 11:17 AM, Carlo Camerino carlo.camer...@gmail.comwrote: hi, i believe this is due to the fact that wicket has synchronized page maps for access. do you think it is safe to remove it? what are the precautions when removing synchronized for wicket page maps? Is there a setting that I could use to disable this? Thanks A Lot Carlo On Thu, Jan 21, 2010 at 5:13 PM, Jeroen Steenbeeke j.steenbeeke.ml@ gmail.com wrote: I'd suggest running the transaction in the background (separate thread) and using an AjaxStoppableSelfUpdatingTimer to periodically check if the thread was finished and only do the redirect after finishing. This way, the pagemap remains unlocked. 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: Hi, if any of you could help, we have a problem in one of our wicket installations. We have a system that connects to another system. Sometimes the system's reply lasts for more than a minute. Wicket is having problem with regards to the page map being locked. I click for example on a page to request for a balance, the host doesn't return anymessage for about 1 minute or more. So instead of waiting, i will try to move to another page, problem is... i can't switch pages. wicket seems to have locked the page map and i can't get out or even logout. After a minute, an exception is thrown saying that the page map may have been locked for more than 1 minute is there any way around this? Thanks A Lot Carlo -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page Map Is Locked, Can't Switch Pages When A Transaction Is Ongoing
no prob. i was thinking, if was going to do timerbehaior approach, might as well go with comet have any of you guys used comet for this kind of situation before? thanks carlo On Thu, Jan 21, 2010 at 3:54 AM, Jeroen Steenbeeke j.steenbeeke.ml@ gmail.com wrote: My apologies, that is a class we use internally. Must have confused it with some basic wicket class. You can use AbstractAjaxTimerBehavior to similar effect. Just override the onTimer method 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: where do i get this class? AjaxStoppableSelfUpdatingTimer ? On Thu, Jan 21, 2010 at 3:43 AM, Carlo Camerino carlo.camer...@gmail.comwrote: hi, please do. thanks a lot! On Thu, Jan 21, 2010 at 3:38 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Carlo, If you need some code illustrating how to do this, I can mail you the source code of a similar use case: creating a lengthy PDF and providing users with progress feedback... It uses the same approach Jeroen mentioned. Best, Ernesto On Thu, Jan 21, 2010 at 12:21 PM, Jeroen Steenbeeke j.steenbeeke.ml@ gmail.com wrote: If you do it my way, then you don't have to 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: is there anyway that i could just kill the previous thread? On Thu, Jan 21, 2010 at 3:05 AM, Carlo Camerino carlo.camer...@gmail.comwrote: if i can't do this, is there anyway that i could at least increase the timeout of the pagemap to greater than 1 minute? 1 minute would be too little i guess On Thu, Jan 21, 2010 at 2:34 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Why not follow the Jeroen's suggestion instead of trying to trick framework internals? Ernesto On Thu, Jan 21, 2010 at 11:17 AM, Carlo Camerino carlo.camer...@gmail.comwrote: hi, i believe this is due to the fact that wicket has synchronized page maps for access. do you think it is safe to remove it? what are the precautions when removing synchronized for wicket page maps? Is there a setting that I could use to disable this? Thanks A Lot Carlo On Thu, Jan 21, 2010 at 5:13 PM, Jeroen Steenbeeke j.steenbeeke.ml@ gmail.com wrote: I'd suggest running the transaction in the background (separate thread) and using an AjaxStoppableSelfUpdatingTimer to periodically check if the thread was finished and only do the redirect after finishing. This way, the pagemap remains unlocked. 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: Hi, if any of you could help, we have a problem in one of our wicket installations. We have a system that connects to another system. Sometimes the system's reply lasts for more than a minute. Wicket is having problem with regards to the page map being locked. I click for example on a page to request for a balance, the host doesn't return anymessage for about 1 minute or more. So instead of waiting, i will try to move to another page, problem is... i can't switch pages. wicket seems to have locked the page map and i can't get out or even logout. After a minute, an exception is thrown saying that the page map may have been locked for more than 1 minute is there any way around this? Thanks A Lot Carlo -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page Map Is Locked, Can't Switch Pages When A Transaction Is Ongoing
Afraid not, but I believe wicketstuff-push is integrated with comet. 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: no prob. i was thinking, if was going to do timerbehaior approach, might as well go with comet have any of you guys used comet for this kind of situation before? thanks carlo On Thu, Jan 21, 2010 at 3:54 AM, Jeroen Steenbeeke j.steenbeeke.ml@ gmail.com wrote: My apologies, that is a class we use internally. Must have confused it with some basic wicket class. You can use AbstractAjaxTimerBehavior to similar effect. Just override the onTimer method 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: where do i get this class? AjaxStoppableSelfUpdatingTimer ? On Thu, Jan 21, 2010 at 3:43 AM, Carlo Camerino carlo.camer...@gmail.comwrote: hi, please do. thanks a lot! On Thu, Jan 21, 2010 at 3:38 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Carlo, If you need some code illustrating how to do this, I can mail you the source code of a similar use case: creating a lengthy PDF and providing users with progress feedback... It uses the same approach Jeroen mentioned. Best, Ernesto On Thu, Jan 21, 2010 at 12:21 PM, Jeroen Steenbeeke j.steenbeeke.ml@ gmail.com wrote: If you do it my way, then you don't have to 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: is there anyway that i could just kill the previous thread? On Thu, Jan 21, 2010 at 3:05 AM, Carlo Camerino carlo.camer...@gmail.comwrote: if i can't do this, is there anyway that i could at least increase the timeout of the pagemap to greater than 1 minute? 1 minute would be too little i guess On Thu, Jan 21, 2010 at 2:34 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Why not follow the Jeroen's suggestion instead of trying to trick framework internals? Ernesto On Thu, Jan 21, 2010 at 11:17 AM, Carlo Camerino carlo.camer...@gmail.comwrote: hi, i believe this is due to the fact that wicket has synchronized page maps for access. do you think it is safe to remove it? what are the precautions when removing synchronized for wicket page maps? Is there a setting that I could use to disable this? Thanks A Lot Carlo On Thu, Jan 21, 2010 at 5:13 PM, Jeroen Steenbeeke j.steenbeeke.ml@ gmail.com wrote: I'd suggest running the transaction in the background (separate thread) and using an AjaxStoppableSelfUpdatingTimer to periodically check if the thread was finished and only do the redirect after finishing. This way, the pagemap remains unlocked. 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: Hi, if any of you could help, we have a problem in one of our wicket installations. We have a system that connects to another system. Sometimes the system's reply lasts for more than a minute. Wicket is having problem with regards to the page map being locked. I click for example on a page to request for a balance, the host doesn't return anymessage for about 1 minute or more. So instead of waiting, i will try to move to another page, problem is... i can't switch pages. wicket seems to have locked the page map and i can't get out or even logout. After a minute, an exception is thrown saying that the page map may have been locked for more than 1 minute is there any way around this? Thanks A Lot Carlo -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page Map Is Locked, Can't Switch Pages When A Transaction Is Ongoing
I would use timer as comet introduces additional dependencies... I have used comet-push for other things but not via wicket-stuff project. Thus, I can't offer any help. Ernesto On Thu, Jan 21, 2010 at 1:07 PM, Carlo Camerino carlo.camer...@gmail.comwrote: no prob. i was thinking, if was going to do timerbehaior approach, might as well go with comet have any of you guys used comet for this kind of situation before? thanks carlo On Thu, Jan 21, 2010 at 3:54 AM, Jeroen Steenbeeke j.steenbeeke.ml@ gmail.com wrote: My apologies, that is a class we use internally. Must have confused it with some basic wicket class. You can use AbstractAjaxTimerBehavior to similar effect. Just override the onTimer method 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: where do i get this class? AjaxStoppableSelfUpdatingTimer ? On Thu, Jan 21, 2010 at 3:43 AM, Carlo Camerino carlo.camer...@gmail.comwrote: hi, please do. thanks a lot! On Thu, Jan 21, 2010 at 3:38 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Carlo, If you need some code illustrating how to do this, I can mail you the source code of a similar use case: creating a lengthy PDF and providing users with progress feedback... It uses the same approach Jeroen mentioned. Best, Ernesto On Thu, Jan 21, 2010 at 12:21 PM, Jeroen Steenbeeke j.steenbeeke.ml @ gmail.com wrote: If you do it my way, then you don't have to 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: is there anyway that i could just kill the previous thread? On Thu, Jan 21, 2010 at 3:05 AM, Carlo Camerino carlo.camer...@gmail.comwrote: if i can't do this, is there anyway that i could at least increase the timeout of the pagemap to greater than 1 minute? 1 minute would be too little i guess On Thu, Jan 21, 2010 at 2:34 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Why not follow the Jeroen's suggestion instead of trying to trick framework internals? Ernesto On Thu, Jan 21, 2010 at 11:17 AM, Carlo Camerino carlo.camer...@gmail.comwrote: hi, i believe this is due to the fact that wicket has synchronized page maps for access. do you think it is safe to remove it? what are the precautions when removing synchronized for wicket page maps? Is there a setting that I could use to disable this? Thanks A Lot Carlo On Thu, Jan 21, 2010 at 5:13 PM, Jeroen Steenbeeke j.steenbeeke.ml@ gmail.com wrote: I'd suggest running the transaction in the background (separate thread) and using an AjaxStoppableSelfUpdatingTimer to periodically check if the thread was finished and only do the redirect after finishing. This way, the pagemap remains unlocked. 2010/1/21 Carlo Camerino carlo.camer...@gmail.com: Hi, if any of you could help, we have a problem in one of our wicket installations. We have a system that connects to another system. Sometimes the system's reply lasts for more than a minute. Wicket is having problem with regards to the page map being locked. I click for example on a page to request for a balance, the host doesn't return anymessage for about 1 minute or more. So instead of waiting, i will try to move to another page, problem is... i can't switch pages. wicket seems to have locked the page map and i can't get out or even logout. After a minute, an exception is thrown saying that the page map may have been locked for more than 1 minute is there any way around this? Thanks A Lot Carlo -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeroen Steenbeeke www.fortuityframework.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org