IBM Support

JR57457: CatalogDescriptionCache throws NumberFormatException

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • CatalogDescriptionCache throws the following exception:
    
    CommerceSrvr  E com.ibm.commerce.common.beans.StoreDataBean
    getStoreCatalogs CMN1129E: Catalog "{0}" does not exist.
    java.lang.NumberFormatException: For input string:
    "3074457345616676668"
    	at
    java.lang.NumberFormatException.forInputString(NumberFormatExcep
    tion.java:77)
    	at java.lang.Integer.parseInt(Integer.java:507)
    	at java.lang.Integer.<init>(Integer.java:689)
    	at
    com.ibm.commerce.base.objects.WCSStringConverter.StringToInteger
    (WCSStringConverter.java:415)
    	at
    com.ibm.commerce.catalog.objects.CatalogDescriptionAccessBean.se
    tInitKey_language_id(CatalogDescriptionAccessBean.java:90)
    	at
    com.ibm.commerce.catalog.objsrc.CachedCatalogDescriptionAccessBe
    an.setInitKey_language_id(CachedCatalogDescriptionAccessBean.jav
    a:205)
    	at
    com.ibm.commerce.catalog.objsrc.CatalogDescriptionCache.findInCa
    cheByPrimaryKey(CatalogDescriptionCache.java:227)
    	at
    com.ibm.commerce.catalog.objsrc.CatalogDescriptionCache.myFindBy
    CatalogIdsAndLanguageId(CatalogDescriptionCache.java:519)
    	at
    com.ibm.commerce.catalog.objsrc.CatalogDescriptionCache.findByCa
    talogIdsAndLanguageId(CatalogDescriptionCache.java:468)
    	at
    com.ibm.commerce.common.beans.StoreDataBean.getStoreCatalogs(Sto
    reDataBean.java:866)
    	at
    com.ibm.commerce.common.beans.StoreDataBean.getSalesCatalogs(Sto
    reDataBean.java:1017)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    

Local fix

  • You can disable catalog description caching but disabling might
    cause a slight performance impact.
    To disable catalog description caching:
    1. Open the wc-server.xml file.
    2. In the InstanceProperties tag, change or add the
    CrossTransactionCache tag to set cacheMultipleByPrimaryKey to
    false:
    
    <CrossTransactionCache
    ...
    ...
    <com.ibm.commerce.catalog.objsrc.CatalogDescriptionCache
    cacheMultipleByPrimaryKey="false"/>
    ...
    </CrossTransactionCache>
    

Problem summary

  • USERS AFFECTED:
    WebSphere Commerce Version 7 Fix Pack 9, and Version 8.
    
    PROBLEM ABSTRACT:
    CatalogDescriptionCache throws NumberFormatException
    
    BUSINESS IMPACT:
    Incorrect or missing catalog descriptions.
    
    RECOMMENDATION:
    

Problem conclusion

  • Fixed code to handle NumberFormatException and to correctly
    display catalog descriptions.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR57457

  • 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

    2017-02-21

  • Closed date

    2018-10-26

  • Last modified date

    2018-10-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