Support Article
Failures in RUFs after upgrading to Pega 7.2.2
SA-31966
Summary
Rule-Utility-function(RUF) getXpathNode is behaving differently after upgrading to Pega 7.2.2.
User has a data page Declare_Products in the environment which is not getting loaded because of the upgrade. This is working fine in another environment which is on Pega 7.2.
Error Messages
Not applicable
Steps to Reproduce
1) Log into Application.
2) Run the data page that uses the RUF.
Root Cause
The classes that are being referred in this function getXPathNode are coming from ‘net.sf.saxon.xpath.*’, whereas the same classes are coming from ‘com.sun.org.apache.xpath.*’ in another environment which is on Pega 7.2 in which there is no issue.
Resolution
Change the RUF code to fetch XPathFactory.newInstance(); as new XPathFactoryImpl() and import package "com.sun.org.apache.xpath.internal.jaxp.XPathFactoryImpl" in Imports & Exceptions tab of the RUF.This will make to use the implementation of ""com.sun.org.apache.xpath.internal.jaxp.XPathFactoryImpl" instead of "net.sf.saxon.xpath.XPathFactoryImpl".
Published January 5, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.