You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2016/05/21 11:15:12 UTC

[jira] [Resolved] (WICKET-6169) NullPointerException accessing AbstractRequestLogger.getLiveSessions

     [ https://issues.apache.org/jira/browse/WICKET-6169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-6169.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 7.4.0
                   8.0.0-M1
                   6.24.0

The problem was that the array copy was created with a size.
Later during the copy of the elements they were less than the size and finally the sorting failed because of the trailing 'null' element in the array.

This particular problem is fixed in 6.x, 7.x and 8.x.
Similar candidates for the same problem are fixed only in 7.x and 8.x

> NullPointerException accessing AbstractRequestLogger.getLiveSessions
> --------------------------------------------------------------------
>
>                 Key: WICKET-6169
>                 URL: https://issues.apache.org/jira/browse/WICKET-6169
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 7.3.0
>            Reporter: Sverre Boschman
>            Assignee: Martin Grigorov
>             Fix For: 6.24.0, 8.0.0-M1, 7.4.0
>
>         Attachments: RequestLoggerLiveSessionsTest.java
>
>
> 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)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)