Uploaded image for project: 'Pentaho Analysis - Mondrian'
  1. Pentaho Analysis - Mondrian
  2. MONDRIAN-1196

NullPointerException in RolapUtil$RolapUtilComparator

    Details

    • Type: Bug
    • Status: Closed
    • Severity: Unknown
    • Resolution: Not a Bug
    • Affects Version/s: 3.4.5 GA
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.

      Description

      After my application has invoked mondrian.olap.CacheControl, queries start to fail with:

      java.lang.NullPointerException: null
      at mondrian.rolap.RolapUtil$RolapUtilComparator.compare(RolapUtil.java:152) ~[mondrian-3.4.5.jar:na]
      at mondrian.rolap.RolapUtil$RolapUtilComparator.compare(RolapUtil.java:147) ~[mondrian-3.4.5.jar:na]
      at java.util.Arrays.binarySearch0(Arrays.java:2105) ~[na:1.6.0_33]
      at java.util.Arrays.binarySearch(Arrays.java:2090) ~[na:1.6.0_33]
      at mondrian.util.UtilCompatibleJdk16.binarySearch(UtilCompatibleJdk16.java:98) ~[mondrian-3.4.5.jar:na]
      at mondrian.olap.Util.binarySearch(Util.java:2165) ~[mondrian-3.4.5.jar:na]
      at mondrian.util.ArraySortedSet.contains(ArraySortedSet.java:225) ~[mondrian-3.4.5.jar:na]
      at mondrian.rolap.cache.SegmentCacheIndexImpl.matches(SegmentCacheIndexImpl.java:270) ~[mondrian-3.4.5.jar:na]
      at mondrian.rolap.cache.SegmentCacheIndexImpl.locate(SegmentCacheIndexImpl.java:119) ~[mondrian-3.4.5.jar:na]
      at mondrian.rolap.agg.SegmentCacheManager$PeekCommand.call(SegmentCacheManager.java:1454) ~[mondrian-3.4.5.jar:na]
      at mondrian.rolap.agg.SegmentCacheManager$PeekCommand.call(SegmentCacheManager.java:1429) ~[mondrian-3.4.5.jar:na]
      at mondrian.rolap.agg.SegmentCacheManager$Actor.run(SegmentCacheManager.java:993) ~[mondrian-3.4.5.jar:na]

      The ArraySortedSet instance in question has null values on which the comparison fails.

        Attachments

          Activity

            People

            • Assignee:
              project admin Triage
              Reporter:
              qerub Christoffer Sawicki
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: