IBM Support

JR42569: CMVC 221329 - SOLVE THE CLASSCASTEXCEPTION WHEN SITEMAPGENERATE IS INVOKED SPECIFYING A CATALOGID & FEP3+SEO IS ENABLED AND USED

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • In an environment with WebSphere Commerce 7.0 with Feature Pack
    3 or higher feature pack level, SitemapGenerate is invoked with
    a catalogId parameter. The SitemapGenerate process fails with a
    ClassCastException such as the example which follows below:
    
    [4/16/12 17:07:53:054 EDT] 000000ab SystemErr     R
    java.lang.ClassCastException: [Ljava.lang.Object; incompatible
    with [Ljava.lang.Long;
    [4/16/12 17:07:53:066 EDT] 000000ab SystemErr     R    at
    com.ibm.commerce.seo.commands.SitemapGenerateCmdImpl.createSiteM
    apForCatalog(SitemapGenerateCmdImpl.java:1523)
    [4/16/12 17:07:53:066 EDT] 000000ab SystemErr     R    at
    com.ibm.commerce.seo.commands.SitemapGenerateCmdImpl.createRawSi
    temapForSEO(SitemapGenerateCmdImpl.java:1358)
    [4/16/12 17:07:53:066 EDT] 000000ab SystemErr     R    at
    com.ibm.commerce.seo.commands.SitemapGenerateCmdImpl.createSiteM
    apForStore(SitemapGenerateCmdImpl.java:1186)
    [4/16/12 17:07:53:066 EDT] 000000ab SystemErr     R    at
    com.ibm.commerce.seo.commands.SitemapGenerateCmdImpl.performExec
    ute(SitemapGenerateCmdImpl.java:970)
    [4/16/12 17:07:53:066 EDT] 000000ab SystemErr     R    at
    com.ibm.commerce.command.ECCommandTarget.executeCommand(ECComman
    dTarget.java:157)
    

Local fix

  • Run SitemapGenerate by only passing the storeId and no
    catalogId.
      It will generate the sitemap for the master catalog
    corresponding to the store specified.
    
      If its any other sales catalog, then the workaround will be to
    disable SEO
    

Problem summary

  • USERS AFFECTED:
    All WebSphere Commerce 7.0 Feature Pack 3 or higher users who
    use SEO and SitemapGenerate.
    
    PROBLEM ABSTRACT:
    ClassCastException occurs when running SitemapGenerate with
    catalogId parameter when FEP3/FEP4 SEO is enabled
    
    BUSINESS IMPACT:
    Unable to generate a sitemap for the specified catalog
    
    RECOMMENDATION:
    

Problem conclusion

  • The iFix will resolve the ClassCastException to allow the
    SitemapGenerate job to complete properly.
    -------------------------------------------------------------
    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

    JR42569

  • Reported component name

    WC BUS EDITION

  • Reported component ID

    5724I3800

  • 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 EDITION

  • Fixed component ID

    5724I3800

Applicable component levels

  • R700 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":"7.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
28 June 2012