Re: [Wicket-user] 1.2.x trunk stack overflow
no i thnk AlMaw wants to take a look at it. johan On 5/30/07, Ingram Chen <[EMAIL PROTECTED]> wrote: In 1.2.x trunk, Settings still use old implemation: public String getContextPath() { // Set the default context path if the context path is not already // set (previous time or by the developer itself) // This all to do missing api in the servlet spec.. You can't get a // context path from the servlet context, which is just stupid. if (contextPath == null && RequestCycle.get ().getRequest() instanceof WebRequest) { contextPath = ((WebRequest)RequestCycle.get().getRequest()).getContextPath(); } return contextPath; } http://svn.apache.org/repos/asf/incubator/wicket/branches/wicket-1.2.x/wicket/src/main/java/wicket/settings/Settings.java not yet commit ? On 5/30/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > > that seems to be a problem yes > what i did was change the Settigngs one: > > contextPath = > ((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest().getContextPath(); > > so that i directly call the context path of the http servlet request. > > i think that should work fine, or does some have > WebRequest.getContextPath() overwritten so that they supply there > something else?? > > johan > > > On 5/30/07, Ingram Chen <[EMAIL PROTECTED]> wrote: > > > All, > > > >I build 1.2.x trunk today to try some fixed bugs (which found in > > 1.2.6) > > . After I deploy I got stack overflow: > > > > java.lang.StackOverflowError > > at java.lang.ThreadLocal.get(ThreadLocal.java:125) > > at wicket.RequestCycle.get(RequestCycle.java:211) > > at wicket.settings.Settings.getContextPath(Settings.java:451) > > at wicket.protocol.http.servlet.ServletWebRequest.getContextPath( > > ServletWebRequest.java :69) > > at wicket.settings.Settings.getContextPath(Settings.java:453) > > at wicket.protocol.http.servlet.ServletWebRequest.getContextPath( > > ServletWebRequest.java:69) > > at wicket.settings.Settings.getContextPath (Settings.java:453) > > > > > > I notice ServletWebRequest.getContextPath implmentaton changed: > > > > in 1.2.6: > > public String getContextPath() > > { > > return httpServletRequest.getContextPath(); > > } > > > > in 1.2.x trunk > > public String getContextPath() > > { > > String contextPath = Application.get > > ().getApplicationSettings().getContextPath(); > > return contextPath != null ? contextPath : > > httpServletRequest.getContextPath (); > > } > > > > so the problem is caused by additional Application.get().getApplicationSettings().getContextPath(); > > > > > > I know wicket has a bamboo to build trunk continuously, but I can't > > find it to check trunk's health. > > > > -- > > Ingram Chen > > ��便��啦: http://dinbendon.net > > blog: http://www.javaworld.com.tw/roller/page/ingramchen > > > > - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] 1.2.x trunk stack overflow
In 1.2.x trunk, Settings still use old implemation: public String getContextPath() { // Set the default context path if the context path is not already // set (previous time or by the developer itself) // This all to do missing api in the servlet spec.. You can't get a // context path from the servlet context, which is just stupid. if (contextPath == null && RequestCycle.get().getRequest() instanceof WebRequest) { contextPath = ((WebRequest)RequestCycle.get().getRequest()).getContextPath(); } return contextPath; } http://svn.apache.org/repos/asf/incubator/wicket/branches/wicket-1.2.x/wicket/src/main/java/wicket/settings/Settings.java not yet commit ? On 5/30/07, Johan Compagner <[EMAIL PROTECTED]> wrote: that seems to be a problem yes what i did was change the Settigngs one: contextPath = ((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest().getContextPath(); so that i directly call the context path of the http servlet request. i think that should work fine, or does some have WebRequest.getContextPath() overwritten so that they supply there something else?? johan On 5/30/07, Ingram Chen <[EMAIL PROTECTED]> wrote: > All, > >I build 1.2.x trunk today to try some fixed bugs (which found in > 1.2.6) > . After I deploy I got stack overflow: > > java.lang.StackOverflowError > at java.lang.ThreadLocal.get(ThreadLocal.java:125) > at wicket.RequestCycle.get(RequestCycle.java:211) > at wicket.settings.Settings.getContextPath(Settings.java:451) > at wicket.protocol.http.servlet.ServletWebRequest.getContextPath( > ServletWebRequest.java :69) > at wicket.settings.Settings.getContextPath(Settings.java:453) > at wicket.protocol.http.servlet.ServletWebRequest.getContextPath( > ServletWebRequest.java:69) > at wicket.settings.Settings.getContextPath (Settings.java:453) > > > I notice ServletWebRequest.getContextPath implmentaton changed: > > in 1.2.6: > public String getContextPath() > { > return httpServletRequest.getContextPath(); > } > > in 1.2.x trunk > public String getContextPath() > { > String contextPath = Application.get > ().getApplicationSettings().getContextPath(); > return contextPath != null ? contextPath : > httpServletRequest.getContextPath (); > } > > so the problem is caused by additional Application.get().getApplicationSettings().getContextPath(); > > > I know wicket has a bamboo to build trunk continuously, but I can't find > it to check trunk's health. > > -- > Ingram Chen > ��便��啦: http://dinbendon.net > blog: http://www.javaworld.com.tw/roller/page/ingramchen > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] 1.2.x trunk stack overflow
that seems to be a problem yes what i did was change the Settigngs one: contextPath = ((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest().getContextPath(); so that i directly call the context path of the http servlet request. i think that should work fine, or does some have WebRequest.getContextPath() overwritten so that they supply there something else?? johan On 5/30/07, Ingram Chen <[EMAIL PROTECTED]> wrote: All, I build 1.2.x trunk today to try some fixed bugs (which found in 1.2.6) . After I deploy I got stack overflow: java.lang.StackOverflowError at java.lang.ThreadLocal.get(ThreadLocal.java:125) at wicket.RequestCycle.get(RequestCycle.java:211) at wicket.settings.Settings.getContextPath(Settings.java:451) at wicket.protocol.http.servlet.ServletWebRequest.getContextPath( ServletWebRequest.java :69) at wicket.settings.Settings.getContextPath(Settings.java:453) at wicket.protocol.http.servlet.ServletWebRequest.getContextPath( ServletWebRequest.java:69) at wicket.settings.Settings.getContextPath (Settings.java:453) I notice ServletWebRequest.getContextPath implmentaton changed: in 1.2.6: public String getContextPath() { return httpServletRequest.getContextPath(); } in 1.2.x trunk public String getContextPath() { String contextPath = Application.get ().getApplicationSettings().getContextPath(); return contextPath != null ? contextPath : httpServletRequest.getContextPath (); } so the problem is caused by additional Application.get().getApplicationSettings().getContextPath(); I know wicket has a bamboo to build trunk continuously, but I can't find it to check trunk's health. -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] 1.2.x trunk stack overflow
All, I build 1.2.x trunk today to try some fixed bugs (which found in 1.2.6) . After I deploy I got stack overflow: java.lang.StackOverflowError at java.lang.ThreadLocal.get(ThreadLocal.java:125) at wicket.RequestCycle.get(RequestCycle.java:211) at wicket.settings.Settings.getContextPath(Settings.java:451) at wicket.protocol.http.servlet.ServletWebRequest.getContextPath( ServletWebRequest.java:69) at wicket.settings.Settings.getContextPath(Settings.java:453) at wicket.protocol.http.servlet.ServletWebRequest.getContextPath( ServletWebRequest.java:69) at wicket.settings.Settings.getContextPath(Settings.java:453) I notice ServletWebRequest.getContextPath implmentaton changed: in 1.2.6: public String getContextPath() { return httpServletRequest.getContextPath(); } in 1.2.x trunk public String getContextPath() { String contextPath = Application.get ().getApplicationSettings().getContextPath(); return contextPath != null ? contextPath : httpServletRequest.getContextPath(); } so the problem is caused by additional Application.get().getApplicationSettings().getContextPath(); I know wicket has a bamboo to build trunk continuously, but I can't find it to check trunk's health. -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user