That must have been the case where you mount the application on the server root and where you don't use a web app name.
Fixed in trunk. Eelco On 4/17/06, Ramnivas Laddad <[EMAIL PROTECTED]> wrote: > Just switched over to rc1 and I started getting the following exception for > every request. > > String index out of range: -1 > java.lang.StringIndexOutOfBoundsException: String index > out of range: -1 > at > wicket.util.string.AppendingStringBuffer.charAt(AppendingStringBuffer.java:247) > at > wicket.protocol.http.request.WebRequestCodingStrategy.encode(WebRequestCodingStrategy.java:584) > at > wicket.protocol.http.request.WebRequestCodingStrategy.encode(WebRequestCodingStrategy.java:198) > at wicket.RequestCycle.urlFor(RequestCycle.java:717) > at wicket.RequestCycle.urlFor(RequestCycle.java:699) > at wicket.Component.urlFor(Component.java:2187) > at > wicket.markup.html.WebPage$PageMapChecker.renderHead(WebPage.java:466) > at wicket.Component.renderHead(Component.java:1731) > at > wicket.markup.html.internal.HtmlHeaderContainer.renderHeaderSections(HtmlHeaderContainer.java:231) > at > wicket.markup.html.internal.HtmlHeaderContainer.onComponentTagBody(HtmlHeaderContainer.java:141) > at > wicket.Component.renderComponent(Component.java:1662) > at wicket.MarkupContainer.onRender(MarkupContainer.java:917) > at wicket.Component.render(Component.java:1507) > at wicket.Component.render(Component.java:1473) > at wicket.MarkupContainer.autoAdd(MarkupContainer.java:196) > at > wicket.markup.resolver.HtmlHeaderResolver.resolve(HtmlHeaderResolver.java:82) > at > wicket.MarkupContainer.renderNext(MarkupContainer.java:1351) > at > wicket.MarkupContainer.renderAll(MarkupContainer.java:934) > at wicket.Page.onRender(Page.java:863) > at wicket.Component.render(Component.java:1507) > at wicket.Page.renderPage(Page.java:407) > at > wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:148) > at > wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:60) > at > wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:49) > at > wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66) > at wicket.RequestCycle.respond(RequestCycle.java:905) > at wicket.RequestCycle.step(RequestCycle.java:975) > at wicket.RequestCycle.steps(RequestCycle.java:1034) > at wicket.RequestCycle.request(RequestCycle.java:453) > at > wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:215) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:596) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > at > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) > at > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830) > at > org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174) > at > org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77) > at > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) > at > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) > at > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) > at > org.mortbay.http.HttpContext.handle(HttpContext.java:1530) > at > org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) > at > org.mortbay.http.HttpContext.handle(HttpContext.java:1482) > at > org.mortbay.http.HttpServer.service(HttpServer.java:927) > at > org.mortbay.http.HttpConnection.service(HttpConnection.java:816) > at > org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983) > at > org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) > at > org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) > at > org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) > at > org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) > 1933 [SocketListener0-8] ERROR > wicket.protocol.http.WebRequestCycle - String index out of > range: -1 > > -Ramnivas > > > Martijn Dashorst wrote: > The first release candidate of the 1.2 version of Wicket and its subprojects > is available for download. > > You can download the release here: > > > http://sourceforge.net/project/showfiles.php?group_id=119783 > > Available in this release are: > o wicket > o wicket-extensions > o wicket-examples > o wicket-auth-roles > o wicket-auth-roles-examples > o wicket-spring > o wicket-spring-examples > o wicket-spring-annot > o wicket-spring-annot-examples > o wicket-quickstart > > This release has several fixes on the beta3 release, so it is highly > recommended to update your current development to rc1. > > With this release we are finally in the end game for 1.2. We hope to move > quickly with these releases, so please consider upgrading and help test the > final stages. We don't expect major and minor changes in the API's, as such > subsequent releases should be a drop in replacement (we do keep the > possibility open that a bug might require us to break this promise). > > Martijn > > -- > Wicket 1.2 is coming! Write Ajax applications without touching JavaScript! > -- http://wicketframework.org > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ Wicket-user > mailing list Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user