Defect #2527
closed
Sorting by Description fails with multiple scheduled tasks of the same type and empty description
Added by Alena Peterová about 4 years ago.
Updated about 4 years ago.
Affected versions:
10.2.0,
10.3.0,
10.3.1,
10.3.2,
10.3.3,
10.4.0,
10.4.1,
10.4.2,
10.4.3,
10.4.4,
10.5.0,
10.5.1,
10.4.5,
10.4.6,
10.4.7,
10.5.2,
10.5.3,
10.4.8
Description
Steps to reproduce:
- Scheduled tasks -> add another HrEnableContractProcess and don't fill in the description
- Sort the tasks by "Description"
The same can happen e.g. for multiple scheduled synchronization (SynchronizationSchedulableTaskExecutor).
To get rid of the error, you have to click Ctrl+F5 => cancel sorting.
Low priority, because we usually fill in the description of the scheduled tasks (and use numbers to see their order, that's why we sorted by it :-) )
Files
2020-10-20 15:54:39.390 ERROR 824717 --- [http-nio-8080-exec-6] e.b.i.c.e.ExceptionControllerAdvice.handle : [074221e1-a494-468c-9546-e9d96ac27080]
java.lang.NullPointerException: null
at java.lang.String.compareTo(String.java:1155)
at eu.bcvsolutions.idm.core.scheduler.service.impl.DefaultSchedulerManager.lambda$find$2(DefaultSchedulerManager.java:165)
at java.util.TimSort.countRunAndMakeAscending(TimSort.java:355)
at java.util.TimSort.sort(TimSort.java:220)
at java.util.Arrays.sort(Arrays.java:1512)
at java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:348)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
at eu.bcvsolutions.idm.core.scheduler.service.impl.DefaultSchedulerManager.find(DefaultSchedulerManager.java:175)
or when using -Djava.util.Arrays.useLegacyMergeSort=true (
#1013)
2020-10-20 15:39:36.925 ERROR 3906163 --- [http-nio-8080-exec-6] e.b.i.c.e.ExceptionControllerAdvice.handle : [c0e91eb4-92aa-42b8-b972-44cfb91dd0ee]
java.lang.NullPointerException: null
at eu.bcvsolutions.idm.core.scheduler.service.impl.DefaultSchedulerManager.lambda$find$2(DefaultSchedulerManager.java:165)
at java.util.Arrays.mergeSort(Arrays.java:1544)
at java.util.Arrays.legacyMergeSort(Arrays.java:1523)
at java.util.Arrays.sort(Arrays.java:1510)
at java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:348)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
at eu.bcvsolutions.idm.core.scheduler.service.impl.DefaultSchedulerManager.find(DefaultSchedulerManager.java:175)
- Status changed from New to Needs feedback
- Assignee changed from Radek Tomiška to Vít Švanda
- Target version set to 10.6.0
- % Done changed from 0 to 90
- Affected versions 10.2.0, 10.3.0, 10.3.1, 10.3.2, 10.3.3, 10.4.0, 10.4.1, 10.4.2, 10.4.3, 10.4.4, 10.5.0, 10.5.1, 10.4.5, 10.4.6, 10.5.2, 10.5.3, 10.4.8 added
- Status changed from Needs feedback to Resolved
- Assignee changed from Vít Švanda to Radek Tomiška
- % Done changed from 90 to 100
I did reivew and tested it. Work nice now. LGTM
- Status changed from Resolved to Closed
Also available in: Atom
PDF