Details
-
Type:
Bug
-
Status: Closed
-
Severity:
Medium
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 3.3.0 GA (4.1.0 GA Suite Release)
-
Component/s: None
-
Labels:None
-
Notice:
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(
) 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.