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

NullPointerException NPE in DiskPageStore after Session Timeout

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.4-RC2
    • Fix Version/s: 1.3.7, 1.4-RC6
    • Component/s: wicket
    • Labels:
      None
    • Environment:
      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. session-expire-patch-1.4-rc4.txt
          0.4 kB
          tomoharu fujita
        2. ExpiryCrash.zip
          4 kB
          bernard

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: