Failed to initialize LDAP error when flow tried to send an email

 3 Replies
 1 Subscribed to this topic
 164 Subscribed to this forum
Sort:
Author
Messages
Aihui
Basic Member
Posts: 8
Basic Member
    We are testing a work flow in our new enviornment and received an error. We got the error when the flow is attempting to send an email to a task defined in Process flow. The task is defined, users are assigned to the task and the users have email addresses defined in lawson security. Here is what we saw in workunit log file:

    Error while executing Email activity
    While getting emails in a task
    com.lawson.lawsec.authen.LSFSecurityAuthenException:Failed to initialize LDAP. Detailed Message is java.lang.NullPointerException
    Stack Trace : java.lang.NullPointerException
     at com.lawson.lawsec.util.LoggingEngine.updateDefaultLoggerFromConfig(LoggingEngine.java:302)
     at com.lawson.lawsec.util.LSLogger.updateDefaultLoggerFromConfig(LSLogger.java:148)
     at com.lawson.lawsec.api.LawsonSecurity.getConfig(LawsonSecurity.java:662)
     at com.lawson.lawsec.authen.LawsonSecurityXRefImpl.initialize(LawsonSecurityXRefImpl.java:84)
     at com.lawson.lawsec.authen.LawsonAuthentication.initialize(LawsonAuthentication.java:89)
     at com.lawson.bpm.db.model.impl.ldap.UserImpl.initilize(Unknown Source)
     at com.lawson.bpm.db.model.impl.ldap.UserImpl.getRecord(Unknown Source)
     at com.lawson.bpm.db.model.abstracts.DatabaseModelImpl.getUserRecord(Unknown Source)
     at com.lawson.bpm.database.utils.DbUtils.getEmail(Unknown Source)
     at com.lawson.bpm.processflow.workFlow.flowGraph.FgaEmail.getEmailsInTask(Unknown Source)
     at com.lawson.bpm.processflow.workFlow.flowGraph.FgaEmail.expandTask(Unknown Source)
     at com.lawson.bpm.processflow.workFlow.flowGraph.FgaEmail.startActivity(Unknown Source)
     at com.lawson.bpm.processflow.workFlow.flowGraph.FgActivity.execute(Unknown Source)
     at com.lawson.bpm.processflow.workFlow.flowGraph.FgProcess.run(Unknown Source)
     at com.lawson.bpm.pfengine.ProcessFlowEngine.execute(Unknown Source)
     at com.lawson.bpm.pfengine.ProcessFlowEngine.startProcessAt(Unknown Source)
     at com.lawson.bpm.eprocessserver.KBConnection.startProcess(Unknown Source)
     at com.lawson.bpm.eprocessserver.KBConnection.startProcess(Unknown Source)
     at com.lawson.bpm.eprocessserver.KBConnection.execute(Unknown Source)
     at com.lawson.bpm.eprocessserver.KBConnection.run(Unknown Source)
     at com.lawson.bpm.eprocessserver.util.ThreadPool$PooledThread.run(Unknown Source)
    ;
    Nested exception:
    com.lawson.lawsec.authen.LSFSecurityAuthenException:Failed to initialize LDAP. Detailed Message is java.lang.NullPointerException
    Stack Trace : java.lang.NullPointerException
     at com.lawson.lawsec.util.LoggingEngine.updateDefaultLoggerFromConfig(LoggingEngine.java:302)
     at com.lawson.lawsec.util.LSLogger.updateDefaultLoggerFromConfig(LSLogger.java:148)
     at com.lawson.lawsec.api.LawsonSecurity.getConfig(LawsonSecurity.java:662)
     at com.lawson.lawsec.authen.LawsonSecurityXRefImpl.initialize(LawsonSecurityXRefImpl.java:84)
     at com.lawson.lawsec.authen.LawsonAuthentication.initialize(LawsonAuthentication.java:89)
     at com.lawson.bpm.db.model.impl.ldap.UserImpl.initilize(Unknown Source)
     at com.lawson.bpm.db.model.impl.ldap.UserImpl.getRecord(Unknown Source)
     at com.lawson.bpm.db.model.abstracts.DatabaseModelImpl.getUserRecord(Unknown Source)
     at com.lawson.bpm.database.utils.DbUtils.getEmail(Unknown Source)
     at com.lawson.bpm.processflow.workFlow.flowGraph.FgaEmail.getEmailsInTask(Unknown Source)
     at com.lawson.bpm.processflow.workFlow.flowGraph.FgaEmail.expandTask(Unknown Source)
     at com.lawson.bpm.processflow.workFlow.flowGraph.FgaEmail.startActivity(Unknown Source)
     at com.lawson.bpm.processflow.workFlow.flowGraph.FgActivity.execute(Unknown Source)
     at com.lawson.bpm.processflow.workFlow.flowGraph.FgProcess.run(Unknown Source)
     at com.lawson.bpm.pfengine.ProcessFlowEngine.execute(Unknown Source)
     at com.lawson.bpm.pfengine.ProcessFlowEngine.startProcessAt(Unknown Source)
     at com.lawson.bpm.eprocessserver.KBConnection.startProcess(Unknown Source)
     at com.lawson.bpm.eprocessserver.KBConnection.startProcess(Unknown Source)
     at com.lawson.bpm.eprocessserver.KBConnection.execute(Unknown Source)
     at com.lawson.bpm.eprocessserver.KBConnection.run(Unknown Source)
     at com.lawson.bpm.eprocessserver.util.ThreadPool$PooledThread.run(Unknown Source)
    ;
     at com.lawson.lawsec.authen.LawsonSecurityXRefImpl.initialize(LawsonSecurityXRefImpl.java:126)
     at com.lawson.lawsec.authen.LawsonAuthentication.initialize(LawsonAuthentication.java:89)
     at com.lawson.bpm.db.model.impl.ldap.UserImpl.initilize(Unknown Source)
     at com.lawson.bpm.db.model.impl.ldap.UserImpl.getRecord(Unknown Source)
     at com.lawson.bpm.db.model.abstracts.DatabaseModelImpl.getUserRecord(Unknown Source)
     at com.lawson.bpm.database.utils.DbUtils.getEmail(Unknown Source)
     at com.lawson.bpm.processflow.workFlow.flowGraph.FgaEmail.getEmailsInTask(Unknown Source)
     at com.lawson.bpm.processflow.workFlow.flowGraph.FgaEmail.expandTask(Unknown Source)
     at com.lawson.bpm.processflow.workFlow.flowGraph.FgaEmail.startActivity(Unknown Source)
     at com.lawson.bpm.processflow.workFlow.flowGraph.FgActivity.execute(Unknown Source)
     at com.lawson.bpm.processflow.workFlow.flowGraph.FgProcess.run(Unknown Source)
     at com.lawson.bpm.pfengine.ProcessFlowEngine.execute(Unknown Source)
     at com.lawson.bpm.pfengine.ProcessFlowEngine.startProcessAt(Unknown Source)
     at com.lawson.bpm.eprocessserver.KBConnection.startProcess(Unknown Source)
     at com.lawson.bpm.eprocessserver.KBConnection.startProcess(Unknown Source)
     at com.lawson.bpm.eprocessserver.KBConnection.execute(Unknown Source)
     at com.lawson.bpm.eprocessserver.KBConnection.run(Unknown Source)
     at com.lawson.bpm.eprocessserver.util.ThreadPool$PooledThread.run(Unknown Source)

    ErrorLog in Process : timsftepa_V08 Workunit : 244171, ActivityType=EMAIL, ActivityName=Email2200, ActivityId=EMAIL2729 Date:05/03/2012 Time:10:08:24.250
    Error while executing Email activity - 'To' email address not given.


    Has anyone seen this type error before? We opened a lawson case but not resolved yet. Any advice will be very appreciated. Thanks.
    thanef
    Veteran Member
    Posts: 47
    Veteran Member
      I had the same problem, Lawson directed me to these KB's to change a websphere setting.
      "KB articles 5434581 and 5323168 address permission issues that relate to the errors you are receiving from ProcessFlow."
      SP
      Veteran Member
      Posts: 122
      Veteran Member
        Please let us know if this resolves the issue. Also, you didn't mention,
        but have you checked to make sure that the Workflow flag is set to '1' in
        LS Admin for the users and that they have a valid value for ISOLocale (e.g.
        "en_us")??

        On Thu, May 3, 2012 at 10:23 AM, wrote:

        > [image: LawsonGuru.com Logo] <https://www.lawsonguru.com/> Lawson
        > ProcessFlow Forum Notification A message was posted to a thread you are
        > tracking. *RE: Failed to initialize LDAP error when flow tried to send
        > an email* Posted by: *thanef*
        > 05/03/2012 09:21 AM I had the same problem, Lawson directed me to these
        > KB's to change a websphere setting.
        > "KB articles 5434581 and 5323168 address permission issues that relate to
        > the errors you are receiving from ProcessFlow."
        > ------------------------------
        >
        > To view the complete thread and reply via your browser, please visit:
        >
        > https://www.lawsonguru.co...ed-to-send-an-email/
        >
        > You were sent this email because you opted to receive email notifications
        > when someone posted and/or responded to a message on this forum.
        > To unsubscribe to this thread please visit your user profile page and
        > change your subscription options.
        >
        > Thank you,
        > LawsonGuru.com
        >

        Aihui
        Basic Member
        Posts: 8
        Basic Member
          I have changed umask to 000 and updated the permission for all log files at that directory but not lase*.lck files before. Now following the article mentioned in your post, I updated permissions for all lck files and it worked! Though I couldn't explain why the other environments work with the same permission that didn't work for this environment. But anyway, it works now and thank you very much for your reply!!