Title: FDM XML Masking Fails with IllegalArgumentException (accessExternalDTD)
search cancel

Title: FDM XML Masking Fails with IllegalArgumentException (accessExternalDTD)

book

Article ID: 454448

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

Running an FDM XML masking job starts successfully, loading the configuration, but terminates immediately after masking begins with the following stack trace:

 
java.lang.IllegalArgumentException: http://javax.xml.XMLConstants/property/accessExternalDTD    at oracle.xml.jaxp.JXSAXTransformerFactory.setAttribute(JXSAXTransformerFactory.java:542)    at com.grid_tools.products.datamasker.xml.XmlDomFileParser.processXMLfile(XmlDomFileParser.java:819)    at com.grid_tools.products.datamasker.masking.filemasking.XmlFileMasker.doXMLmasking(XmlFileMasker.java:705)    at com.grid_tools.products.datamasker.Datamasker.main(Datamasker.java:2208)

 

Environment

  • Application: FastDataMasker (FDM)
  • Version: 5.0.27.0 (build 2026-07-28)
  • Runtime: Java 21.0.8 (Eclipse Adoptium)

Cause

 

XML masking jobs fail immediately after initialization with an IllegalArgumentException related to accessExternalDTD when xmlparserv2.jar is present on the classpath.When xmlparserv2.jar (Oracle XDK)—which is often bundled alongside xdb/ojdbc11 for Oracle DB support—is present on the classpath, the JAXP factory-finder resolves TransformerFactory.newInstance() to Oracle's oracle.xml.jaxp.JXSAXTransformerFactory rather than the standard JDK Xalan implementation. Oracle's implementation does not recognize accessExternalDTD or accessExternalStylesheet and throws an IllegalArgumentException on setAttribute()

Resolution

This issue is resolved in FastDataMasker patch version 5.0.37.0. Please download and apply the patch to address this incompatibility.