IBM Support

IT22141: SWIFTNET7 CLIENT SERVICE THROWS A CLASS CAST EXCEPTION DURING THE HANDLECLIENTRESPONSE MESSAGE OPERATION

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • If <SessionToken> in ProcessData contains other XML struct than
    expected SWIFT session token string, there might be an
    exception java.lang.ClassCastException:
    
    org.apache.xerces.dom.DeferredElementNSImpl.
    from Swnet7Client.log:
    [] ERROR [SendHandler.handleClientResponse - 60827008] Caught
    Exception
    [] ERROR [1503039902604]
    org.apache.xerces.dom.DeferredElementNSImpl incompatible with
    java.lang.String
    [] ERRORDTL [1503039902604]java.lang.ClassCastException:
    org.apache.xerces.dom.DeferredElementNSImpl incompatible with
    java.lang.String
            at
    com.sterlingcommerce.woodstock.services.swiftnet.swiftnet7.clien
    t.SoapHttpHandler.endHttpSession(SoapHttpHandler.java:308)
            at
    com.sterlingcommerce.woodstock.services.swiftnet.swiftnet7.clien
    t.SendHandler.handleClientResponse(SendHandler.java:1260)
            at
    com.sterlingcommerce.woodstock.services.swiftnet.swiftnet7.clien
    t.SwiftClientService.handleClientResponse(SwiftClientService.jav
    a:79)
            at
    sun.reflect.GeneratedMethodAccessor555.invoke(Unknown Source)
            at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
    AccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:600)
            at
    com.sterlingcommerce.woodstock.services.swiftnet.swiftnet7.Swift
    Service.processSwiftMsg(SwiftService.java:147)
            at
    com.sterlingcommerce.woodstock.services.swiftnet.swiftnet7.Swift
    Service.processData(SwiftService.java:102)
            at
    com.sterlingcommerce.woodstock.workflow.activity.engine.Activity
    EngineHelper.invokeService(ActivityEngineHelper.java:1818)
            at
    com.sterlingcommerce.woodstock.workflow.activity.engine.Activity
    EngineHelper.nextMainLogic(ActivityEngineHelper.java:631)
            at
    com.sterlingcommerce.woodstock.workflow.activity.engine.Activity
    EngineHelper.next(ActivityEngineHelper.java:362)
            at
    com.sterlingcommerce.woodstock.workflow.queue.WorkFlowQueueListe
    ner.doWork(WorkFlowQueueListener.java:440)
            at
    com.sterlingcommerce.woodstock.workflow.queue.WorkFlowQueueListe
    ner.run(WorkFlowQueueListener.java:236)
            at
    com.sterlingcommerce.woodstock.workflow.queue.WorkFlowQueueListe
    ner.onMessage(WorkFlowQueueListener.java:197)
            at
    com.sterlingcommerce.woodstock.workflow.queue.WorkFlowQueueListe
    ner.onMessage(WorkFlowQueueListener.java:184)
            at
    com.sterlingcommerce.woodstock.workflow.queue.wfTransporter.run(
    wfTransporter.java:444)
            at
    com.sterlingcommerce.woodstock.workflow.queue.BasicExecutor$Work
    er.run(BasicExecutor.java:529)
            at java.lang.Thread.run(Thread.java:736)
    

Local fix

  • RTC: 548230
    
    Modify BP to ensure that the <SessionToken> in ProcessData is
    released before the first SWIFTNet7 Client Service.
    

Problem summary

  • Users Affected:
    Customer using IBM Sterling B2B Integrator MEFG SWIFTNet7 with
    BP calling customized services.
    
    Problem Description:
    SWIFTNet7 Client Service throws a Class Cast Exception
    during the handleClientResponse message operation if ProcessData
    included a subnode to the SessionToken node.
    
    Platforms Affected:
    All
    

Problem conclusion

  • Resolution Summary:
    
    A code fix is provided.
    Enhanced SWIFTNet7 Client Service to handle non-String
    SessionToken values.
    
    Delivered In:
    5020601_10
    5020602_6
    5020603_6
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT22141

  • Reported component name

    STR B2B INTEGRA

  • Reported component ID

    5725D0600

  • Reported release

    524

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-08-25

  • Closed date

    2018-04-30

  • Last modified date

    2018-07-15

  • 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

    STR B2B INTEGRA

  • Fixed component ID

    5725D0600

Applicable component levels

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS3JSW","label":"IBM Sterling B2B Integrator"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"5.2.4","Edition":"","Line of Business":{"code":"LOB02","label":"AI Applications"}}]

Document Information

Modified date:
15 July 2018