java.lang.NullPointerException

Pentaho BI Platform Tracking | Janardhan Chejarla | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    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); } } ========================================================

    Pentaho BI Platform Tracking | 4 years ago | Janardhan Chejarla
    java.lang.NullPointerException
  2. 0

    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); } } ========================================================

    Pentaho BI Platform Tracking | 4 years ago | Janardhan Chejarla
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at mondrian.rolap.cache.SegmentCacheIndexImpl$HeaderInfo.access$000()
    2. mondrian.rolap.cache
      SegmentCacheIndexImpl.loadSucceeded
      1. mondrian.rolap.cache.SegmentCacheIndexImpl$HeaderInfo.access$000(SegmentCacheIndexImpl.java:885)
      2. mondrian.rolap.cache.SegmentCacheIndexImpl.loadSucceeded(SegmentCacheIndexImpl.java:191)
      2 frames
    3. mondrian.rolap.agg
      SegmentCacheManager$Actor.run
      1. mondrian.rolap.agg.SegmentCacheManager$Handler.visit(SegmentCacheManager.java:554)
      2. mondrian.rolap.agg.SegmentCacheManager$SegmentLoadSucceededEvent.acceptWithoutResponse(SegmentCacheManager.java:1120)
      3. mondrian.rolap.agg.SegmentCacheManager$Actor.run(SegmentCacheManager.java:1032)
      3 frames
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:662)
      1 frame