ESS C Jobs End in Request Details Error "PreProcessing Failed to Setup Spawned Context".

(Doc ID 1425863.1)

Last updated on MAY 01, 2017

Applies to:

Oracle Fusion Application Toolkit - Version 11.1.1.5.1 and later
Information in this document applies to any platform.






**11/21/2014 checked for relevancy ***

Symptoms

ESS C Jobs end in request details error "preprocessing failed to setup spawned context".

Trace Information:

groovy.lang.MissingPropertyException: No such property: APPL_TOP for class: Script2 at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:49)
at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:241)
at Script2.run(Script2.groovy:1) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:561) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:536) at oracle.apps.fnd.applcp.request.exec.CPPreProcessHandler.expandExecutable(CPPreProcessHandler.java:1302)
at oracle.apps.fnd.applcp.request.exec.CPPreProcessHandler.setupSpawnedJobs(CPPreProcessHandler.java:1005) at oracle.apps.fnd.applcp.request.exec.CPPreProcessHandler.preProcess(CPPreProcessHandler.java:406) at oracle.as.scheduler.rp.SystemExecutableWrapper$PreProcessPEAction.run(SystemExecutableWrapper.java:1160)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313) at oracle.security.jps.internal.jaas.AccActionExecutor.execute(AccActionExecutor.java:51) at oracle.security.jps.internal.jaas.CascadeActionExecutor$SubjectPrivilegedExceptionAction.run(CascadeActionExecutor.java:79)
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:48)
at oracle.security.jps.internal.jaas.CascadeActionExecutor.execute(CascadeActionExecutor.java:52) at oracle.as.scheduler.security.internal.SecurityExecutorBase.execute(SecurityExecutorBase.java:137) at oracle.as.scheduler.rp.SystemExecutableWrapper.preProcess(SystemExecutableWrapper.java:369)
at oracle.as.scheduler.rp.SpawnedExecutableWrapper.preProcess(SpawnedExecutableWrapper.java:121) at oracle.as.scheduler.rp.EndpointProcessor.preProcessExecute(EndpointProcessor.java:666)
at oracle.as.scheduler.rp.EndpointProcessor.preProcessExecuteWrapper(EndpointProcessor.java:625) at oracle.as.scheduler.adapter.EndpointImpl.preProcessExecute(EndpointImpl.java:494)
at oracle.as.scheduler.ejb.EssAppEndpointBean.preProcessExecute(EssAppEndpointBean.java:148) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597) at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)


The oracle.apps.fnd.applcp logger was set to FINE on the ESS_server to see where PreProcessing is looking for the environment.properties files. 

Provisioning installs the environment.properties in only one location, and uses the -Dess.config.dir to identify it. There is no message indicating that ESS has tried to load a file from the -Dess.config.dir location. This indicates that ESS is unable to retrieve the value of the -Dess.config.dir property. That should be the first location used.

Multiple "Env File not Found" messages identify the locations ESS PreProcessing is checking for environment files.   ESS looks for spawned job environment values at three levels: global, domain,
and server.  At the global level it looks for -Dess.config.dir. In pre-PS5 installs like this, it also looks in the requestFileDirectory. At the domain level it looks in the Domain Config Directory. At the server level it looks in the Server Config Directory.

ess_server1-diagnostic.log

