java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Tested this with trunk and 3.5.x When I cancel a query i get a couple (5-6) of those exceptions Caused by: mondrian.olap.QueryCanceledException: Mondrian Error:Query canceled at mondrian.resource.MondrianResource$_Def12.ex(MondrianResource.java:1182) at mondrian.server.Execution.checkCancelOrTimeout(Execution.java:243) at mondrian.rolap.RolapResultShepherd.shepherdExecution(RolapResultShepherd.java:167) at mondrian.rolap.RolapConnection.execute(RolapConnection.java:616) at mondrian.olap4j.MondrianOlap4jCellSet.execute(MondrianOlap4jCellSet.java:87) at mondrian.olap4j.MondrianOlap4jStatement.executeOlapQueryInternal(MondrianOlap4jStatement.java:415) ... 73 more java.lang.NullPointerException at mondrian.rolap.cache.SegmentCacheIndexImpl$HeaderInfo.access$000(SegmentCacheIndexImpl.java:935) at mondrian.rolap.cache.SegmentCacheIndexImpl.loadFailed(SegmentCacheIndexImpl.java:215) at mondrian.rolap.agg.SegmentCacheManager$Handler.visit(SegmentCacheManager.java:574) at mondrian.rolap.agg.SegmentCacheManager$SegmentLoadFailedEvent.acceptWithoutResponse(SegmentCacheManager.java:1159) at mondrian.rolap.agg.SegmentCacheManager$Actor.run(SegmentCacheManager.java:1032) at java.lang.Thread.run(Thread.java:680) java.lang.NullPointerException at mondrian.rolap.cache.SegmentCacheIndexImpl$HeaderInfo.access$000(SegmentCacheIndexImpl.java:935) at mondrian.rolap.cache.SegmentCacheIndexImpl.loadFailed(SegmentCacheIndexImpl.java:215) at mondrian.rolap.agg.SegmentCacheManager$Handler.visit(SegmentCacheManager.java:574) at mondrian.rolap.agg.SegmentCacheManager$SegmentLoadFailedEvent.acceptWithoutResponse(SegmentCacheManager.java:1159) at mondrian.rolap.agg.SegmentCacheManager$Actor.run(SegmentCacheManager.java:1032) at java.lang.Thread.run(Thread.java:680) java.lang.NullPointerException at mondrian.rolap.cache.SegmentCacheIndexImpl$HeaderInfo.access$000(SegmentCacheIndexImpl.java:935) etc etc
    via by Paul Stoellberger,
  • Tested this with trunk and 3.5.x When I cancel a query i get a couple (5-6) of those exceptions Caused by: mondrian.olap.QueryCanceledException: Mondrian Error:Query canceled at mondrian.resource.MondrianResource$_Def12.ex(MondrianResource.java:1182) at mondrian.server.Execution.checkCancelOrTimeout(Execution.java:243) at mondrian.rolap.RolapResultShepherd.shepherdExecution(RolapResultShepherd.java:167) at mondrian.rolap.RolapConnection.execute(RolapConnection.java:616) at mondrian.olap4j.MondrianOlap4jCellSet.execute(MondrianOlap4jCellSet.java:87) at mondrian.olap4j.MondrianOlap4jStatement.executeOlapQueryInternal(MondrianOlap4jStatement.java:415) ... 73 more java.lang.NullPointerException at mondrian.rolap.cache.SegmentCacheIndexImpl$HeaderInfo.access$000(SegmentCacheIndexImpl.java:935) at mondrian.rolap.cache.SegmentCacheIndexImpl.loadFailed(SegmentCacheIndexImpl.java:215) at mondrian.rolap.agg.SegmentCacheManager$Handler.visit(SegmentCacheManager.java:574) at mondrian.rolap.agg.SegmentCacheManager$SegmentLoadFailedEvent.acceptWithoutResponse(SegmentCacheManager.java:1159) at mondrian.rolap.agg.SegmentCacheManager$Actor.run(SegmentCacheManager.java:1032) at java.lang.Thread.run(Thread.java:680) java.lang.NullPointerException at mondrian.rolap.cache.SegmentCacheIndexImpl$HeaderInfo.access$000(SegmentCacheIndexImpl.java:935) at mondrian.rolap.cache.SegmentCacheIndexImpl.loadFailed(SegmentCacheIndexImpl.java:215) at mondrian.rolap.agg.SegmentCacheManager$Handler.visit(SegmentCacheManager.java:574) at mondrian.rolap.agg.SegmentCacheManager$SegmentLoadFailedEvent.acceptWithoutResponse(SegmentCacheManager.java:1159) at mondrian.rolap.agg.SegmentCacheManager$Actor.run(SegmentCacheManager.java:1032) at java.lang.Thread.run(Thread.java:680) java.lang.NullPointerException at mondrian.rolap.cache.SegmentCacheIndexImpl$HeaderInfo.access$000(SegmentCacheIndexImpl.java:935) etc etc
    via by Paul Stoellberger,
  • Hi, I have a local RMI server which executes MDX queries using mondrian API I'm using mondrian 3.5 and I'm getting below error, when I try to expand a member, it happens randomly (sometimes it will happen and sometimes not) =======Stack trace ============= java.lang.NullPointerException at mondrian.rolap.cache.SegmentCacheIndexImpl$HeaderInfo.access$000(SegmentCacheIndexImpl.java:885) at mondrian.rolap.cache.SegmentCacheIndexImpl.loadSucceeded(SegmentCacheIndexImpl.java:191) at mondrian.rolap.agg.SegmentCacheManager$Handler.visit(SegmentCacheManager.java:554) at mondrian.rolap.agg.SegmentCacheManager$SegmentLoadSucceededEvent.acceptWithoutResponse(SegmentCacheManager.java:1120) at mondrian.rolap.agg.SegmentCacheManager$Actor.run(SegmentCacheManager.java:1032) at java.lang.Thread.run(Thread.java:662) ====================================================== =========================================================================== below is the source code from stack trace,m it clearly shows there is a chance of null pointer exception ============================================================================ public void loadSucceeded(SegmentHeader header, SegmentBody body) { checkThread(); final HeaderInfo headerInfo = headerMap.get(header); assert headerInfo != null : "segment header " + header.getUniqueID() + " is missing"; assert headerInfo.slot != null : "segment header " + header.getUniqueID() + " is not loading"; if (!headerInfo.slot.isDone()) { headerInfo.slot.put(body); } if (headerInfo.removeAfterLoad) { remove(header); } } ========================================================
    via by Janardhan Chejarla,
  • Hi, I have a local RMI server which executes MDX queries using mondrian API I'm using mondrian 3.5 and I'm getting below error, when I try to expand a member, it happens randomly (sometimes it will happen and sometimes not) =======Stack trace ============= java.lang.NullPointerException at mondrian.rolap.cache.SegmentCacheIndexImpl$HeaderInfo.access$000(SegmentCacheIndexImpl.java:885) at mondrian.rolap.cache.SegmentCacheIndexImpl.loadSucceeded(SegmentCacheIndexImpl.java:191) at mondrian.rolap.agg.SegmentCacheManager$Handler.visit(SegmentCacheManager.java:554) at mondrian.rolap.agg.SegmentCacheManager$SegmentLoadSucceededEvent.acceptWithoutResponse(SegmentCacheManager.java:1120) at mondrian.rolap.agg.SegmentCacheManager$Actor.run(SegmentCacheManager.java:1032) at java.lang.Thread.run(Thread.java:662) ====================================================== =========================================================================== below is the source code from stack trace,m it clearly shows there is a chance of null pointer exception ============================================================================ public void loadSucceeded(SegmentHeader header, SegmentBody body) { checkThread(); final HeaderInfo headerInfo = headerMap.get(header); assert headerInfo != null : "segment header " + header.getUniqueID() + " is missing"; assert headerInfo.slot != null : "segment header " + header.getUniqueID() + " is not loading"; if (!headerInfo.slot.isDone()) { headerInfo.slot.put(body); } if (headerInfo.removeAfterLoad) { remove(header); } } ========================================================
    via by Janardhan Chejarla,
    • java.lang.NullPointerException at mondrian.rolap.cache.SegmentCacheIndexImpl$HeaderInfo.access$000(SegmentCacheIndexImpl.java:935) at mondrian.rolap.cache.SegmentCacheIndexImpl.loadFailed(SegmentCacheIndexImpl.java:215) at mondrian.rolap.agg.SegmentCacheManager$Handler.visit(SegmentCacheManager.java:574) at mondrian.rolap.agg.SegmentCacheManager$SegmentLoadFailedEvent.acceptWithoutResponse(SegmentCacheManager.java:1159) at mondrian.rolap.agg.SegmentCacheManager$Actor.run(SegmentCacheManager.java:1032) at java.lang.Thread.run(Thread.java:680)
    No Bugmate found.