IBM Support

IZ85367: SENDING EMAILS WITH AUTHENTICATION AND EMAIL LISTENER CONFLICT.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Only one functionality can work properly.
    
    Detailed Steps to reproduce:
    
    1. Configure and activate email listener to receive emails
    2. Set up properties
    - mxe.smtp.user
    - mxe.smtp.password
    (in some cases it is necesary to set also parameter
    mail.smtp.auth=true
    to enable authentication)
    3. Restart Maximo
    4. Check if cron task is working properly without errors
    5. Open Work order and try to create communication:
    Error occures:
    BMXAA0259E - The e-mail cannot be sent.
    Access to default session denied
    
    Another way to reproduce the error:
    
    1. Check if there are no active email listeners (Deactivate if
    there
    are some active)
    2. Set up properties
    - mxe.smtp.user
    - mxe.smtp.password
    (in some cases it is necesary to set also parameter
    mail.smtp.auth=true
    to enable authentication)
    3. Restart Maximo
    4. Open Work order and try to create communication -
    Communication is
    working OK
    5. Activate existing email listener or create and activate a new
    one.
    Email listener is not working and there is an error in log file:
    11 Aug 2010 16:12:26:670 [ERROR] Encountered error processing
    e-mails
    from mail server.
    java.lang.SecurityException: Access to default session denied
     at javax.mail.Session.getDefaultInstance(Session.java:292)
     at
    psdi.common.emailstner.EmailListnerTask.readMessagesFromMailServ
    er
    (EmailListnerTask.java:572)
     at psdi.common.emailstner.EmailListnerTask.performTask
    (EmailListnerTask.java:232)
     at
    psdi.common.emailstner.EmailListnerCron.cronAction(EmailListnerC
    ron.
    java:49)
     at
    psdi.server.CronTaskManager.callCronMethod(CronTaskManager.java:
    1552)
     at
    psdi.server.CronTaskManager.access$400(CronTaskManager.java:83)
     at
    psdi.server.CronTaskManager$CronThread.run(CronTaskManager.java:
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: all                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION: Only one functionality can work         *
    *                      properly.                               *
    *                                                              *
    *                      Detailed Steps to reproduce:            *
    *                                                              *
    *                      1. Configure and activate email         *
    *                      listener to receive emails              *
    *                                                              *
    *                      2. Set up properties                    *
    *                                                              *
    *                      - mxe.smtp.user                         *
    *                                                              *
    *                      - mxe.smtp.password                     *
    *                                                              *
    *                      (in some cases it is necesary to set    *
    *                      also parameter                          *
    *                                                              *
    *                      mail.smtp.auth=true                     *
    *                                                              *
    *                      to enable authentication)               *
    *                                                              *
    *                      3. Restart Maximo                       *
    *                                                              *
    *                      4. Check if cron task is working        *
    *                      properly without errors                 *
    *                                                              *
    *                      5. Open Work order and try to create    *
    *                      communication:                          *
    *                                                              *
    *                      Error occures:                          *
    *                                                              *
    *                      BMXAA0259E - The e-mail cannot be sent. *
    *                                                              *
    *                      Access to default session denied        *
    *                                                              *
    *                      Another way to reproduce the error:     *
    *                                                              *
    *                      1. Check if there are no active email   *
    *                      listeners (Deactivate if                *
    *                                                              *
    *                      there                                   *
    *                                                              *
    *                      are some active)                        *
    *                                                              *
    *                      2. Set up properties                    *
    *                                                              *
    *                      - mxe.smtp.user                         *
    *                                                              *
    *                      - mxe.smtp.password                     *
    *                                                              *
    *                      (in some cases it is necesary to set    *
    *                      also parameter                          *
    *                                                              *
    *                      mail.smtp.auth=true                     *
    *                                                              *
    *                      to enable authentication)               *
    *                                                              *
    *                      3. Restart Maximo                       *
    *                                                              *
    *                      4. Open Work order and try to create    *
    *                      communication -                         *
    *                                                              *
    *                      Communication is                        *
    *                                                              *
    *                      working OK                              *
    *                                                              *
    *                      5. Activate existing email listener or  *
    *                      create and activate a new               *
    *                                                              *
    *                      one.                                    *
    *                                                              *
    *                      Email listener is not working and there *
    *                      is an error in log file:                *
    *                                                              *
    *                      11 Aug 2010 16:12:26:670  ERROR         *
    *                      Encountered error processing            *
    *                                                              *
    *                      e-mails                                 *
    *                                                              *
    *                      from mail server.                       *
    *                                                              *
    *                      java.lang.SecurityException: Access to  *
    *                      default session denied                  *
    *                                                              *
    *                      at                                      *
    *                      javax.mail.Session.getDefaultInstance(S *
    *                      ession.java:292)                        *
    *                                                              *
    *                      at                                      *
    *                                                              *
    *                      psdi.common.emailstner.EmailListnerTask *
    *                      .readMessagesFromMailServ               *
    *                                                              *
    *                      er                                      *
    *                                                              *
    *                      (EmailListnerTask.java:572)             *
    *                                                              *
    *                      at                                      *
    *                      psdi.common.emailstner.EmailListnerTask *
    *                      .performTask                            *
    *                                                              *
    *                      (EmailListnerTask.java:232)             *
    *                                                              *
    *                      at                                      *
    *                                                              *
    *                      psdi.common.emailstner.EmailListnerCron *
    *                      .cronAction(EmailListnerC               *
    *                                                              *
    *                      ron.                                    *
    *                                                              *
    *                      java:49)                                *
    *                                                              *
    *                      at                                      *
    *                                                              *
    *                      psdi.server.CronTaskManager.callCronMet *
    *                      hod(CronTaskManager.java:               *
    *                                                              *
    *                      1552)                                   *
    *                                                              *
    *                      at                                      *
    *                                                              *
    *                      psdi.server.CronTaskManager.access$400( *
    *                      CronTaskManager.java:83)                *
    *                                                              *
    *                      at                                      *
    *                                                              *
    *                      psdi.server.CronTaskManager$CronThread. *
    *                      run(CronTaskManager.java:               *
    *                                                              *
    *                      LOCAL FIX:                              *
    *                                                              *
    *                      n/a                                     *
    *                                                              *
    ****************************************************************
    * RECOMMENDATION:                                              *
    *                                                              *
    *                                                              *
    *                                                              *
    ****************************************************************
    Got error: Access to default session denied
    

Problem conclusion

  • The error was caused by a bug where default instances were
    obtained not using the credentials as set in the properties.
    Fixed by using the credentials in all instances.
    
    
    
    
    
    The fix for this APAR is contained in the following maintenance
    package:
    
      | release\fix pack | REL 7.1.1.8 - BS
    

Temporary fix

Comments

APAR Information

  • APAR number

    IZ85367

  • Reported component name

    MAXIMO SYS CONF

  • Reported component ID

    5724R46S1

  • Reported release

    711

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2010-09-22

  • Closed date

    2010-09-29

  • Last modified date

    2010-09-29

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Modules/Macros

  • MAXIMO
    

Fix information

  • Fixed component name

    MAXIMO SYS CONF

  • Fixed component ID

    5724R46S1

Applicable component levels

  • R711 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSLKT6","label":"IBM Maximo Asset Management"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"711","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
29 September 2010