Description
I have a Bookmarkable URL,
> http://myserver.com:8080/release/FOO/1.2.3.GA
mapped using
mountPage("/release/${product}/${version}", ReleasePage.class);
When there's no active session, navigating to such URL causes:
Root cause: java.lang.NumberFormatException: For input string: "8080;jsessionid=YW+Sz2ReIBQk-H2TfCG9dsUC" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:492) at java.lang.Integer.parseInt(Integer.java:527) at org.apache.wicket.request.Url.parse(Url.java:195) at org.apache.wicket.request.Url.parse(Url.java:121) at org.apache.wicket.protocol.http.servlet.ServletWebResponse.encodeURL(ServletWebResponse.java:194) at org.apache.wicket.protocol.http.HeaderBufferingWebResponse.encodeURL(HeaderBufferingWebResponse.java:161) at org.apache.wicket.request.cycle.RequestCycle.renderUrl(RequestCycle.java:524) at org.apache.wicket.request.cycle.RequestCycle.urlFor(RequestCycle.java:492) at org.apache.wicket.request.cycle.RequestCycle.urlFor(RequestCycle.java:477) at org.apache.wicket.Component.urlFor(Component.java:3319) at org.apache.wicket.markup.html.link.BookmarkablePageLink.getURL(BookmarkablePageLink.java:209) at org.apache.wicket.markup.html.link.Link.onComponentTag(Link.java:361) at org.apache.wicket.Component.internalRenderComponent(Component.java:2530) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1530) at org.apache.wicket.Component.internalRender(Component.java:2389) at org.apache.wicket.Component.render(Component.java:2317) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1428) at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1592) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1567) at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:689) at org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy.renderAssociatedMarkup(AssociatedMarkupSourcingStrategy.java:76) at org.apache.wicket.markup.html.panel.PanelMarkupSourcingStrategy.onComponentTagBody(PanelMarkupSourcingStrategy.java:112) at org.apache.wicket.Component.internalRenderComponent(Component.java:2559) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1530) at org.apache.wicket.Component.internalRender(Component.java:2389) at org.apache.wicket.Component.render(Component.java:2317) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1428) at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1592) at org.apache.wicket.Page.onRender(Page.java:907) at org.apache.wicket.markup.html.WebPage.onRender(WebPage.java:140) at org.apache.wicket.Component.internalRender(Component.java:2389) at org.apache.wicket.Component.render(Component.java:2317) at org.apache.wicket.Page.renderPage(Page.java:1035) at org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:118) at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:246) at org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:167) at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:784) at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:255) at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212) at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:283) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:244) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:165) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:372) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:679) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:931) at java.lang.Thread.run(Thread.java:722) Complete stack: org.apache.wicket.WicketRuntimeException: Exception in rendering component: [HeaderPanel [Component id = header]] at org.apache.wicket.Component.internalRenderComponent(Component.java:2586) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1530) at org.apache.wicket.Component.internalRender(Component.java:2389) at org.apache.wicket.Component.render(Component.java:2317) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1428) at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1592) at org.apache.wicket.Page.onRender(Page.java:907) at org.apache.wicket.markup.html.WebPage.onRender(WebPage.java:140) at org.apache.wicket.Component.internalRender(Component.java:2389) at org.apache.wicket.Component.render(Component.java:2317) at org.apache.wicket.Page.renderPage(Page.java:1035) at org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:118) at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:246) at org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:167) at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:784) at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:255) at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212) at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:283) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
Attachments
Issue Links
- duplicates
-
WICKET-4877 encodeUrl fails parsing jsessionid when using root context
- Resolved