Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-302

toString needs to be overriden in PortletRequest

    XMLWordPrintableJSON

Details

    Description

      Request.toString() calls Request.getURL and in case of PortletRequest it throws a WicketRuntimeException when called from Page.internalOnDetach

      > [RequestCycle] there was an error cleaning up target
      > [BookmarkablePageRequestTarget@-1683338648
      > pageClass=wicket.protocol.http.portlet.pages.
      > PageExpiredPortletPage].
      > wicket.WicketRuntimeException: URL is not available in portlet request
      > at
      > wicket.protocol.http.portlet.WicketPortletRequest.getURL
      > (WicketPortle
      > tRequest.java:109)
      > at wicket.Request.toString(Request.java:197)
      > at java.lang.String.valueOf(String.java(Inlined Compiled Code))
      > at java.lang.StringBuffer.append(StringBuffer.java (Compiled Code))
      > at wicket.Page.internalOnDetach(Page.java:953)
      > at wicket.Component.internalDetach(Component.java:2541)
      > at
      > wicket.MarkupContainer.internalDetach(MarkupContainer.java:373)
      > at wicket.Page.internalDetach(Page.java:292)
      > at
      > wicket.request.target.component.BookmarkablePageRequestTarget.detach(
      > BookmarkablePageRequestTarget.java:120)
      > at wicket.RequestCycle.detach( RequestCycle.java:859)
      > at wicket.RequestCycle.steps(RequestCycle.java:1134)
      > at wicket.RequestCycle.request(RequestCycle.java:456)
      > at
      > wicket.protocol.http.portlet.WicketPortlet.render(WicketPortlet.java
      > :
      > 251)

      Attachments

        Activity

          People

            janne Janne Hietamaki
            cserepj János Cserép
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: