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

mondrian.rolap.RolapMemberBase cannot be cast to mondrian.rolap.RolapCubeMember

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Severity: Medium
    • Resolution: Fixed
    • Affects 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

      I tried to create a test case but the exception is not raised with both MDX and XMLA tests.

      But that query fails with Excel and xmlaTest.jsp utility.

      <Execute xmlns="urn:schemas-microsoft-com:xml-analysis">
      <Command>
      <Statement>
      select NON EMPTY Hierarchize(

      {[Time].[Year].Members}

      ) DIMENSION PROPERTIES PARENT_UNIQUE_NAME ON COLUMNS
      from [HR]
      where [Measures].[Count]
      </Statement>
      </Command>
      <Properties>
      <PropertyList>
      <Catalog>FoodMart</Catalog>
      <DataSourceInfo>Provider=Mondrian;DataSource=MondrianFoodMart;</DataSourceInfo>
      <Format>Multidimensional</Format>
      <AxisFormat>TupleFormat</AxisFormat>
      </PropertyList>
      </Properties>
      </Execute>

      Caused by: java.lang.ClassCastException: mondrian.rolap.RolapMemberBase cannot be cast to mondrian.rolap.RolapCubeMember
      at mondrian.rolap.RolapCubeHierarchy$CacheRolapCubeHierarchyMemberReader.readMemberChildren(RolapCubeHierarchy.java:570)
      at mondrian.rolap.RolapCubeHierarchy$CacheRolapCubeHierarchyMemberReader.getMemberChildren(RolapCubeHierarchy.java:680)
      at mondrian.rolap.SmartMemberReader.getMemberChildren(SmartMemberReader.java:176)
      at mondrian.rolap.SmartMemberReader.getMemberChildren(SmartMemberReader.java:166)
      at mondrian.rolap.RolapMemberBase.getPropertyValue(RolapMemberBase.java:356)

      Time dimension in schema definition has "has all" attribute = false. If we set it to true then query succeeds.

        PractiTest Integration




          Attachments

            Activity

              People

              Assignee:
              jhyde Julian Hyde (Inactive)
              Reporter:
              sergey.mazin Sergey Mazin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: