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.

        Activity

        Hide
        jhyde Julian Hyde added a comment -

        I saw that you have used CacheControl. Are you also using external caching?

        Show
        jhyde Julian Hyde added a comment - I saw that you have used CacheControl. Are you also using external caching?
        Hide
        qerub Christoffer Sawicki added a comment - - edited

        No, external caching is not being used.

        My mondrian.properties looks like this:

        mondrian.olap.case.sensitive: true
        mondrian.rolap.EnableRolapCubeMemberCache: false

        Show
        qerub Christoffer Sawicki added a comment - - edited No, external caching is not being used. My mondrian.properties looks like this: mondrian.olap.case.sensitive: true mondrian.rolap.EnableRolapCubeMemberCache: false
        Hide
        Former Triage User Old Triage User (Inactive) added a comment -

        If you are a Pentaho customer, please contact Customer Support for assistance. Otherwise use http://forums.pentaho.com for asking questions. JIRA is for logging bugs and enhancement requests.

        Show
        Former Triage User Old Triage User (Inactive) added a comment - If you are a Pentaho customer, please contact Customer Support for assistance. Otherwise use http://forums.pentaho.com for asking questions. JIRA is for logging bugs and enhancement requests.
        Hide
        qerub Christoffer Sawicki added a comment -

        Unassigned User: Isn't this a bug report?

        Show
        qerub Christoffer Sawicki added a comment - Unassigned User: Isn't this a bug report?

          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: