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

NullPointerException accessing AbstractRequestLogger.getLiveSessions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 7.3.0
    • 8.0.0-M1, 7.4.0, 6.24.0
    • wicket
    • None

    Description

      AbstractRequestLogger.getLiveSessions throws a NPE while sorting the liveSessions if a session is destroyed concurrently.

      java.lang.NullPointerException
      at java.util.ComparableTimSort.countRunAndMakeAscending(ComparableTimSort.java:320)
      at java.util.ComparableTimSort.sort(ComparableTimSort.java:188)
      at java.util.Arrays.sort(Arrays.java:1246)
      at org.apache.wicket.protocol.http.AbstractRequestLogger.getLiveSessions(AbstractRequestLogger.java:139)
      at org.apache.wicket.requestlogger.RequestLoggerLiveSessionsTest.test(RequestLoggerLiveSessionsTest.java:27)

      Attachments

        1. RequestLoggerLiveSessionsTest.java
          2 kB
          Sverre Boschman

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            boschman Sverre Boschman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: