Unable To Get Customclass Java Program to Work in OM Report Print & Preview Function (Doc ID 1385571.1)

Last updated on JULY 19, 2017

Applies to:

Oracle Order Management - Version 12.1.3 and later
Information in this document applies to any platform.
***Checked for relevance on 17-Jul-2013***

Symptoms

On : 12.1.3 version, Reporting & Business Analysis
When attempting to us the "Print and Preview" Feature of Oracle Order Management to print  Customized Acknowledgement Report (that includes some custom columns ) using the Standard Sales Order RTF Template, the following error occurs.
ERROR
-----------------------
PrintAM:generatePDF: Error name: oracle.apps.xdo.XDOException
java.lang.reflect.InvocationTargetException
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 oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:570)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:235)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:182)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5936)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3614)
at oracle.apps.ont.print.server.PrintAMImpl.generatePDF(PrintAMImpl.java:1006)
at oracle.apps.ont.print.server.PrintAMImpl.writeBusinessDoc(PrintAMImpl.java:1881)
at oracle.apps.ont.print.cp.PrintCP.runProgram(PrintCP.java:390)
at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
Caused by: org.xml.sax.SAXParseException: <Line 221, Column 115>: XML-20201: (Fatal Error) Expected name instead of >.
at oracle.xdo.parser.v2.XMLError.flushErrorHandler(XMLError.java:441)
at oracle.xdo.parser.v2.XMLError.flushErrors1(XMLError.java:303)
at oracle.xdo.parser.v2.XMLReader.scanNameChars(XMLReader.java:1061)
at oracle.xdo.parser.v2.XMLReader.scanQName(XMLReader.java:1833)
at oracle.xdo.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1240)
at oracle.xdo.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:338)
at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:285)
at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:289)
... 18 more
PrintAM:writeBusinessDoc: - Exception section

Requirement is to use some custom columns wrote in a CustomClass Java that implements the PrintExtensionObject to get an XML Fragment.
STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1)Query a Sales Order in Order Management.
2) Right Click and select 'Print and Preview" function.

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