Monday, July 4, 2011

Special characters like '&', '<' '>', '"' throw java exceptions in XDO document merge API

Visit the Below Website to access unlimited exam questions for all IT vendors and Get Oracle Certifications for FREE
http://www.free-online-exams.com

Problem: Special characters like '&', '<' '>', '"' throw java exceptions in XDO document merge API.
On 11.5.10.2 in Production

Sending a test mail in PROD instance, the following error message appears.
The error seems to occur when an html link is attached. Normal content is sent successfully

Oracle Marketing Resp-->Administration-->Fulfillment-->CoverLetter
Give the cover letter name and paste it in the content and tryed to send a test
mail.

Symptoms:

Attaching an html link that is when the error occurs - it is the special characters in the link that is causing the error

This is explained in the following bug:
Bug 5865343: & CHARACTER IN RTF MERGED DOC CAUSES FULFILLMENT REQUEST TO FAIL

Log files:
error message screen showing the following error.

oracle.apps.fnd.framework.OAException: oracle.apps.jtf.base.resources.FrameworkException: oracle.xml.parser.v2.XMLParseException: Expected name instead of . at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:205) at oracle.xml.parser.v2.XMLReader.scanNameChars(XMLReader.java:1001) at oracle.xml.parser.v2.XMLReader.scanQName(XMLReader.java:1677) at oracle.xml.parser.v2.XMLReader.getEntity(XMLReader.java:1928) at oracle.xml.parser.v2.NonValidatingParser.parseAttrEntityRef(NonValidatingParser.java:1535) at oracle.xml.parser.v2.NonValidatingParser.parseAttrValue(NonValidatingParser.java:1520) at oracle.xml.parser.v2.NonValidatingParser.parseAttr(NonValidatingParser.java:1408) at oracle.xml.parser.v2.NonValidatingParser.parseAttributes(NonValidatingParser.java:1350) at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1180) at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301) at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268) at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:253) at oracle.apps.ibc.util.XmlUtil.parseContentItemXml(XmlUtil.java:63) at oracle.apps.ibc.admin.PreviewManager.previewContentItemDeepXmlDom(PreviewManager.java:401) at oracle.apps.ibc.coverletter.server.CoverLetterApprovalManager.setRenditions(CoverLetterApprovalManager.java:271) at oracle.apps.ams.oa.campaign.webui.AdminSendTestCO.processFormRequest(AdminSendTestCO.java:204) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:804) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.OAWebBeanHideShowHelper.processFormRequest(OAWebBeanHideShowHelper.java:138) at oracle.apps.fnd.framework.webui.OAHideShowHeaderHelper.processFormRequest(OAHideShowHeaderHelper.java:134) at oracle.apps.fnd.framework.webui.beans.layout.OAHideShowHeaderBean.processFormRequest(OAHideShowHeaderBean.java:484) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java

oracle.apps.fnd.framework.OAException: oracle.apps.jtf.base.resources.FrameworkException: oracle.xml.parser.v2.XMLParseException: Expected name instead of . at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:205) at oracle.xml.parser.v2.XMLReader.scanNameChars(XMLReader.java:1001) at oracle.xml.parser.v2.XMLReader.scanQName(XMLReader.java:1677) at oracle.xml.parser.v2.XMLReader.getEntity(XMLReader.java:1928) at oracle.xml.parser.v2.NonValidatingParser.parseAttrEntityRef(NonValidatingParser.java:1535) at oracle.xml.parser.v2.NonValidatingParser.parseAttrValue(NonValidatingParser.java:1520) at oracle.xml.parser.v2.NonValidatingParser.parseAttr(NonValidatingParser.java:1408) at oracle.xml.parser.v2.NonValidatingParser.parseAttributes(NonValidatingParser.java:1350) at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1180) at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301) at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268) at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:253) at oracle.apps.ibc.util.XmlUtil.parseContentItemXml(XmlUtil.java:63) at oracle.apps.ibc.admin.PreviewManager.previewContentItemDeepXmlDom(PreviewManager.java:401) at


Solution:

Note 468683.1 One-to-One Fulfillment Requests Fail when Special Characters & < > " are found in Document


Special characters like '&', '<' '>', '"' throw java exceptions in XDO document merge API.

This issue has been fixed in the file NLSConfig.java in version 115.6.

You have file NLSConfig.java and version 11.5.5 which is lower than this fixed version.

This is explained in the following bug:
Bug 5865343: & CHARACTER IN RTF MERGED DOC CAUSES FULFILLMENT REQUEST TO FAIL
Patch 5931302.

References:
Review Note 468683.1

    

Get Oracle Certifications for all Exams
Free Online Exams.com

No comments: