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

Traffic Lights As Exceptions - java.lang.nullPointerException


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:MOD_ALIAS value="MYMOD" />
      <bi:ACTIVE value="X" />
      <bi:MOD_SELECT type="CHOICE" value="MOD_GENERIC_MODULE" >
          <bi:MOD_REFERENCE value="" />
            <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_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:ROW_HEADER_VISIBLE value="X" />
  <bi:COLUMN_HEADER_VISIBLE value="X" />
  <bi:PAGING_AREA_TOP_VISIBLE value="" />
  <bi:BLOCK_COLUMNS_SIZE value="2" />

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 to work? How can I tell if this modification is available on our ABAP system?



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'.


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member


      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



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.