Wicket
  1. Wicket
  2. WICKET-1724

Clicking on AjaxLink (when used on a page mounted through QueryStringUrlCodingStrategy) after session-expiry throws a NullPointerException in IE and Safari (i.e. in BookmarkableListenerInterfaceRequestTarget.processEvents)

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.3, 1.4-M2
    • Fix Version/s: 1.3.5, 1.4-M3
    • Component/s: wicket
    • Labels:
      None
    • Environment:
      JDK 5.0, RHEL 4

      Description

      Clicking an AjaxLink (after session-expiry period) on a page mounted through QueryStringUrlCodingStrategy results in a NullPointerException in

      Root cause:java.lang.NullPointerException
      at org.apache.wicket.request.target.component.BookmarkableListenerInterfaceRequestTarget.processEvents(BookmarkableListenerInterfaceRequestTarget.java:131)
      at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
      at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1171)
      at org.apache.wicket.RequestCycle.step(RequestCycle.java:1248)
      at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1349)
      at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
      at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387)
      at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:199)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
      at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
      at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
      at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      at org.mortbay.jetty.Server.handle(Server.java:324)
      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
      at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
      at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
      at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)

        Activity

        Hide
        Farhan added a comment -

        Thanks for the quick fix, Matej. Verified on 1.3 branch and it looks good, both in Safari and IE.

        Show
        Farhan added a comment - Thanks for the quick fix, Matej. Verified on 1.3 branch and it looks good, both in Safari and IE.
        Hide
        Matej Knopp added a comment -

        I've committed fix to both 1.3 and current trunk. Please test and if the problem persist reopen the issue.

        Show
        Matej Knopp added a comment - I've committed fix to both 1.3 and current trunk. Please test and if the problem persist reopen the issue.
        Hide
        Farhan added a comment -

        Let me add, something i noticed lately is that 1 out of 5 times it works fine and the SessionExpiry page is shown..

        Show
        Farhan added a comment - Let me add, something i noticed lately is that 1 out of 5 times it works fine and the SessionExpiry page is shown..
        Hide
        Farhan added a comment -

        The issue occurs not just with QueryStringURLCodingStrategy but with all extensions of BookmarkablePageRequestTargetUrlCodingStrategy...

        Show
        Farhan added a comment - The issue occurs not just with QueryStringURLCodingStrategy but with all extensions of BookmarkablePageRequestTargetUrlCodingStrategy...
        Hide
        Farhan added a comment -

        Attached is the quick-start project, with HomePage containing the AjaxLink and a Form/textfield. The homepage.class is mounted through QueryStringURLCodingStrategy. Also the session-timeout period in the web.xml has been set to 1 minute.

        Show
        Farhan added a comment - Attached is the quick-start project, with HomePage containing the AjaxLink and a Form/textfield. The homepage.class is mounted through QueryStringURLCodingStrategy. Also the session-timeout period in the web.xml has been set to 1 minute.

          People

          • Assignee:
            Matej Knopp
            Reporter:
            Farhan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development