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

NullPointerException after jetty restart with persistent sessions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4-RC2
    • None
    • wicket
    • None

    Description

      I start Jetty with a savePeriod (HashSessionManager) of 4 seconds. When I restart it, a NPE is logged each 4s. After some (not all) page loads, the exception stop.

      Since NPE is never a feature, I suggest to apply that patch. Or something else more appropriate, if you understand the problem better.

      Index: wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/DiskPageStore.java
      ===================================================================
      — wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/DiskPageStore.java (revisão 740670)
      +++ wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/DiskPageStore.java (cópia de trabalho)
      @@ -1165,7 +1165,7 @@
      else if (page instanceof SerializedPageWithSession)
      {
      SerializedPageWithSession serialized = (SerializedPageWithSession)page;

      • if (serialized.page.get() == SerializedPageWithSession.NO_PAGE)
        + if (serialized.page != null && serialized.page.get() == SerializedPageWithSession.NO_PAGE)
        {
        // stripped page, need to restore it first
        result = restoreStrippedSerializedPage(serialized);

      Attachments

        Activity

          People

            knopp Matej Knopp
            asfernandes Adriano dos Santos Fernandes
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: