IBM Support

JR59082: NullPointerException fetches context from DataBeanManager through REST

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When rendering a JSP invoked from a command triggered from a
    REST request, and using the following configuration in
    foundation-ext/wc-component.xml:
    
            <_config:configgrouping name="REST">
                <_config:property
    name="UseHttpControllerRequestObject" value="true"/>
                <_config:property name="PropagateHttpServletRequest"
     value="true"/>
            </_config:configgrouping>
        </_config:extendedconfiguration>
    
    
    the following exception might occur:
    
    [1/15/18 13:43:05:476 EST] 0000006c CommerceSrvr  E
    DataBeanManager
    activate(DataBean,HttpServletRequest,HttpServletResponse)
    CMN0409E: The following error occurred during processing:
    "java.lang.NullPointerException". java.lang.NullPointerException
        at
    com.ibm.commerce.beans.DataBeanManager.activate(DataBeanManager.
    java:334)
        at
    com.ibm.commerce.beans.DataBeanManager.activate(DataBeanManager.
    java:670)
        at
    com.ibm.commerce.beans.DataBeanManager.activate(DataBeanManager.
    java:513)
        at
    com.ibm.commerce.taglibs.base.tag.UseBean.doEndTag(UseBean.java:
    99)
        at
    com.ibm._jsp._MyCompanyJSP._jspService(_MyCompanyJSP.java:205)
        ...
    

Local fix

Problem summary

  • USERS AFFECTED:
    WebSphere Commerce users on Version 7 Feature Pack 8 and later.
    
    PROBLEM ABSTRACT:
    NullPointerException fetches context from DataBeanManager
    through REST
    
    BUSINESS IMPACT:
    Customers using the REST properties above and custom REST
    handlers or commands might encounter exceptions when fetching
    the context.
    
    RECOMMENDATION:
    

Problem conclusion

  • Added additional null checking to avoid potential
    NullPointerException errors.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR59082

  • Reported component name

    WC BUS EDITION

  • Reported component ID

    5724I3800

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-02-01

  • Closed date

    2018-06-26

  • Last modified date

    2018-06-26

  • 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

    WC BUS EDITION

  • Fixed component ID

    5724I3800

Applicable component levels

  • R800 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSYSYL","label":"WebSphere Commerce Enterprise"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB31","label":"WCE Watson Marketing and Commerce"}}]

Document Information

Modified date:
11 December 2021