You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Cazen Lee (JIRA)" <ji...@apache.org> on 2015/09/21 09:20:04 UTC

[jira] [Updated] (OOZIE-2365) oozie fail to start when smtp password not set

     [ https://issues.apache.org/jira/browse/OOZIE-2365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cazen Lee updated OOZIE-2365:
-----------------------------
    Attachment: OOZIE-2365-1.patch

It seems that "char[] pass" in ConfigurationService.getPassword could be null.
new String(null) cause NPE, so needeed to NPE handling.

This patch will help But I'm not sure this patch better than edit hadoop.conf.Configuration

If I was wrong, please notify me

Thank you

> oozie fail to start when smtp password not set
> ----------------------------------------------
>
>                 Key: OOZIE-2365
>                 URL: https://issues.apache.org/jira/browse/OOZIE-2365
>             Project: Oozie
>          Issue Type: Bug
>            Reporter: Michelle Chiang
>         Attachments: OOZIE-2365-1.patch
>
>
> when oozie.email.smtp.password not set, oozie fails to start.
> it should be able to handle null or default-value.
> Caused by: java.lang.NullPointerException
>         at java.lang.String.<init>(String.java:166)
>         at org.apache.oozie.service.ConfigurationService.getPassword(ConfigurationService.java:556)
>         at org.apache.oozie.service.ConfigurationService.getPassword(ConfigurationService.java:571)
>         at org.apache.oozie.sla.listener.SLAEmailEventListener.init(SLAEmailEventListener.java:110)
>         at org.apache.oozie.service.EventHandlerService.addEventListener(EventHandlerService.java:142)
>         at org.apache.oozie.service.EventHandlerService.initEventListeners(EventHandlerService.java:120)
>         at org.apache.oozie.service.EventHandlerService.init(EventHandlerService.java:83)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)