IBM Support

JR45472: CMVC 226456 - PREVENT A NUMBERFORMATEXCEPTION WHEN PASSING A LARGE LINEID FROM STERLING VIA PROCESSORDER

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When leveraging the ProcessOrder service interface, a
    NumberFormatException may be thrown if a large
    ExternalOrderItemID is passed.
    
    Example
    
    Previous exception:
    Message:
       _ERR_NUMBER_FORMAT_EXCEPTION
    Stack trace:
    com.ibm.commerce.exception.ECSystemException: The following
    number format exception occurred during processing: "For input
    string: "2013010710501243012345"".
     at
    com.ibm.commerce.order.commands.AbstractOrderCalculateExternalCm
    dImpl.performExecute(AbstractOrderCalculateExternalCmdImpl.java:
    1255)
     at
    com.ibm.commerce.command.ECCommandTarget.executeCommand(ECComman
    dTarget.java:157)
     at
    com.ibm.ws.cache.command.CommandCache.executeCommand(CommandCach
    e.java:332)
     at
    com.ibm.websphere.command.CacheableCommandImpl.execute(Cacheable
    CommandImpl.java:166)
     at
    com.ibm.commerce.command.AbstractECTargetableCommand.execute(Abs
    tractECTargetableCommand.java:217)
     at
    com.ibm.commerce.foundation.server.command.soi.MessageMappingCmd
    Impl.invokeCommand(MessageMappingCmdImpl.java:229)
     ...
     ...
    Caused by: java.lang.NumberFormatException: For input string:
    "2013010710501243012345"
     at java.lang.Throwable.<init>(Throwable.java:67)
     at
    java.lang.NumberFormatException.forInputString(NumberFormatExcep
    tion.java:59)
     at java.lang.Long.parseLong(Long.java:433)
     at java.lang.Long.<init>(Long.java:689)
     at
    com.ibm.commerce.base.objects.WCSStringConverter.StringToLong(WC
    SStringConverter.java:435)
     at
    com.ibm.commerce.order.objects.OrderItemAccessBean.setCorrelatio
    nGroup(OrderItemAccessBean.java:417)
     at
    com.ibm.commerce.order.commands.OrderCalculateExternalCmdImpl.cr
    eatePriceInformationOnlyOrderItems(OrderCalculateExternalCmdImpl
    .java:1727)
     at
    com.ibm.commerce.order.commands.OrderCalculateExternalCmdImpl.po
    stOrderCalculation(OrderCalculateExternalCmdImpl.java:271)
     at
    com.ibm.commerce.order.commands.AbstractOrderCalculateExternalCm
    dImpl.performExecute(AbstractOrderCalculateExternalCmdImpl.java:
    1228)
     ... 60 more
    

Local fix

Problem summary

  • USERS AFFECTED:
    WebSphere Commerce users on v7.0 who use an external OMS via the
    ProcessOrder service
    
    PROBLEM ABSTRACT:
    A NumberFormatException is thrown when using a large
    ExternalOrderItemID passed from an external OMS
    
    BUSINESS IMPACT:
    May lead to pricing failures on the WebSphere Commerce side.
    
    RECOMMENDATION:
    

Problem conclusion

  • The issue was attributed to the fact that the correlation group
    of the temporary order item created for the
    price-information-only order line from Sterling Commerce was set
    to the order line ID from Sterling instead of the WebSphere
    Commerce order item ID. This is resolved with this iFix.
    
    
    
    -------------------------------------------------------------
    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

    JR45472

  • 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

    2013-01-21

  • Closed date

    2013-02-21

  • Last modified date

    2013-02-21

  • 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:
21 February 2013