IBM Support

LI76698: CMVC 219685 - AVOID RANDOM NOSCUHELEMENTEXCEPTION HANDLING WEB SERVICES TRANSACTION RESPONSE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • During handling of a web service response WebSphere Commerce
    could throw a NoSuchElementException randomly in a not
    reproducible way and a transaction response is not handled
    properly.
    
    The SystemOut.log reports the following exception:
    [2/14/12 11:37:31:125 UTC] 0000006d RemoteExcepti E CNTR0020E:
    EJB threw an unexpected (non-declared) exception during
    invocation of method "executeService" on bean
    "BeanId(WC_guest#Enablement-BaseComponentsData.jar#WebServiceEng
    ine, null)". Exception data: java.util.NoSuchElementException
    at
    java.util.HashMap$AbstractMapIterator.makeNext(HashMap.java:129)
    at java.util.HashMap$KeyIterator.next(HashMap.java:200)
    at
    java.util.AbstractCollection.toArray(AbstractCollection.java:304
    )
    at java.util.ArrayList.addAll(ArrayList.java:236)
    at
    com.ibm.commerce.datatype.MapBasedTypedProperty.keys(MapBasedTyp
    edProperty.java:85)
    at
    com.ibm.commerce.webcontroller.WebControllerHelper.mergeProperti
    es(WebControllerHelper.java:194)
    at
    com.ibm.commerce.command.AbstractViewCommand.mergeProperties(Abs
    tractViewCommand.java:142)
    at
    com.ibm.commerce.messaging.composer.Composer.getURLRecordResult(
    Composer.java:522)
    at
    com.ibm.commerce.messaging.composer.Composer.getURLRecordResult(
    Composer.java:367)
    ...
    
    NoSuchElementException is coming from the iterator of the
    default properties of the ViewRegistryEntry. This indicates that
    the default properties are being modified by another thread, for
    example StrutsRegistrySourceImpl, while this thread is iterating
    over it. That is an error happening due to multiple threads
    concurrently looking at the default properties.
    

Local fix

Problem summary

  • USERS AFFECTED:
    WebSphere Commerce users on v7.0 using outbound/inbound web
    services
    
    PROBLEM ABSTRACT:
    NoSuchElementException is received randomly during the handling
    of a web service response message
    
    BUSINESS IMPACT:
    It affects the web service flow management, making faulty a
    correct answer.
    
    RECOMMENDATION:
    

Problem conclusion

  • Make multiple threads accessing concurrently the default
    properties. This efix APAR code creates a copy of the default
    properties before modifying them, so that each thread has its
    own copy of the default properties.
    -------------------------------------------------------------
    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

    LI76698

  • Reported component name

    WC BUS ED ILINU

  • Reported component ID

    5724I3804

  • Reported release

    600

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    YesSpecatt / Pervasive

  • Submitted date

    2012-04-02

  • Closed date

    2012-06-25

  • Last modified date

    2012-06-25

  • 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 ED ILINU

  • Fixed component ID

    5724I3804

Applicable component levels

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

Document Information

Modified date:
25 June 2012