Skip to Content
author's profile photo Former Member
Former Member

Traffic Lights As Exceptions - java.lang.nullPointerException

Hi

I am trying to display traffic lights instead of the standard icons for exceptions in the analysis item. I have implemented the modification as detailed on numerous other SDN postings and contained within the "How to Display Traffic Lights for Exceptions in BI Web Reports" document.

However, when I execute the web template, I get java.lang.NullPointerException.

Here is the code:

<bi:ANALYSIS_ITEM name="ANALYSIS_ITEM_3" designwidth="500" designheight="200" >
  <bi:WIDTH value="500" />
  <bi:INTERACTION_ALLOWED value="X" />
  <bi:DATA_PROVIDER_REF value="DP_3" />
  <bi:ANALYSIS_ITEM_MODE type="CHOICE" value="AIM_AUTOMATIC" />
  <bi:MODIFICATION type="CHOICE" value="MOD_SINGLE_MODULE" >
    <bi:MOD_SINGLE_MODULE type="COMPOSITE" >
      <bi:MOD_ALIAS value="MYMOD" />
      <bi:ACTIVE value="X" />
      <bi:MOD_SELECT type="CHOICE" value="MOD_GENERIC_MODULE" >
        <bi:MOD_GENERIC_MODULE type="COMPOSITE" >
          <bi:MOD_REFERENCE value="com.sap.ip.bi.rig.ExceptionImage" />
          <bi:MOD_PARAMETER_LIST type="ORDEREDLIST" >
            <bi:MOD_PARAMETER type="COMPOSITE" index="1" >
              <bi:MOD_PARAM_NAME value="ALERT_GOOD" />
              <bi:MOD_PARAM_VALUE type="CHOICE" value="IMAGE" >
                  <bi:IMAGE value="bwmimerep:///sap/bw/mime/BEx/CustomImages/Green.jpg" />
              </bi:MOD_PARAM_VALUE>
             </bi:MOD_PARAMETER>
             <bi:MOD_PARAMETER type="COMPOSITE" index="2" >
               <bi:MOD_PARAM_NAME value="ALERT_BAD" />    
        <bi:MOD_PARAM_VALUE type="CHOICE" value="IMAGE" >
                  <bi:IMAGE value="bwmimerep:///sap/bw/mime/BEx/CustomImages/Red.jpg" />
              </bi:MOD_PARAM_VALUE>
             </bi:MOD_PARAMETER>
    </bi:MOD_PARAMETER_LIST>
  </bi:MOD_GENERIC_MODULE>
      </bi:MOD_SELECT>
    </bi:MOD_SINGLE_MODULE>
  </bi:MODIFICATION>
  <bi:ROW_HEADER_VISIBLE value="X" />
  <bi:COLUMN_HEADER_VISIBLE value="X" />
  <bi:USE_SCROLLBARS value="DISABLED" />
  <bi:PAGING_AREA_BOTTOM_VISIBLE value="" />
  <bi:PAGING_AREA_TOP_VISIBLE value="" />
  <bi:BLOCK_COLUMNS_SIZE value="2" />
  <bi:EXCEPTION_RENDERING value="SYMBOL" />
</bi:ANALYSIS_ITEM>

I am pretty sure the path to the image(s) is correct - if I include an image item in the template, and point it to that path, then the correct image displays, of course this only works when the modification is inactive. As soon as I activate the modification, then I get the NullPointerException message.

Is there something I need to do in order to get com.sap.ip.bi.rig.ExceptionImage to work? How can I tell if this modification is available on our ABAP system?

Cheers,

Andrew

Edited by: Andrew Lewis on Apr 15, 2011 3:56 PM

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Apr 18, 2011 at 04:43 AM

    Hi Andrew,

    Your XHTML code looks alright; take a look at the 'SAP Note 1235840 - Analysis:Modification: Termination if parameter is incorrect' to check if you are on the right version. I guess your version already supports the modification module, else it should've thrown you a '....module could not be loaded error'.

    --Priya

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi

      Thanks for the response.

      We're already on EHP1:

      BI System is SAP EHP 1 for SAP NetWeaver 7.0

      The deployed components, when looking via the Support Desk Tool (web) are all Version 7.01 Support Pack 7

      Cheers,

      Andrew

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.