IBM Support

IV13932: CMVC 217908 - ALLOW SIMILARLY-NAMED PROMOTIONS CODES TO BE APPLIED TO AN ORDER.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When multiple promotions exist where one promotion's public
    promotion code matches the corresponding characters of another
    promotion's public code, the shorter promotion code may not
    work.
    
    For example,
    
    Given two active promotions, one with promotion code 'CODE1' and
    another with promotion code 'CODE11', you see the following
    behavior:
         - If promotion code 'CODE1' is applied to a qualifying
    order, the corresponding promotion is not applied.
         - If promotion code 'CODE11' is applied to a qualifying
    order, the corresponding promotion is applied.
         - If the promotion associated with promotion code 'CODE11'
    is deactivated, then if promotion code 'CODE1' is applied to a
    qualifying order, the corresponding promotion is applied.
    
    If you enable 'com.ibm.commerce.marketing.promotion.*=all'
    tracing, you notice the following NullPointerException while
    trying to find the promotions associated with a promotion code
    '%CODE1%':
    
    [1/1/12 00:00:00:000 EST] 00000001 promotion     >
    com.ibm.commerce.marketing.promotion.AbstractPromotionSessionBea
    nPersistenceManager findActivePromotionByCodePatternAndStoreID()
    ENTRY
    [1/1/12 00:00:00:000 EST] 00000001 promotion     3
    com.ibm.commerce.marketing.promotion.AbstractPromotionSessionBea
    nPersistenceManager findActivePromotionByCodePatternAndStoreID()
    storeID=10001
    [1/1/12 00:00:00:000 EST] 00000001 promotion     3
    com.ibm.commerce.marketing.promotion.AbstractPromotionSessionBea
    nPersistenceManager findActivePromotionByCodePatternAndStoreID()
    code=%CODE1%
    [1/1/12 00:00:00:000 EST] 00000001 promotion     >
    com.ibm.commerce.marketing.promotion.AbstractPromotionSessionBea
    nPersistenceManager myUnPackPromotionKeysOptCounterInfosTuple()
    ENTRY
    [1/1/12 00:00:00:000 EST] 00000001 promotion     3
    com.ibm.commerce.marketing.promotion.AbstractPromotionSessionBea
    nPersistenceManager findActivePromotionByCodePatternAndStoreID()
    java.lang.NullPointerException
    [1/1/12 00:00:00:000 EST] 00000001 promotion     3
    com.ibm.commerce.marketing.promotion.AbstractPromotionSessionBea
    nPersistenceManager findActivePromotionByCodePatternAndStoreID()
    Return ==>> null
    [1/1/12 00:00:00:000 EST] 00000001 promotion     <
    com.ibm.commerce.marketing.promotion.AbstractPromotionSessionBea
    nPersistenceManager findActivePromotionByCodePatternAndStoreID()
    RETURN
    

Local fix

  • Modify one of the promotion codes to use a more unique value.
    

Problem summary

  • USERS AFFECTED:
    WebSphere Commerce v7.0 users
    
    PROBLEM ABSTRACT:
    The shopper is unable to apply a public promotion code when
    there are other promotions defined with similar public codes.
    
    BUSINESS IMPACT:
    The shopper is unable to apply a public promotion code when
    there are other promotions defined with similar public codes.
    
    RECOMMENDATION:
    

Problem conclusion

  • The code was updated to resolve the NullPointerException being
    thrown due to the cached promotion data not being picked up
    correctly.
    
    -------------------------------------------------------------
    The latest available maintenance information can be obtained
    from the Recommended Fixes for WebSphere Commerce technote:
    http://www.ibm.com/support/docview.wss?rs=3046&uid=swg21261296
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV13932

  • Reported component name

    WC BUS EDITION

  • Reported component ID

    5724I3801

  • Reported release

    600

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-01-24

  • Closed date

    2012-02-10

  • Last modified date

    2012-02-10

  • 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

    5724I3801

Applicable component levels

  • R600 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSYSYL","label":"WebSphere Commerce Enterprise"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
10 February 2012