[Mondrian] NPE with slicers

Matt Campbell mcampbell at pentaho.com
Wed May 28 16:13:15 EDT 2014

Definitely looks like a bug, and I don't see anything similar logged.  Somewhat similar to MONDRIAN-1403, but that one involves calc members from another dimension, not a calc measure.  Mind creating a Jira ticket?

From: mondrian-bounces at pentaho.org [mailto:mondrian-bounces at pentaho.org] On Behalf Of Tiago Santos
Sent: Wednesday, May 28, 2014 2:50 PM
To: mondrian at pentaho.org
Subject: [Mondrian] NPE with slicers


I believe I've come across to a Bug in mondrian 3.6.
If I try to crossjoin a calculated member with some Set in slicer it throws NPE.

Here is the stacktrace for mondrian 3.6.7

Caused by: java.lang.NullPointerException
        at mondrian.olap.fun.AggregateFunDef$AggregateCalc.dimensionJoinsToBaseCube(AggregateFunDef.java:518)
        at mondrian.olap.fun.AggregateFunDef$AggregateCalc.canOptimize(AggregateFunDef.java:494)
        at mondrian.olap.fun.AggregateFunDef$AggregateCalc.optimizeMemberSet(AggregateFunDef.java:451)
        at mondrian.olap.fun.AggregateFunDef$AggregateCalc.optimizeChildren(AggregateFunDef.java:356)
        at mondrian.olap.fun.AggregateFunDef$AggregateCalc.optimizeTupleList(AggregateFunDef.java:210)
        at mondrian.rolap.RolapResult.<init>(RolapResult.java:361)
        at mondrian.rolap.RolapConnection.executeInternal(RolapConnection.java:671)

The following mdx exploits the issue

MEMBER [Measures].[Dummy] AS '1'
FROM [Sales]
WHERE CrossJoin({[Measures].[Dummy]}, {[Gender].[Gender].Members})

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pentaho.org/pipermail/mondrian/attachments/20140528/074274a2/attachment.html 

More information about the Mondrian mailing list