[2012-02-22T14:25:52.905-06:00] [ess_server1] [TRACE] [] [oracle.apps.fnd.applcp] [tid: [ACTIVE].ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: RR_GL_USER] [ecid: 004iPDJer2R1rYRquWq2UH0003KT002SKQ,0:1:1:13:1:87:100000165] [SRC_CLASS: oracle.apps.fnd.applcp.request.exec.CPRequestContext] [APP: FinancialsEssApp#V2.0] [ESS_RequestID: 29988] [SRC_METHOD: setApplSession] [ESS_Module: Processor] [ESS_JobMetadataID: JobDefinition://oracle/apps/ess/financials/receivables/transactions/autoInvoices/AutoInvoiceImportEss] Found requested Lang: en
[2012-02-22T14:25:53.007-06:00] [ess_server1] [TRACE] [] [oracle.apps.fnd.applcp] [tid: [ACTIVE].ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: RR_GL_USER] [ecid: 004iPDJer2R1rYRquWq2UH0003KT002SKQ,0:1:1:13:1:87:100000165] [SRC_CLASS: oracle.apps.fnd.applcp.request.exec.CPPreProcessHandler] [APP: FinancialsEssApp#V2.0] [ESS_RequestID: 29988] [SRC_METHOD: loadEnvironmentProperties] [ESS_Module: Processor] [ESS_JobMetadataID: JobDefinition://oracle/apps/ess/financials/receivables/transactions/autoInvoices/AutoInvoiceImportEss] Env File not Found: /u01/APPLTOP/instance/ess/rfd/environment.properties
[2012-02-22T14:25:53.008-06:00] [ess_server1] [TRACE] [] [oracle.apps.fnd.applcp] [tid: [ACTIVE].ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: RR_GL_USER] [ecid: 004iPDJer2R1rYRquWq2UH0003KT002SKQ,0:1:1:13:1:87:100000165] [SRC_CLASS: oracle.apps.fnd.applcp.request.exec.CPPreProcessHandler] [APP: FinancialsEssApp#V2.0] [ESS_RequestID: 29988] [SRC_METHOD: loadEnvironmentProperties] [ESS_Module: Processor] [ESS_JobMetadataID: JobDefinition://oracle/apps/ess/financials/receivables/transactions/autoInvoices/AutoInvoiceImportEss] Env File not Found: /u01/APPLTOP/instance/domains/primary.oracleoutsourcing.com/FinancialDomain/config/fmwconfig/environment.properties
[2012-02-22T14:25:53.008-06:00] [ess_server1] [TRACE] [] [oracle.apps.fnd.applcp] [tid: [ACTIVE].ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: RR_GL_USER] [ecid: 004iPDJer2R1rYRquWq2UH0003KT002SKQ,0:1:1:13:1:87:100000165] [SRC_CLASS: oracle.apps.fnd.applcp.request.exec.CPPreProcessHandler] [APP: FinancialsEssApp#V2.0] [ESS_RequestID: 29988] [SRC_METHOD: loadEnvironmentProperties] [ESS_Module: Processor] [ESS_JobMetadataID: JobDefinition://oracle/apps/ess/financials/receivables/transactions/autoInvoices/AutoInvoiceImportEss] Env File not Found: /u01/APPLTOP/instance/domains/primary.oracleoutsourcing.com/FinancialDomain/config/fmwconfig/env.custom.properties
[2012-02-22T14:25:53.009-06:00] [ess_server1] [TRACE] [] [oracle.apps.fnd.applcp] [tid: [ACTIVE].ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: RR_GL_USER] [ecid: 004iPDJer2R1rYRquWq2UH0003KT002SKQ,0:1:1:13:1:87:100000165] [SRC_CLASS: oracle.apps.fnd.applcp.request.exec.CPPreProcessHandler] [APP: FinancialsEssApp#V2.0] [ESS_RequestID: 29988] [SRC_METHOD: loadEnvironmentProperties] [ESS_Module: Processor] [ESS_JobMetadataID: JobDefinition://oracle/apps/ess/financials/receivables/transactions/autoInvoices/AutoInvoiceImportEss] Env File not Found: /u01/APPLTOP/instance/domains/primary.oracleoutsourcing.com/FinancialDomain/config/fmwconfig/servers/ess_server1/environment.properties
[2012-02-22T14:25:53.009-06:00] [ess_server1] [TRACE] [] [oracle.apps.fnd.applcp] [tid: [ACTIVE].ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: RR_GL_USER] [ecid: 004iPDJer2R1rYRquWq2UH0003KT002SKQ,0:1:1:13:1:87:100000165] [SRC_CLASS: oracle.apps.fnd.applcp.request.exec.CPPreProcessHandler] [APP: FinancialsEssApp#V2.0] [ESS_RequestID: 29988] [SRC_METHOD: loadEnvironmentProperties] [ESS_Module: Processor] [ESS_JobMetadataID: JobDefinition://oracle/apps/ess/financials/receivables/transactions/autoInvoices/AutoInvoiceImportEss] Env File not Found: /u01/APPLTOP/instance/domains/primary.oracleoutsourcing.com/FinancialDomain/config/fmwconfig/servers/ess_server1/env.custom.properties
[2012-02-22T14:25:53.010-06:00] [ess_server1] [TRACE] [] [oracle.apps.fnd.applcp] [tid: [ACTIVE].ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: RR_GL_USER] [ecid: 004iPDJer2R1rYRquWq2UH0003KT002SKQ,0:1:1:13:1:87:100000165] [SRC_CLASS: oracle.apps.fnd.applcp.request.exec.CPPreProcessHandler] [APP: FinancialsEssApp#V2.0] [ESS_RequestID: 29988] [SRC_METHOD: setEnvVariables] [ESS_Module: Processor] [ESS_JobMetadataID: JobDefinition://oracle/apps/ess/financials/receivables/transactions/autoInvoices/AutoInvoiceImportEss] Calling AppsLogger to get env vars
[2012-02-22T14:25:53.017-06:00] [ess_server1] [TRACE] [] [oracle.apps.fnd.applcp] [tid: [ACTIVE].ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: RR_GL_USER] [ecid: 004iPDJer2R1rYRquWq2UH0003KT002SKQ,0:1:1:13:1:87:100000165] [SRC_CLASS: oracle.apps.fnd.applcp.request.exec.CPPreProcessHandler] [APP: FinancialsEssApp#V2.0] [ESS_RequestID: 29988] [SRC_METHOD: setEnvVariables] [ESS_Module: Processor] [ESS_JobMetadataID: JobDefinition://oracle/apps/ess/financials/receivables/transactions/autoInvoices/AutoInvoiceImportEss] Env variables: ORACLE_ADR_BASE=/drdrb010/APPLTOP/instance/domains/primary.oracleoutsourcing.com/FinancialDomain/servers/ess_server1/adr,ORACLE_ADR_HOME=/u01/APPLTOP/fusionapps/wlserver_10.3/server/adr,USER_ID=RR_GL_USER,REQUESTID=29988,ORACLE_ADR_PRODUCT_TYPE=ofm,INPUT_WORK_DIR=/u01/APPLTOP/instance/ess/rfd/29988/input,OUTPUT_WORK_DIR=/u01/APPLTOP/instance/ess/rfd/29988/out,WORK_DIR_ROOT=/u01/APPLTOP/instance/ess/rfd/29988,OUTFILE_NAME=29988.txt,USER_NAME=RR_GL_USER,ORACLE_ADR_INSTANCE_ID=FinancialsEssApp,LOG_WORK_DIR=/u01/APPLTOP/instance/ess/rfd/29988/log,LOGFILE_NAME=29988.log,ORACLE_ADR_PRODUCT_ID=fusionapps,REQUEST_HANDLE=%ESSREQHANDLE%
[2012-02-22T14:25:53.028-06:00] [ess_server1] [TRACE] [] [oracle.apps.fnd.applcp] [tid: [ACTIVE].ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: RR_GL_USER] [ecid: 004iPDJer2R1rYRquWq2UH0003KT002SKQ,0:1:1:13:1:87:100000165] [SRC_CLASS: oracle.apps.fnd.applcp.request.exec.CPPreProcessHandler] [APP: FinancialsEssApp#V2.0] [ESS_RequestID: 29988] [SRC_METHOD: getAliases] [ESS_Module: Processor] [ESS_JobMetadataID: JobDefinition://oracle/apps/ess/financials/receivables/transactions/autoInvoices/AutoInvoiceImportEss] spawnExecHome: null

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