IBM Support

JR42570: CMVC 221358 - RESOLVE THE DATA LOAD PROBLEM FOR CLASSIC DESCRIPTIVE ATTRIBUTE RESULTING IN NULLPOINTEREXCEPTION.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Dataload of CSV values for classic descriptive attributes fails
    with NullPointerException coming from
    AbstractCatalogEntryMediator.populateATTRVALUE()
    
    Apr 13, 2012 8:12:01 AM
    com.ibm.commerce.foundation.dataload.businessobjectbuilder.Abstr
    actBusinessObjectBuilder processData
    FINER:
    An exception was caught:
    com.ibm.commerce.foundation.dataload.exception.DataLoadSystemExc
    eption: A null pointer exception occurs. Please check the
    exception stack in the error log file to see which class causes
    the null point exception.
    Application message:
    A problem occurred while the business object writer
    {com.ibm.commerce.catalog.dataload.mediator.CatalogEntryAttribut
    eMediator@32543254}was executing the data object.
    Exception message:
    A null pointer exception occurs. Please check the exception
    stack in the error log file to see which class causes the null
    point exception.
    Stack trace:
    com.ibm.commerce.foundation.dataload.exception.DataLoadSystemExc
    eption: A null pointer exception occurs. Please check the
    exception stack in the error log file to see which class causes
    the null point exception.
     at
    com.ibm.commerce.foundation.dataload.businessobjectmediator.Abst
    ractBusinessObjectMediator.execute(AbstractBusinessObjectMediato
    r.java:441)
     at
    com.ibm.commerce.foundation.dataload.businessobjectbuilder.Abstr
    actBusinessObjectBuilder.processData(AbstractBusinessObjectBuild
    er.java:534)
     at
    com.ibm.commerce.foundation.dataload.businessobjectbuilder.Abstr
    actBusinessObjectBuilder.processData(AbstractBusinessObjectBuild
    er.java:484)
     at
    com.ibm.commerce.foundation.dataload.businessobjectbuilder.Abstr
    actBusinessObjectBuilder.execute(AbstractBusinessObjectBuilder.j
    ava:273)
     at
    com.ibm.commerce.foundation.dataload.AbstractBusinessObjectLoade
    r.processBusinessObjectBuilder(AbstractBusinessObjectLoader.java
    :1566)
     at
    com.ibm.commerce.foundation.dataload.AbstractBusinessObjectLoade
    r.loadData(AbstractBusinessObjectLoader.java:1364)
     at
    com.ibm.commerce.foundation.dataload.AbstractBusinessObjectLoade
    r.execute(AbstractBusinessObjectLoader.java:422)
     at
    com.ibm.commerce.foundation.dataload.DataLoaderMain.execute(Data
    LoaderMain.java:456)
     at
    com.ibm.commerce.foundation.dataload.DataLoaderMain.main(DataLoa
    derMain.java:213)
    Caused by: java.lang.NullPointerException
     at
    com.ibm.commerce.catalog.dataload.mediator.AbstractCatalogEntryM
    ediator.populateATTRVALUE(AbstractCatalogEntryMediator.java:2881
    )
     at
    com.ibm.commerce.catalog.dataload.mediator.CatalogEntryAttribute
    Mediator.populateATTRVALUE(CatalogEntryAttributeMediator.java:49
    8)
     at
    com.ibm.commerce.catalog.dataload.mediator.CatalogEntryAttribute
    Mediator.populateATTRVALUE(CatalogEntryAttributeMediator.java:44
    3)
     at
    com.ibm.commerce.catalog.dataload.mediator.CatalogEntryAttribute
    Mediator.transform(CatalogEntryAttributeMediator.java:172)
     at
    com.ibm.commerce.foundation.dataload.businessobjectmediator.Abst
    ractBusinessObjectMediator.execute(AbstractBusinessObjectMediato
    r.java:436)
     ... 8 more
    

Local fix

Problem summary

  • USERS AFFECTED:
    WebSphere Commerce v7 users who use dataload utility to load the
    data for classic descriptive attributes with integer or float
    value from CSV
    
    PROBLEM ABSTRACT:
    Dataload of classic descriptive attributes with integer value
    fails with NullPointerException
    
    BUSINESS IMPACT:
    Dataload of classic descriptive attributes with integer value or
    float value from CSV fails
    
    RECOMMENDATION:
    

Problem conclusion

  • The mediator code attempts to get ExternalIdentifier value for
    classic attribute, but classic attribute does not have
    ExternalIdentifier, thus this value in CSV is null. This causes
    a null pointer exception. The mediator code has been fixed for
    the mediator to get Name value instead of ExternalIdentifier for
    classic attribute dataload.
    
    -------------------------------------------------------------
    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

    JR42570

  • Reported component name

    WC BUS DEV ED W

  • Reported component ID

    5724I3900

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-04-18

  • Closed date

    2012-06-28

  • Last modified date

    2012-06-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

    WC BUS DEV ED W

  • Fixed component ID

    5724I3900

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SSYT2H","label":"WebSphere Commerce Developer Enterprise"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Line of Business":{"code":"LOB31","label":"WCE Watson Marketing and Commerce"}}]

Document Information

Modified date:
07 December 2021