IBM Support

PK65641: PERSONALIZATION (PZN) RETURNS A NULLPOINTEREXCEPTION IF AN ATTRIBUTE IS NOT FOUND.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Personalization (PZN) returns a NullPointerException if an
    attribute is not found.  This APAR is designed to allow PZN to
    handle the return value not found rather than throwing
    NullPointerException.
    
    
    Here's the exception handling problem example which this APAR
    resolves.
    
    The exception occurred because the attribute <AttributeName>
    was not found on the Session, per message in tracing:
    
    [5/5/08 13:59:57:632 CDT] 0000004c SessionAttrib 3
    com.ibm.websphere.personalization.applicationObjects.SessionAttr
    ibuteApp
    licationObject get Session attribute '<AttributeName>' not found
    
    Since the Session Attribute is not set, the following
    NullPointerException was thrown.
    
    
    [5/5/08 13:59:57:633 CDT] 0000004c PznXMLInterpr >
    com.ibm.websphere.personalization.rules.PznXMLInterpreter
    handleException ENTRY
    [java.lang.NullPointerException,"",com.ibm.websphere.personaliza
    tion.con
    text.PersonalizationContext@4f916465]
     [5/5/08 13:59:57:638 CDT] 0000004c SystemErr     R
    java.lang.NullPointerException
      at
    com.ibm.websphere.personalization.rules.PznXMLActionInterpreter.
    evaluate
    ActionCondition(PznXMLActionInterpreter.java(Compiled Code))
      at
    com.ibm.websphere.personalization.rules.PznXMLActionInterpreter.
    evaluate
    ActionStatements(PznXMLActionInterpreter.java:602)
      at
    com.ibm.websphere.personalization.rules.PznXMLActionInterpreter.
    evaluate
    ActionXML(PznXMLActionInterpreter.java:142)
      at
    com.ibm.websphere.personalization.rules.PznXMLActionInterpreter.
    evaluate
    XML(PznXMLActionInterpreter.java:93)
      at
    com.ibm.websphere.personalization.rules.PznXMLInterpreter.fire(P
    znXMLInt
    erpreter.java:177)
    

Local fix

Problem summary

  • NullPointerException occurs when a rule utilizes Session request
    attribute and the customer application has not set the value.  S
    should show a QueryException.
    
    Code was updated to properly handle the lack of value setting an
    the correct exception.  It will not fix the rule execution, as t
    customer will still need to ensure that the request attribute is
    correctly set.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PK65641

  • Reported component name

    WEBSPHERE PERSO

  • Reported component ID

    5724E7614

  • Reported release

    60G

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2008-05-06

  • Closed date

    2008-05-28

  • Last modified date

    2008-05-28

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WEBSPHERE PERSO

  • Fixed component ID

    5724E7614

Applicable component levels

  • R60E PSY

       UP

  • R60G PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSC3QNU","label":"Personalization"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.0.1.3","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
28 May 2008