Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: NullPointerException configuring a role in Pentaho - Jpivot - Mondrian

  1. #1
    Join Date
    Jan 2007
    Posts
    25

    Default NullPointerException configuring a role in Pentaho - Jpivot - Mondrian

    Hi, i am trying to configure a mondrian role in pentaho bi-server 3.10 like this:

    .......
    <Role name="pu103">
    <SchemaGrant access="none">
    <CubeGrant cube="sales_2011" access="all">
    <HierarchyGrant hierarchy="[Seller]" topLevel="[Seller].[Seller]" access="custom">
    <MemberGrant member="[Seller].[103]" access="all">
    </MemberGrant>
    </HierarchyGrant>
    ...........

    so if i access report without Seller dimension and logged as pu103, results are shown fine and Seller dimension is ok as a filter, but when i
    want to show seller dimension in table, i am getting this:

    Caused by: java.lang.NullPointerException
    at com.tonbeller.jpivot.mondrian.MondrianMember.<init>(MondrianMember.java:51)
    at com.tonbeller.jpivot.mondrian.MondrianModel.addMember(MondrianModel.java:685)
    at com.tonbeller.jpivot.mondrian.MondrianResult.initData(MondrianResult.java:81)
    at com.tonbeller.jpivot.mondrian.MondrianResult.<init>(MondrianResult.java:51)
    at com.tonbeller.jpivot.mondrian.MondrianModel.getResult(MondrianModel.java:342)
    at com.tonbeller.jpivot.olap.model.OlapModelDecorator.getResult(OlapModelDecorator.java:


    at com.tonbeller.jpivot.olap.model.CachingOlapModel.getResult(CachingOlapModel.java:48)
    at com.tonbeller.jpivot.olap.model.OlapModelDecorator.getResult(OlapModelDecorator.java:


    at com.tonbeller.jpivot.table.TableComponent.updateOlapModel(TableComponent.java:246)
    at com.tonbeller.jpivot.table.TableComponent.render2(TableComponent.java:251)
    at com.tonbeller.jpivot.table.TableComponent.render(TableComponent.java:235)
    at com.tonbeller.wcf.component.RendererTag.doEndTag(RendererTag.java:137)
    ... 75 more

    if i remove topLevel from role configuration and add rollupPolicy="partial", i can see Seller dimension,
    but rollupPolicy has not effect, as if was "full"

    looking jpivot source code in MondrianMember constructor , level is arriving null from mondrian, so

    there is a solution for this?, someone has the same problem?

    Thanks.

  2. #2
    Join Date
    Feb 2013
    Posts
    1

    Default

    I'm facing the same problem now. Did you find a solution?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.