IBM Support

IT25439: MAIL CLIENT ADAPTER FAILURE DUE TO INCORRECT EMAIL IS NOT PROCESSED BY THE ONFAULT STEP IN A BUSINESS PROCESS

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

  • In Sterling B2B Integrator(SBI) version 5263 iFix 3, the
    B2B Mail Client adapter fails due to incorrect inpputs provided
    in the email. For example, incorrect inputs in the To, CC or BCC
    field, causes failures.
    However, the business process does not go into the onFault
    available in the B2B Mail Client adapter.
    Error in the business process status report:
    
    <![CDATA[MYEDI_MAIL_CLIENT returns NONE as basic status, please
    report to your customer support]]
    
    Error in the b2bmailclient.log
    
    [2018-05-02 10:05:18.774] ERROR LaunchMailProcessingService,
    Exception while getting content Type =
    [2018-05-02 10:05:18.774] ERROR [1525269918774] Failed to load
    IMAP envelope
    [2018-05-02 10:05:18.79] ERRORDTL
    [1525269918774]javax.mail.MessagingException: Failed to load
    IMAP envelope
                    at
    com.sun.mail.imap.IMAPMessage.loadEnvelope(IMAPMessage.java:1226
    )
                    at
    com.sun.mail.imap.IMAPMessage.getSentDate(IMAPMessage.java:355)
                    at
    com.sterlingcommerce.woodstock.services.b2bmailsvs.LaunchMailPro
    cessingService.run(LaunchMailProcessingService.java:136)
                    at
    com.sterlingcommerce.woodstock.services.b2bmailsvs.SimpleMailCli
    ent.processData(SimpleMailClient.java:155)
                    at
    com.sterlingcommerce.woodstock.workflow.activity.engine.Activity
    EngineHelper.invokeService(ActivityEngineHelper.java:1826)
                    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:459)
                    at
    com.sterlingcommerce.woodstock.workflow.queue.WorkFlowQueueListe
    ner.run(WorkFlowQueueListener.java:240)
                    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:798)
    
    
    system.log
    
    
    [2018-05-02 10:05:18.884] DEBUG SimpleMailClient, releasing the
    lock after exception is thrown by lmProcService.run Fail to get
    content type
    [2018-05-02 10:05:18.884] DEBUG SimpleMailClient, general
    failure caught in catch Fail to run Mail Processing Service,
    Fail to get content type
    

Local fix

  • STRRTC - 569490
    SB/SB
    Circumvention: NONE
    

Problem summary

  • Users Affected:
    All
    
    Problem Description:
    The bmailclient adapter is failing with
    javax.mail.MessagingException: Failed to load IMAP envelope.
    It retrieves the rest of the messages that are in the
    remote inbox, but is not processing them due to the failure.
     This is causing issues because a lot of those subsequent
    messages that are correct get removed from the mail
    server and do not get processed by IBM Sterling Integrator.
    Although the  connection to the mail server is not a problem
    the following error is seen:
    
    javax.mail.MessagingException: Failed to load IMAP envelope at
    com.sun.mail.imap.IMAPMessage.loadEnvelope(IMAPMessage.java:1532
    ) at com.sun.mail.imap.IMAPMessage.getSize(IMAPMessage.java:511)
    at javax.mail.internet.MimeMessage.<init>(MimeMessage.java:245)
    at
    com.sterlingcommerce.woodstock.services.b2bmailsvs.LaunchMailPro
    cessingService.run(LaunchMailProcessingService.java:150) at
    com.sterlingcommerce.woodstock.services.b2bmailsvs.SimpleMailCli
    ent.processData(SimpleMailClient.java:155) at
    com.sterlingcommerce.woodstock.workflow.activity.engine.Activity
    EngineHelper.invokeService(ActivityEngineHelper.java:1826) 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:459) at
    Previous stack trace:
     ERRORDTL [1525269918884]javax.mail.MessagingException: Failed
    to load IMAP envelope
     at
    com.sun.mail.imap.IMAPMessage.loadEnvelope(IMAPMessage.java:1226
    )
     at com.sun.mail.imap.IMAPMessage.getSize(IMAPMessage.java:387)
     at javax.mail.internet.MimeMessage.<init>(MimeMessage.java:229)
     at
    com.sterlingcommerce.woodstock.services.b2bmailsvs.LaunchMailPro
    cessingService.run(LaunchMailProcessingService.java:150)
     at
    com.sterlingcommerce.woodstock.services.b2bmailsvs.SimpleMailCli
    ent.processData(SimpleMailClient.java:155)
     at
    com.sterlingcommerce.woodstock.workflow.activity.engine.Activity
    EngineHelper.invokeService(ActivityEngineHelper.java:1826)
     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)
    
    
    
    
    Platforms Affected:
    All
    

Problem conclusion

  • Resolution Summary:
    A code fix is provided.
    Some of Mailmime parameters need to be controlled before
    processing like mailMessage.getFrom, mailMessage.getSentDate,
    and mailMessage.getSubject. These are not supported by few
    Mail processing servers.
    
    We will control this behavior with new property
    "handleAdditionalMailMimeParams". By default we are not going to
    check getFrom (), SentDate, and getSubject().
    
    
    Delivered in:
    6000302
    6010000
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT25439

  • Reported component name

    STR B2B INTEGRA

  • Reported component ID

    5725D0600

  • Reported release

    526

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-06-21

  • Closed date

    2020-05-12

  • Last modified date

    2020-09-19

  • 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

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

Document Information

Modified date:
21 September 2020