Null Pointer Exception When Submiting Flow Via Web Service (Doc ID 2127024.1)

Last updated on APRIL 14, 2016

Applies to:

Oracle Fusion Global Payroll Cloud Service - Version 11.1.10.0.0 and later
Information in this document applies to any platform.

Symptoms

On : 11.1.10.0.0 version, Global Payroll

Have followed the steps in <Note 2014778.1> to create a custom flow so that we can automate the PBL process via a web service. Via the application UI, we can upload our file to UCM, take the content ID and submit the flow and the process works as expected and everything is good. When we submit the flow via the FlowActionsService Web Service, the CreateBatchFromFile ESS job is failing with a null pointer exception. Upon review of MOS <Note 1928267.1>(FUSION Payroll: Error Calling Payroll Batch Loader From Web Services), we followed those instructions but still the CreateBatchFromFile ESS job is failing. It appears from the log file that the UcmID is not being passed from the flow parameters to the CreateBatchFromFile ESS job. Compared the log file and that is really the only difference.

ERROR
-----------------------
"java.lang.NullPointerException
at oracle.apps.hcm.processFlows.core.publicModel.applicationModule.LoadBatchAMImpl.retrieveAttachment(LoadBatchAMImpl.java:218)
at oracle.apps.hcm.interfaces.batch.ess.program.LoadBatchFromFile.loadAttachementData(LoadBatchFromFile.java:360)
at oracle.apps.hcm.interfaces.batch.ess.program.LoadBatchFromFile.firstRun(LoadBatchFromFile.java:254)
at oracle.apps.hcm.interfaces.batch.ess.program.LoadBatchFromFile.execute(LoadBatchFromFile.java:138)
at oracle.apps.fnd.applcp.request.exec.ExecutableWrapper.executeHelper(ExecutableWrapper.java:99)
at oracle.apps.fnd.applcp.request.exec.ExecWrapperBase.execute(ExecWrapperBase.java:161)
at oracle.apps.fnd.applcp.request.exec.ExecutableWrapper.execute(ExecutableWrapper.java:85)
at oracle.as.scheduler.rp.JavaSysExecWrapper$1.run(JavaSysExecWrapper.java:367)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
at oracle.security.jps.internal.jaas.AccActionExecutor.execute(AccActionExecutor.java:74)
at oracle.security.jps.internal.jaas.AbstractSubjectSecurity$ActionExecutorWrapper.execute(AbstractSubjectSecurity.java:242)
at oracle.security.jps.internal.jaas.CascadeActionExecutor$SubjectPrivilegedExceptionAction.run(CascadeActionExecutor.java:83)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
at weblogic.security.Security.runAs(Security.java:61)
at oracle.security.jps.wls.jaas.WlsActionExecutor.execute(WlsActionExecutor.java:51)
.........................................."


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Create Custom Flow
2. Execute it

BUSINESS IMPACT
-----------------------
The issue has the following business impact:
Due to this issue, users cannot use the custom flow.

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