java.lang.NullPointerException

Pentaho BI Platform Tracking | Janardhan Chejarla | 4 years ago
  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
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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