Oozie Email Action Fails With Error: java.lang.NullPointerException After Upgrading to BDA 4.4/CDH 5.5

(Doc ID 2127326.1)

Last updated on APRIL 14, 2016

Applies to:

Big Data Appliance Integrated Software - Version 4.4.0 and later
Linux x86-64

Symptoms

After upgrading to BDA 4.4/CDH 5.5, Oozie fails to start or oozie email actions fails with the following exception:

SERVER[example.com] E0100: Could not initialize service [null], java.lang.NullPointerException
org.apache.oozie.service.ServiceException: E0100: Could not initialize service [null], java.lang.NullPointerException
at org.apache.oozie.service.EventHandlerService.init(EventHandlerService.java:92)
at org.apache.oozie.service.Services.setServiceInternal(Services.java:386)
at org.apache.oozie.service.Services.setService(Services.java:372)
...
Caused by: java.lang.NullPointerException
at java.lang.String.<init>(String.java:168)
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)
...

 

Caused by: java.lang.NullPointerException
  at java.lang.String.(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.action.email.EmailActionExecutor.email(EmailActionExecutor.java:171)
  at org.apache.oozie.action.email.EmailActionExecutor.validateAndMail(EmailActionExecutor.java:161)
  at org.apache.oozie.action.email.EmailActionExecutor.start(EmailActionExecutor.java:108)
  ... 15 more

 

2016-04-14 11:26:36,228 WARN org.apache.oozie.command.wf.ActionStartXCommand: SERVER[host.example.org] USER[*] GROUP[-] TOKEN[] APP[Transfers-Balance Processing] JOB [*-oozie-oozi-W] ACTION[*-oozie-oozi-W@Error*] Setting Action Status to [DONE]
2016-04-14 11:26:36,244 INFO org.apache.oozie.command.wf.ActionEndXCommand: SERVER[host.example.org] USER[*] GROUP[-] TOKEN[] APP[Transfers-Balance Processing] JOB[*-oozie-oozi-W] ACTION[*-oozie-oozi-W@Error*] ERROR is considered as FAILED for SLA

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms