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

NullPointerException NPE in DiskPageStore after Session Timeout

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.4-RC2
    • 1.3.7, 1.4-RC6
    • wicket
    • None
    • JDK 1.6, Netbeans 6.5 with GlassFish

    Description

      A NullPointerException is thrown on an attempt to sumit a login form after session timeout.
      Wicket version 1.4 RC2

      java.lang.NullPointerException
      at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
      at org.apache.wicket.protocol.http.pagestore.DiskPageStore.getSessionEntry(DiskPageStore.java:661)
      at org.apache.wicket.protocol.http.pagestore.DiskPageStore.containsPage(DiskPageStore.java:1255)
      at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.containsPage(SecondLevelCacheSessionStore.java:268)
      at org.apache.wicket.Session.getPage(Session.java:660)
      at org.apache.wicket.request.target.coding.HybridUrlCodingStrategy.decode(HybridUrlCodingStrategy.java:211)
      at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:490)
      at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:184)
      at g1.base.MemberApplication$2.resolve(MemberApplication.java:327)
      at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
      at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
      at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)
      at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)
      at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:159)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)

      Please refer to the attached testcase.

      Attachments

        1. ExpiryCrash.zip
          4 kB
          bernard
        2. session-expire-patch-1.4-rc4.txt
          0.4 kB
          tomoharu fujita

        Activity

          People

            knopp Matej Knopp
            bht@actrix.gen.nz bernard
            Votes:
            5 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: