运行 MDX 查询“ select {[Measures].[X]} on columns from [Metrics] where [Time].[2013].[May2013]
”时出现以下异常。但是当我以管理员角色运行时也不例外。让我知道下面的角色部分是否有任何问题或如何解决此问题。
xml 中的角色段
<Role name="test_role">
<SchemaGrant access="none">
<CubeGrant cube="Metrics" access="all">
<HierarchyGrant hierarchy="[Cmp]" rollupPolicy="partial" topLevel="[Cmp].[Cmp]" bottomLevel="[Cmp].[Cmp]" access="custom">
<MemberGrant member="[Cmp]" access="none"/>
<MemberGrant member="[Cmp].[X]" access="none"/>
<MemberGrant member="[Cmp].[Y]" access="all" />
</HierarchyGrant>
</CubeGrant>
</SchemaGrant>
</Role>
例外
java.lang.NullPointerException
at mondrian.rolap.RolapHierarchy$LimitedRollupMember.<init>(RolapHierarchy.java:1333)
at mondrian.rolap.RolapHierarchy$LimitedRollupSubstitutingMemberReader.substitute(RolapHierarchy.java:1429)
at mondrian.rolap.RolapHierarchy$LimitedRollupSubstitutingMemberReader.substitute(RolapHierarchy.java:1461)
at mondrian.rolap.SubstitutingMemberReader.getDefaultMember(SubstitutingMemberReader.java:192)
at mondrian.rolap.RolapSchemaReader.getHierarchyDefaultMember(RolapSchemaReader.java:608)
at mondrian.olap.DelegatingSchemaReader.getHierarchyDefaultMember(DelegatingSchemaReader.java:203)
at mondrian.rolap.RolapEvaluatorRoot.<init>(RolapEvaluatorRoot.java:93)
at mondrian.rolap.RolapEvaluatorRoot.<init>(RolapEvaluatorRoot.java:78)
at mondrian.rolap.RolapResult$RolapResultEvaluatorRoot.<init>(RolapResult.java:1477)
at mondrian.rolap.RolapResult.<init>(RolapResult.java:85)
at mondrian.rolap.RolapUtil.createEvaluator(RolapUtil.java:636)
at mondrian.olap.Query.resolve(Query.java:448)
at mondrian.olap.Query.<init>(Query.java:200)
at mondrian.olap.Query.<init>(Query.java:161)
at mondrian.olap.Parser$FactoryImpl.makeQuery(Parser.java:927)
at mondrian.parser.MdxParserImpl.selectStatement(MdxParserImpl.java:1241)
at mondrian.parser.MdxParserImpl.statement(MdxParserImpl.java:1074)
at mondrian.parser.MdxParserImpl.statementEof(MdxParserImpl.java:188)
at mondrian.parser.JavaccParserValidatorImpl.parseInternal(JavaccParserValidatorImpl.java:57)
at mondrian.olap.ConnectionBase.parseStatement(ConnectionBase.java:96)