[Mondrian] NPE in Mondrian 3.4.5

Christoffer Sawicki christoffer.sawicki at gmail.com
Thu Jul 26 09:25:02 EDT 2012


Hi!

I'm giving Mondrian 3.4.5 a test ride and have run into a problem.

After my application has invoked mondrian.olap.CacheControl, queries
start to fail with:

java.lang.NullPointerException: null
	at mondrian.rolap.RolapUtil$RolapUtilComparator.compare(RolapUtil.java:152)
~[mondrian-3.4.5.jar:na]
	at mondrian.rolap.RolapUtil$RolapUtilComparator.compare(RolapUtil.java:147)
~[mondrian-3.4.5.jar:na]
	at java.util.Arrays.binarySearch0(Arrays.java:2105) ~[na:1.6.0_33]
	at java.util.Arrays.binarySearch(Arrays.java:2090) ~[na:1.6.0_33]
	at mondrian.util.UtilCompatibleJdk16.binarySearch(UtilCompatibleJdk16.java:98)
~[mondrian-3.4.5.jar:na]
	at mondrian.olap.Util.binarySearch(Util.java:2165) ~[mondrian-3.4.5.jar:na]
	at mondrian.util.ArraySortedSet.contains(ArraySortedSet.java:225)
~[mondrian-3.4.5.jar:na]
	at mondrian.rolap.cache.SegmentCacheIndexImpl.matches(SegmentCacheIndexImpl.java:270)
~[mondrian-3.4.5.jar:na]
	at mondrian.rolap.cache.SegmentCacheIndexImpl.locate(SegmentCacheIndexImpl.java:119)
~[mondrian-3.4.5.jar:na]
	at mondrian.rolap.agg.SegmentCacheManager$PeekCommand.call(SegmentCacheManager.java:1454)
~[mondrian-3.4.5.jar:na]
	at mondrian.rolap.agg.SegmentCacheManager$PeekCommand.call(SegmentCacheManager.java:1429)
~[mondrian-3.4.5.jar:na]
	at mondrian.rolap.agg.SegmentCacheManager$Actor.run(SegmentCacheManager.java:993)
~[mondrian-3.4.5.jar:na]

I've checked that the problem is that the ArraySortedSet contains null
values that can't be compared.

I haven't seen this issue with 3.3.2.

Has anybody run into this and perhaps fixed it?


More information about the Mondrian mailing list