Re: [Wicket-user] Tracking session expire exception
Is anything new about this? I also want to know how it is about this issue : https://issues.apache.org/jira/browse/WICKET-206 Thanks. Marc On 1/22/07, Johan Compagner [EMAIL PROTECTED] wrote: yes i see it, will look it at asap On 1/22/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: I think the mail didn't pass through sf.net. So, I try again. Marc On 1/16/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Here is the example. Open two tabs with the same page, in each one of them, click on page 2, and see the page map being the same :) Marc P.S. : I included only the source directory since it would be too big to include everything! Just change the src directory of a quickstart project. On 1/16/07, Johan Compagner [EMAIL PROTECTED] wrote: Now, the output look like this : I access the index page first time : index Page map is :null correct. I access the index page from another tab : index Page map is :null index Page map is :wicket-0 correct. First is rendered in default pagemap. Then we detect a new window and do a bookmarkable redirect to a wicket generated pagemap. (wicket-0) I access Page2 from the whatever link (I mean, the two tabs have the same result : Page 2 map is :null When you click on the link in the window that has wicket=0 pagemap It should give you that pagemap there. If that is not the case can you make a quickstart app? johan - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tracking session expire exception
Ok, I got news about the first page expired problem. Problems with page map that I said before and in the JIRA issue are still there, but the page expire is gone. Here is why : In the pop up, I created a bookmarkable page link like this : String parentPageMap = wicket:default; if(pp != null) { parentPageMap = (String)pp.get (parent_page_map); } Class pageClass = SomePage.class; BookmarkablePageLink bpl = new BookmarkablePageLink(link, pageClass); bpl.setPageMap (PageMap.forName (parentPageMap)); bpl.add(new SimpleAttributeModifier(target, parentPageMap)); add(bpl); The problem with this, it is that it create a new page map. So, because there is a new pagemap, the session expire when I try to access things from the session. I posted because it is pratical to have an archive that describe solutions found! :) It was entirely my fault, but, anyway! On 1/24/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Is anything new about this? I also want to know how it is about this issue : https://issues.apache.org/jira/browse/WICKET-206 Thanks. Marc On 1/22/07, Johan Compagner [EMAIL PROTECTED] wrote: yes i see it, will look it at asap On 1/22/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: I think the mail didn't pass through sf.net. So, I try again. Marc On 1/16/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Here is the example. Open two tabs with the same page, in each one of them, click on page 2, and see the page map being the same :) Marc P.S. : I included only the source directory since it would be too big to include everything! Just change the src directory of a quickstart project. On 1/16/07, Johan Compagner [EMAIL PROTECTED] wrote: Now, the output look like this : I access the index page first time : index Page map is :null correct. I access the index page from another tab : index Page map is :null index Page map is :wicket-0 correct. First is rendered in default pagemap. Then we detect a new window and do a bookmarkable redirect to a wicket generated pagemap. (wicket-0) I access Page2 from the whatever link (I mean, the two tabs have the same result : Page 2 map is :null When you click on the link in the window that has wicket=0 pagemap It should give you that pagemap there. If that is not the case can you make a quickstart app? johan - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tracking session expire exception
On 1/24/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Ok, I got news about the first page expired problem. Problems with page map that I said before and in the JIRA issue are still there, but the page expire is gone. Here is why : In the pop up, I created a bookmarkable page link like this : String parentPageMap = wicket:default; if(pp != null) { parentPageMap = (String)pp.get (parent_page_map); } Class pageClass = SomePage.class; BookmarkablePageLink bpl = new BookmarkablePageLink(link, pageClass); bpl.setPageMap (PageMap.forName (parentPageMap)); bpl.add(new SimpleAttributeModifier(target, parentPageMap)); add(bpl); The problem with this, it is that it create a new page map. So, because there is a new pagemap, the session expire when I try to access things from the session. i am lost with that last sentence, what do you mean with this? When does the session expire? and what is this code: if(pp != null) { parentPageMap = (String)pp.get (parent_page_map); } johan - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tracking session expire exception
pp refer to page parameters that I get in the pop up Here is the context : The bookmarkable page link will be open in the window that open the pop up. This code is in the pop-up. The problem is when I have done that : bpl.setPageMap (PageMap.forName (parentPageMap)); It will create a new page map wicket:default. This will lead the main window to reload correctly with the correct page class, but it will be linked with the new page map named : wicket:default. So, the correct way of doing this, it is that when the pagemap name is null, fetch the pagemap using null, but window.name value will be wicket:default, so, we have to set the target value to something else than the pagemap name which is null. It is hard to explain the why of that, but that is the problem I got. Sorry for being unclear. Marc On 1/24/07, Johan Compagner [EMAIL PROTECTED] wrote: On 1/24/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Ok, I got news about the first page expired problem. Problems with page map that I said before and in the JIRA issue are still there, but the page expire is gone. Here is why : In the pop up, I created a bookmarkable page link like this : String parentPageMap = wicket:default; if(pp != null) { parentPageMap = (String)pp.get (parent_page_map ); } Class pageClass = SomePage.class; BookmarkablePageLink bpl = new BookmarkablePageLink(link, pageClass); bpl.setPageMap (PageMap.forName (parentPageMap)); bpl.add(new SimpleAttributeModifier(target, parentPageMap)); add(bpl); The problem with this, it is that it create a new page map. So, because there is a new pagemap, the session expire when I try to access things from the session. i am lost with that last sentence, what do you mean with this? When does the session expire? and what is this code: if(pp != null) { parentPageMap = ( String)pp.get (parent_page_map); } johan - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tracking session expire exception
Why not do it a bit more reliable? for example when you go back use a piece of javascript: window.opener.location.href = bookmarkable url or get the window name from the window.opener.name? (in the popup or when you open the popup) and use that as the target. The only problem that could be is that the pagemap name of the generated bookmarkable url must use the pagemap of the opener page, instead of the current popup page. Then it should work fine. johan On 1/24/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: pp refer to page parameters that I get in the pop up Here is the context : The bookmarkable page link will be open in the window that open the pop up. This code is in the pop-up. The problem is when I have done that : bpl.setPageMap (PageMap.forName (parentPageMap)); It will create a new page map wicket:default. This will lead the main window to reload correctly with the correct page class, but it will be linked with the new page map named : wicket:default. So, the correct way of doing this, it is that when the pagemap name is null, fetch the pagemap using null, but window.name value will be wicket:default, so, we have to set the target value to something else than the pagemap name which is null. It is hard to explain the why of that, but that is the problem I got. Sorry for being unclear. Marc On 1/24/07, Johan Compagner [EMAIL PROTECTED] wrote: On 1/24/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Ok, I got news about the first page expired problem. Problems with page map that I said before and in the JIRA issue are still there, but the page expire is gone. Here is why : In the pop up, I created a bookmarkable page link like this : String parentPageMap = wicket:default; if(pp != null) { parentPageMap = (String)pp.get (parent_page_map ); } Class pageClass = SomePage.class; BookmarkablePageLink bpl = new BookmarkablePageLink(link, pageClass); bpl.setPageMap (PageMap.forName (parentPageMap)); bpl.add(new SimpleAttributeModifier(target, parentPageMap)); add(bpl); The problem with this, it is that it create a new page map. So, because there is a new pagemap, the session expire when I try to access things from the session. i am lost with that last sentence, what do you mean with this? When does the session expire? and what is this code: if(pp != null ) { parentPageMap = ( String)pp.get (parent_page_map); } johan - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tracking session expire exception
I think the mail didn't pass through sf.net. So, I try again. Marc On 1/16/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Here is the example. Open two tabs with the same page, in each one of them, click on page 2, and see the page map being the same :) Marc P.S. : I included only the source directory since it would be too big to include everything! Just change the src directory of a quickstart project. On 1/16/07, Johan Compagner [EMAIL PROTECTED] wrote: Now, the output look like this : I access the index page first time : index Page map is :null correct. I access the index page from another tab : index Page map is :null index Page map is :wicket-0 correct. First is rendered in default pagemap. Then we detect a new window and do a bookmarkable redirect to a wicket generated pagemap. (wicket-0) I access Page2 from the whatever link (I mean, the two tabs have the same result : Page 2 map is :null When you click on the link in the window that has wicket=0 pagemap It should give you that pagemap there. If that is not the case can you make a quickstart app? johan - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user page_map_src.iamzip Description: Binary data - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tracking session expire exception
yes i see it, will look it at asap On 1/22/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: I think the mail didn't pass through sf.net. So, I try again. Marc On 1/16/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Here is the example. Open two tabs with the same page, in each one of them, click on page 2, and see the page map being the same :) Marc P.S. : I included only the source directory since it would be too big to include everything! Just change the src directory of a quickstart project. On 1/16/07, Johan Compagner [EMAIL PROTECTED] wrote: Now, the output look like this : I access the index page first time : index Page map is :null correct. I access the index page from another tab : index Page map is :null index Page map is :wicket-0 correct. First is rendered in default pagemap. Then we detect a new window and do a bookmarkable redirect to a wicket generated pagemap. (wicket-0) I access Page2 from the whatever link (I mean, the two tabs have the same result : Page 2 map is :null When you click on the link in the window that has wicket=0 pagemap It should give you that pagemap there. If that is not the case can you make a quickstart app? johan - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tracking session expire exception
Hmm I seem to be lost too. We JUST used the page map to give us previous pages by having a back button, that worked fine. But if we clear the pagemap and request the previous page that will give and page expired exception. Hmm In order to track expired sessions you could attach a logger and catch all expired exceptions at least that will give you an idea of if its only a single page that causes the problem. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc-Andre Houle Sent: 15. januar 2007 22:05 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Tracking session expire exception Let's make a demo of what I presently don't understand : In a quickstart, have a page that only do this : System.out.println (index Page map is : + getPageMap ().getName ()); add(new Link(page2) { public void onClick () { setResponsePage(Page2.class); } }); In the page 2, the only thing you do is : System.out.println (Page 2 map is : + getPageMap ().getName ()); Now, the output look like this : I access the index page first time : index Page map is :null I access the index page from another tab : index Page map is :null index Page map is :wicket-0 I access Page2 from the whatever link (I mean, the two tabs have the same result : Page 2 map is :null So, now, I confused, what is this PageMap suppose to say in this case? Two window, same Pagemap and than, same window.name (Always this same problem about window name in the pop up!)... Sorry, I feel like being an asshole always asking for the same thing. If I'm not getting it with this, I just tell my boss to put this feature up is ass and I'll do a search result ala google! :) Marc On 1/15/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: I don't understand how this can help. Can you give me an example? And BTW, is there somewhere documentation on PageMap. I'm not sure I really grasp all the concept aroud this. I tough that page map made sure that in one instance in your application server, you have only one name/session pair. In my application, if I create new firefox tabs, it will have the same page map name (which is null). Also, I though that the window.name value was always synced with the pagemap name. In fact, more I advance, less I'm sure to know :) Marc On 1/15/07, Nick Heudecker [EMAIL PROTECTED] wrote: You can subclass HttpSessionStore and provide your own implementation of onUnbind(String). Then, use your new HttpSessionStore from your application subclass: public ISessionStore newSessionStore() { return new MySessionStore(); } On 1/15/07, Marc-Andre Houle [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I think I found something. first of all : Pop-up communication with pagemap is a nightmare. I think the problem was that it loaded using a specific pagemap in the correct window but when trying to use ajaxLink, it didn't use the correct page map and then failed to find the associated session. (Not sure at all...) The solution I found presently to avoid the session expire is to use the bookmarkable link without passing to it a pagemap and just setting the target field of the link to the pagemap name. Now, the problem is : when using the same instance of Firefox, every time I load the application, it always use the same window name, which is wicket:default. Is it possible to set a particular pagemap when the user login or set a window.name when the user log in? Marc On 1/15/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Damn It, I forgot to past thing in the post Before loading the pop up : 2007-01-15 10:36:51,586 DEBUG ( http-0.0.0.0-18080-3) [Session ] updateSession(): Attaching session to PageMap [PageMap name=popuppagemap, access=[]] 2007-01-15 10:36:51,586 DEBUG ( http-0.0.0.0-18080-3) [Session ] updateSession(): Attaching session to PageMap [PageMap name=null, access=[[Access id=0, version=0], [Access id=1, version=0]]] After loading the pop-up : 2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4) [Session ] updateSession(): Attaching session to PageMap [PageMap name=popuppagemap, access=[]] 2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4) [Session ] updateSession(): Attaching session to PageMap [PageMap name=null, access=[[Access id=0, version=0], [Access id=1, version=0]]] 2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4 ) [Session ] updateSession(): Attaching session to PageMap [PageMap name=wicket:default, access=[]] I think my problem is about page-map and session, but I'm not sure of anything Marc On 1/15/07, Marc-Andre Houle [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: While asking this, I found maybe why the page expire, but not sure. It is due
Re: [Wicket-user] Tracking session expire exception
Hmm, we had to track something similar. Could you describe what happens? Our thing was something that was caused by clearing the pagemap and the same time referencing to the cleared page. Also we have a problem where we loose our session's id. Regards Nino From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc-Andre Houle Sent: 15. januar 2007 15:35 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] Tracking session expire exception Is there somebody here that had to track in his application why the session expire? I'm in need of some hint on how to efficiently find the damn thing that have made the session expire abruptly. Surely somebody have done something about that! :) Marc - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tracking session expire exception
While asking this, I found maybe why the page expire, but not sure. It is due to the use of pagemap to communicate from a pop-up to the current window. I'll try to explain what is happening : I log in my application, I click the link to open the pop-up. When clicking on the link, I'm tring to add a pageparameters to the pop-up to pass the pagemap name. Presently, the log say that about updating pagemap : In the pop up, I add a link to update the main window to display something different. I get the page map from parameters. If page map is null, it is because this session currently does not have a name and by default, the first name used by wicket is : wicket-default. If there is nothing, this is what I enter. Then, when I click this link, it load the page in the correct window. This is what is printed in the log file when updating page map : Then, if I click on normal bookmarkable link, it work, but the first ajaxlink I click will made the session to expire. Nothing can be done, it even didn't pass in the onClick method of the ajaxLink. There is no other error in the log, only loadingthe expired page Marc On 1/15/07, Nino Wael [EMAIL PROTECTED] wrote: Hmm, we had to track something similar. Could you describe what happens? Our thing was something that was caused by clearing the pagemap and the same time referencing to the cleared page. Also we have a problem where we loose our session's id. Regards Nino -- *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *On Behalf Of *Marc-Andre Houle *Sent:* 15. januar 2007 15:35 *To:* wicket-user@lists.sourceforge.net *Subject:* [Wicket-user] Tracking session expire exception Is there somebody here that had to track in his application why the session expire? I'm in need of some hint on how to efficiently find the damn thing that have made the session expire abruptly. Surely somebody have done something about that! :) Marc - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tracking session expire exception
Damn It, I forgot to past thing in the post Before loading the pop up : 2007-01-15 10:36:51,586 DEBUG ( http-0.0.0.0-18080-3) [Session ] updateSession(): Attaching session to PageMap [PageMap name=popuppagemap, access=[]] 2007-01-15 10:36:51,586 DEBUG ( http-0.0.0.0-18080-3) [Session ] updateSession(): Attaching session to PageMap [PageMap name=null, access=[[Access id=0, version=0], [Access id=1, version=0]]] After loading the pop-up : 2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4) [Session ] updateSession(): Attaching session to PageMap [PageMap name=popuppagemap, access=[]] 2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4) [Session ] updateSession(): Attaching session to PageMap [PageMap name=null, access=[[Access id=0, version=0], [Access id=1, version=0]]] 2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4) [Session ] updateSession(): Attaching session to PageMap [PageMap name=wicket:default, access=[]] I think my problem is about page-map and session, but I'm not sure of anything Marc On 1/15/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: While asking this, I found maybe why the page expire, but not sure. It is due to the use of pagemap to communicate from a pop-up to the current window. I'll try to explain what is happening : I log in my application, I click the link to open the pop-up. When clicking on the link, I'm tring to add a pageparameters to the pop-up to pass the pagemap name. Presently, the log say that about updating pagemap : In the pop up, I add a link to update the main window to display something different. I get the page map from parameters. If page map is null, it is because this session currently does not have a name and by default, the first name used by wicket is : wicket-default. If there is nothing, this is what I enter. Then, when I click this link, it load the page in the correct window. This is what is printed in the log file when updating page map : Then, if I click on normal bookmarkable link, it work, but the first ajaxlink I click will made the session to expire. Nothing can be done, it even didn't pass in the onClick method of the ajaxLink. There is no other error in the log, only loadingthe expired page Marc On 1/15/07, Nino Wael [EMAIL PROTECTED] wrote: Hmm, we had to track something similar. Could you describe what happens? Our thing was something that was caused by clearing the pagemap and the same time referencing to the cleared page. Also we have a problem where we loose our session's id. Regards Nino -- *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] * On Behalf Of *Marc-Andre Houle *Sent:* 15. januar 2007 15:35 *To:* wicket-user@lists.sourceforge.net *Subject:* [Wicket-user] Tracking session expire exception Is there somebody here that had to track in his application why the session expire? I'm in need of some hint on how to efficiently find the damn thing that have made the session expire abruptly. Surely somebody have done something about that! :) Marc - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tracking session expire exception
I think I found something. first of all : Pop-up communication with pagemap is a nightmare. I think the problem was that it loaded using a specific pagemap in the correct window but when trying to use ajaxLink, it didn't use the correct page map and then failed to find the associated session. (Not sure at all...) The solution I found presently to avoid the session expire is to use the bookmarkable link without passing to it a pagemap and just setting the target field of the link to the pagemap name. Now, the problem is : when using the same instance of Firefox, every time I load the application, it always use the same window name, which is wicket:default. Is it possible to set a particular pagemap when the user login or set a window.name when the user log in? Marc On 1/15/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Damn It, I forgot to past thing in the post Before loading the pop up : 2007-01-15 10:36:51,586 DEBUG ( http-0.0.0.0-18080-3) [Session ] updateSession(): Attaching session to PageMap [PageMap name=popuppagemap, access=[]] 2007-01-15 10:36:51,586 DEBUG ( http-0.0.0.0-18080-3) [Session ] updateSession(): Attaching session to PageMap [PageMap name=null, access=[[Access id=0, version=0], [Access id=1, version=0]]] After loading the pop-up : 2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4) [Session ] updateSession(): Attaching session to PageMap [PageMap name=popuppagemap, access=[]] 2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4) [Session ] updateSession(): Attaching session to PageMap [PageMap name=null, access=[[Access id=0, version=0], [Access id=1, version=0]]] 2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4 ) [Session ] updateSession(): Attaching session to PageMap [PageMap name=wicket:default, access=[]] I think my problem is about page-map and session, but I'm not sure of anything Marc On 1/15/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: While asking this, I found maybe why the page expire, but not sure. It is due to the use of pagemap to communicate from a pop-up to the current window. I'll try to explain what is happening : I log in my application, I click the link to open the pop-up. When clicking on the link, I'm tring to add a pageparameters to the pop-up to pass the pagemap name. Presently, the log say that about updating pagemap : In the pop up, I add a link to update the main window to display something different. I get the page map from parameters. If page map is null, it is because this session currently does not have a name and by default, the first name used by wicket is : wicket-default. If there is nothing, this is what I enter. Then, when I click this link, it load the page in the correct window. This is what is printed in the log file when updating page map : Then, if I click on normal bookmarkable link, it work, but the first ajaxlink I click will made the session to expire. Nothing can be done, it even didn't pass in the onClick method of the ajaxLink. There is no other error in the log, only loadingthe expired page Marc On 1/15/07, Nino Wael [EMAIL PROTECTED] wrote: Hmm, we had to track something similar. Could you describe what happens? Our thing was something that was caused by clearing the pagemap and the same time referencing to the cleared page. Also we have a problem where we loose our session's id. Regards Nino -- *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] * On Behalf Of *Marc-Andre Houle *Sent:* 15. januar 2007 15:35 *To:* wicket-user@lists.sourceforge.net *Subject:* [Wicket-user] Tracking session expire exception Is there somebody here that had to track in his application why the session expire? I'm in need of some hint on how to efficiently find the damn thing that have made the session expire abruptly. Surely somebody have done something about that! :) Marc - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Re: [Wicket-user] Tracking session expire exception
You can subclass HttpSessionStore and provide your own implementation of onUnbind(String). Then, use your new HttpSessionStore from your application subclass: public ISessionStore newSessionStore() { return new MySessionStore(); } On 1/15/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: I think I found something. first of all : Pop-up communication with pagemap is a nightmare. I think the problem was that it loaded using a specific pagemap in the correct window but when trying to use ajaxLink, it didn't use the correct page map and then failed to find the associated session. (Not sure at all...) The solution I found presently to avoid the session expire is to use the bookmarkable link without passing to it a pagemap and just setting the target field of the link to the pagemap name. Now, the problem is : when using the same instance of Firefox, every time I load the application, it always use the same window name, which is wicket:default. Is it possible to set a particular pagemap when the user login or set a window.name when the user log in? Marc On 1/15/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Damn It, I forgot to past thing in the post Before loading the pop up : 2007-01-15 10:36:51,586 DEBUG ( http-0.0.0.0-18080-3) [Session ] updateSession(): Attaching session to PageMap [PageMap name=popuppagemap, access=[]] 2007-01-15 10:36:51,586 DEBUG ( http-0.0.0.0-18080-3) [Session ] updateSession(): Attaching session to PageMap [PageMap name=null, access=[[Access id=0, version=0], [Access id=1, version=0]]] After loading the pop-up : 2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4) [Session ] updateSession(): Attaching session to PageMap [PageMap name=popuppagemap, access=[]] 2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4) [Session ] updateSession(): Attaching session to PageMap [PageMap name=null, access=[[Access id=0, version=0], [Access id=1, version=0]]] 2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4 ) [Session ] updateSession(): Attaching session to PageMap [PageMap name=wicket:default, access=[]] I think my problem is about page-map and session, but I'm not sure of anything Marc On 1/15/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: While asking this, I found maybe why the page expire, but not sure. It is due to the use of pagemap to communicate from a pop-up to the current window. I'll try to explain what is happening : I log in my application, I click the link to open the pop-up. When clicking on the link, I'm tring to add a pageparameters to the pop-up to pass the pagemap name. Presently, the log say that about updating pagemap : In the pop up, I add a link to update the main window to display something different. I get the page map from parameters. If page map is null, it is because this session currently does not have a name and by default, the first name used by wicket is : wicket-default. If there is nothing, this is what I enter. Then, when I click this link, it load the page in the correct window. This is what is printed in the log file when updating page map : Then, if I click on normal bookmarkable link, it work, but the first ajaxlink I click will made the session to expire. Nothing can be done, it even didn't pass in the onClick method of the ajaxLink. There is no other error in the log, only loadingthe expired page Marc On 1/15/07, Nino Wael [EMAIL PROTECTED] wrote: Hmm, we had to track something similar. Could you describe what happens? Our thing was something that was caused by clearing the pagemap and the same time referencing to the cleared page. Also we have a problem where we loose our session's id. Regards Nino -- *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] * On Behalf Of *Marc-Andre Houle *Sent:* 15. januar 2007 15:35 *To:* wicket-user@lists.sourceforge.net *Subject:* [Wicket-user] Tracking session expire exception Is there somebody here that had to track in his application why the session expire? I'm in need of some hint on how to efficiently find the damn thing that have made the session expire abruptly. Surely somebody have done something about that! :) Marc - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tracking session expire exception
Let's make a demo of what I presently don't understand : In a quickstart, have a page that only do this : System.out.println (index Page map is : + getPageMap ().getName ()); add(new Link(page2) { public void onClick () { setResponsePage(Page2.class); } }); In the page 2, the only thing you do is : System.out.println (Page 2 map is : + getPageMap ().getName ()); Now, the output look like this : I access the index page first time : index Page map is :null I access the index page from another tab : index Page map is :null index Page map is :wicket-0 I access Page2 from the whatever link (I mean, the two tabs have the same result : Page 2 map is :null So, now, I confused, what is this PageMap suppose to say in this case? Two window, same Pagemap and than, same window.name (Always this same problem about window name in the pop up!)... Sorry, I feel like being an asshole always asking for the same thing. If I'm not getting it with this, I just tell my boss to put this feature up is ass and I'll do a search result ala google! :) Marc On 1/15/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: I don't understand how this can help. Can you give me an example? And BTW, is there somewhere documentation on PageMap. I'm not sure I really grasp all the concept aroud this. I tough that page map made sure that in one instance in your application server, you have only one name/session pair. In my application, if I create new firefox tabs, it will have the same page map name (which is null). Also, I though that the window.name value was always synced with the pagemap name. In fact, more I advance, less I'm sure to know :) Marc On 1/15/07, Nick Heudecker [EMAIL PROTECTED] wrote: You can subclass HttpSessionStore and provide your own implementation of onUnbind(String). Then, use your new HttpSessionStore from your application subclass: public ISessionStore newSessionStore() { return new MySessionStore(); } On 1/15/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: I think I found something. first of all : Pop-up communication with pagemap is a nightmare. I think the problem was that it loaded using a specific pagemap in the correct window but when trying to use ajaxLink, it didn't use the correct page map and then failed to find the associated session. (Not sure at all...) The solution I found presently to avoid the session expire is to use the bookmarkable link without passing to it a pagemap and just setting the target field of the link to the pagemap name. Now, the problem is : when using the same instance of Firefox, every time I load the application, it always use the same window name, which is wicket:default. Is it possible to set a particular pagemap when the user login or set a window.name when the user log in? Marc On 1/15/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Damn It, I forgot to past thing in the post Before loading the pop up : 2007-01-15 10:36:51,586 DEBUG ( http-0.0.0.0-18080-3) [Session ] updateSession(): Attaching session to PageMap [PageMap name=popuppagemap, access=[]] 2007-01-15 10:36:51,586 DEBUG ( http-0.0.0.0-18080-3) [Session ] updateSession(): Attaching session to PageMap [PageMap name=null, access=[[Access id=0, version=0], [Access id=1, version=0]]] After loading the pop-up : 2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4) [Session ] updateSession(): Attaching session to PageMap [PageMap name=popuppagemap, access=[]] 2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4) [Session ] updateSession(): Attaching session to PageMap [PageMap name=null, access=[[Access id=0, version=0], [Access id=1, version=0]]] 2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4 ) [Session ] updateSession(): Attaching session to PageMap [PageMap name=wicket:default, access=[]] I think my problem is about page-map and session, but I'm not sure of anything Marc On 1/15/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: While asking this, I found maybe why the page expire, but not sure. It is due to the use of pagemap to communicate from a pop-up to the current window. I'll try to explain what is happening : I log in my application, I click the link to open the pop-up. When clicking on the link, I'm tring to add a pageparameters to the pop-up to pass the pagemap name. Presently, the log say that about updating pagemap : In the pop up, I add a link to update the main window to display something different. I get the page map from parameters. If page map is null, it is because this session currently does not have a name and by default, the first name used by wicket is : wicket-default. If there