My Oracle Support Banner

R12: AP: Uploading Modified Template File for the 1099 Forms PDF Format Program Errors with oracle.apps.fnd.framework.OAException: java.lang.NullPointerException at oracle.apps.xdo.oa.schema.server.TemplateHelper.addTemplateField (Doc ID 2664066.1)

Last updated on APRIL 29, 2020

Applies to:

Oracle Payables - Version 12.1.1 and later
Information in this document applies to any platform.

Symptoms

The 1099 Forms PDF Format program completes with a Warning.  Program does not recognize customized 1099 PDF Format, and generates the output file in raw xml format.  When the user attempts to upload the template file again, they get the following error:

Error Details *{margin:0; padding:0;} .globalHeaderStyle1{ background-color:
#1D4A6D; } #oafusercontent { background-color: #FFFFFF; margin: 0 3px 3px; }
 #oafcontent { background-color: #1D4A6D; top: -1px; } #oafcontent > div {
background-color: #FFFFFF; margin: 0 9px; } .p_SwanPageLayout, .x7z { padding: 0
10px; } .skyrosFooter, .x8e { background-color: #1D4A6D; color: #FFFFFF;
overflow: auto; padding-bottom: 5px; padding-top: 5px; } .footerLeft, .x8f {
font-family: Helvetica,Tahoma,Verdana,Arial,FreeSans,sans-serif; } .footerRight,
.x8g { text-align: right; } body { color: #333333; font-family: "Helvetica
Neue",Helvetica,Arial,sans-serif; font-size: 12px; font-weight: normal; }
 .globalHeaderBackground { background-color: #1D4A6D; } .pageHeader1 { height:
38px; } .OraErrorHeader { color: #C81C24 !important; font-size: 18px !important;
white-space: nowrap; } .OraSpacingHeader { border-bottom: 1px solid #D6DFE6
!important; margin: 4px 0 2px; padding-bottom: 3px; } .pageLink A:link { color:
#145C9E; font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; font-size:
12px; font-weight: normal; text-decoration: none; } .globalLink
{white-space:nowrap;font-size:9pt;font-family:Arial;color:#ffffff;text-decoration:none}
 .pageLink A:link {color:#2b7c92} .copyright
{white-space:nowrap;font-family:Arial;font-size:7.5pt;color:#ffffff;text-decoration:none}
 .errorHeader { color:#ed1c24; font-family:Arial; font-weight:bold;
 font-size:9pt; vertical-align:middle; border-bottom-width:1px;
 border-bottom-style:solid; border-bottom-color:#3a5a87; margin-bottom:0px; }
 .errorText { font-family:Tahoma,Arial,Helvetica,Geneva,sans-serif;
 font-size:9pt; }  

Error Page
Exception Details.
oracle.apps.fnd.framework.OAException: java.lang.NullPointerException at
oracle.apps.xdo.oa.schema.server.TemplateHelper.addTemplateFields(TemplateHelper.java:5293)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.updateTemplateFile(TemplateHelper.java:4756)
at oracle.apps.xdo.oa.template.server.TemplatesAMImpl.addTemplateFile(TemplatesAMImpl.java:653)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(Unknown Source)
at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:741)

at oracle.apps.xdo.oa.template.webui.TemplateFileAddCO.processFormRequest(TemplateFileAddCO.java:439)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:952)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:424)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1884)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1598)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1164)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1130)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:985)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:424)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1164)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1130)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:985)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:424)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:3797)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:2250)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:607)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:487)
at _pages.__oa._jspService(__oa.java:233)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at oracle.apps.fnd.security.csrf.GuardFilter.doFilter(GuardFilter.java:276)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at oracle.apps.fnd.security.WLFilter.doFilter(WLFilter.java:161)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at oracle.apps.jtf.cabo.interceptor.JTFWrapperFilter.doFilter(JTFWrapperFilter.java:151)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(Unknown Source)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:501)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:138)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:464)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:121)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:211)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3748)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3714)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2283)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2182)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1499)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:263)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

## Detail 0 ##
java.lang.NullPointerException
at oracle.apps.xdo.oa.schema.server.TemplateHelper.addTemplateFields(TemplateHelper.java:5293)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.updateTemplateFile(TemplateHelper.java:4756)
at oracle.apps.xdo.oa.template.server.TemplatesAMImpl.addTemplateFile(TemplatesAMImpl.java:653)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(Unknown Source)
at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:741)
at oracle.apps.xdo.oa.template.webui.TemplateFileAddCO.processFormRequest(TemplateFileAddCO.java:439)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:952)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:424)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1884)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1598)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1164)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1130)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:985)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:424)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1164)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1130)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:985)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:424)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:3797)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:2250)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:607)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:487)
at _pages.__oa._jspService(__oa.java:233)

Changes

Applied patch 30273541 and then downloaded the latest pdf file and customized it 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.