IBM Support

JR47565: CMVC 230247 - An AttributeDictionaryAttributeException is thrown when searching for Attribute Dictionary Attributes

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Merging the custom configuration file
    (<component>-extwc-component.xml) with the feature pack
    configuration file (<component>-fepwc-component.xml) is broken
    if the Feature Pack configuration has keys under the data
    service mapping that do not exist in the base configuration
    (<component>wc-component.xml). This occurs in the catalog
    component. For example, the CatalogFilter key is defined in the
    Feature Pack configuration file under
    com.ibm.commerce.catalog-fepwc-component.xml, but not in the
    base file under com.ibm.commerce.catalogwc-component.xml:
    
    
     <_config:mapping>
           <_config:key name="CatalogFilter" />
            <_config:basetable name="CATFILTER"
    useAllColumns="false">
             <_config:columns name="IDENTIFIER"
    caseSensitive="false"
    
    propertyName="CatalogFilterIdentifier/ExternalIdentifier/Identif
    ier" />
          </_config:basetable>
      </_config:mapping>
    
     The NullPointerException occurs when merging custom
    configurations for "CatalogFilter" with the base configurations,
    because the base configuration is missing this mapping.
    
     The exception is as follows:
    
     Caused by: java.lang.NullPointerException
       at
    com.ibm.commerce.foundation.internal.server.services.dataaccess.
    config.DataServiceConfigHelper.mergeMappingConfiguration(DataSer
    viceConfigHelper.java:613)
       at
    com.ibm.commerce.foundation.internal.server.services.dataaccess.
    config.DataServiceConfigHelper.getMappingConfiguration(DataServi
    ceConfigHelper.java:471)
       at
    com.ibm.commerce.foundation.internal.server.services.dataaccess.
    queryservice.QueryServiceHelper.getAttributeMapInfo(QueryService
    Helper.java:92)
       at
    com.ibm.commerce.foundation.internal.server.services.dataaccess.
    queryservice.gen.SearchAttributesMapper.<init>(SearchAttributesM
    apper.java:68)
       at
    com.ibm.commerce.foundation.internal.server.services.dataaccess.
    queryservice.gen.QueryDataComposer.useUnion(QueryDataComposer.ja
    va:578)
       at
    com.ibm.commerce.foundation.internal.server.services.dataaccess.
    queryservice.gen.QueryDataComposer.buildQuery(QueryDataComposer.
    java:469)
       at
    com.ibm.commerce.foundation.internal.server.services.dataaccess.
    queryservice.gen.QueryDataComposer.compose(QueryDataComposer.jav
    a:419)
       at
    com.ibm.commerce.foundation.internal.server.services.dataaccess.
    queryservice.SQLProcessor.generateQueryDynamicInfo(SQLProcessor.
    java:98)
       at
    com.ibm.commerce.foundation.internal.server.services.dataaccess.
    queryservice.XPathSQLProcessor.prepare(XPathSQLProcessor.java:47
    0)
       at
    com.ibm.commerce.foundation.internal.server.services.dataaccess.
    queryservice.QueryComposer.buildGraphBuilderQueryInfo(QueryCompo
    ser.java:333)
       at
    com.ibm.commerce.foundation.internal.server.services.dataaccess.
    queryservice.QueryComposer.composeQueryInfo(QueryComposer.java:1
    08)
       at
    com.ibm.commerce.foundation.internal.server.services.dataaccess.
    queryservice.QueryService.getQueryInfo(QueryService.java:129)
       at
    com.ibm.commerce.foundation.internal.server.services.dataaccess.
    datamediator.jdbc.JDBCDataMediator.getEntityObjects(JDBCDataMedi
    ator.java:236)
       at
    com.ibm.commerce.foundation.server.services.dataaccess.AbstractD
    ataServiceFacade.getEntityObjects(AbstractDataServiceFacade.java
    :158)
       at
    com.ibm.commerce.foundation.server.services.dataaccess.AbstractD
    ataServiceFacade.getPhysicalDataContainer(AbstractDataServiceFac
    ade.java:85)
       at
    com.ibm.commerce.foundation.server.services.dataaccess.AbstractD
    ataServiceFacade.getReadNounMediator(AbstractDataServiceFacade.j
    ava:189)
       at
    com.ibm.commerce.foundation.server.command.bod.bom.AbstractFetch
    NounUsingBusinessObjectMediatorCmdImpl.performExecute(AbstractFe
    tchNounUsingBusinessObjectMediatorCmdImpl.java:166)
       ... 88 more
    
    
     Steps to reproduce this problem:
    
     From the Management Center Catalog Filter and Pricing tool:
     1. Select New > Catalog Filter.
     2. Enter the name for the catalog filter and select Expand
    Filter by Categories, Attributes and Properties > Include
    categories > Create Condition group.
     3. Select Create new property and select 'Attribute Dictionary
    Attribute' as your property type.
     4. Enter search criteria and click OK.
    
     The custom com.ibm.commerce.catalog-extwc-component.xml file
    contains data mapping with the "CatalogFilter" key.
    

Local fix

Problem summary

  • USERS AFFECTED:
     WebSphere Commerce Version 7 users with custom configurations
    in the com.ibm.commerce.catalog-extwc-component.xml file.
    
     PROBLEM ABSTRACT:
     An AttributeDictionaryAttributeException is thrown when
    searching for Attribute Dictionary Attributes
    
     BUSINESS IMPACT:
     Catalog Filter cannot be created
    
     RECOMMENDATION:
    

Problem conclusion

  • The code has been updated so that Feature Pack and custom
    configurations are merged as expected.
     -------------------------------------------------------------
     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

    JR47565

  • 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

    2013-08-20

  • Closed date

    2014-03-17

  • Last modified date

    2014-03-17

  • 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