"tcserver create" failed with "javax.xml.transform.TransformerException: JAXP0801002"
search cancel

"tcserver create" failed with "javax.xml.transform.TransformerException: JAXP0801002"

book

Article ID: 293378

calendar_today

Updated On:

Products

VMware Tanzu tc Server

Issue/Introduction

When use tcserver create command to create tcServer instance with large number of templates, the command might fail with exception below.
'create' command failed. 
com.springsource.tcruntime.instance.internal.templates.FragmentApplicationFailedException: 
com.springsource.tcruntime.instance.internal.xml.XmlTransformationFailedException: 
javax.xml.xpath.XPathExpressionException: 
javax.xml.transform.TransformerException: JAXP0801002: the compiler encountered an XPath expression containing '101' operators that exceeds the '100' limit set by 'FEATURE_SECURE_PROCESSING'.

This is due to a Java change related to XPath Processing limit settings, as described below in release note .
  • jdk.xml.xpathExprOpLimit

       Description: Limits the number of operators an XPath expression can contain.

       Type: integer

       Value: A positive integer. A value less than or equal to 0 indicates no limit. If the value is not an integer, a NumberFormatException is thrown. Default 100.


Environment

Product Version: 4.1

Resolution

With VMware tc Server 4.1.16+  three new properties have been added at the end of the conf/tcserver.properties file . One of the new properties is jdk.xml.xpathExprOpLimit. Users can uncomment lines related to this property and set key/value pair to overwrite the default value (100).