My Oracle Support Banner

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

Last updated on JANUARY 30, 2022

Applies to:

Oracle Order Management - Version 12.1.3 and later
Information in this document applies to any platform.


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.
PrintAM:generatePDF: Error name: oracle.apps.xdo.XDOException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(
at oracle.apps.xdo.template.FOProcessor.createFO(
at oracle.apps.xdo.template.FOProcessor.generate(
at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(
at oracle.apps.ont.print.server.PrintAMImpl.generatePDF(
at oracle.apps.ont.print.server.PrintAMImpl.writeBusinessDoc(
at oracle.apps.ont.print.cp.PrintCP.runProgram(
at oracle.apps.fnd.cp.request.Run.main(
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(
at oracle.xdo.parser.v2.XMLError.flushErrors1(
at oracle.xdo.parser.v2.XMLReader.scanNameChars(
at oracle.xdo.parser.v2.XMLReader.scanQName(
at oracle.xdo.parser.v2.NonValidatingParser.parseElement(
at oracle.xdo.parser.v2.NonValidatingParser.parseRootElement(
at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(
at oracle.xdo.parser.v2.XMLParser.parse(
... 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.
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.


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

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