Fatal error during transformation: XPath expression containing '101' operators that exceeds the '100' limit set

Post here questions and problems related to editing and publishing DITA content.
dreeves
Posts: 1
Joined: Fri Jun 06, 2025 8:50 pm

Fatal error during transformation: XPath expression containing '101' operators that exceeds the '100' limit set

Post by dreeves »

Hello,

When running one of my transforms, I get the following error:

JAXP0801002: the compiler encountered an XPath expression containing '101' operators that exceeds the '100' limit set by 'FEATURE_SECURE_PROCESSING'.

This error was introduced when I upgraded from Oxygen XML Editor 24.1 to 26.1. It seems that this error comes from new FEATURE_SECURE_PROCESSING, which Oracle introduced in a recent update of their Java.

jdk.xml.xpathExprOpLimit Description: Limits the number of operators an XPath expression can contain. Default 100.

See: https://www.oracle.com/java/technologie ... notes.html

To fix the issue I need to add an argument like the following, but I do not know where to add it:

-Djdk.xml.xpathExprGrpLimit=0 -Djdk.xml.xpathExprOpLimit=0 -Djdk.xml.xpathTotalOpLimit=0 -

Has anyone else experienced this issue and do they know a solution?

Thank you,

D. Scott Reeves
teo
Posts: 85
Joined: Wed Aug 30, 2017 3:56 pm

Re: Fatal error during transformation: XPath expression containing '101' operators that exceeds the '100' limit set

Post by teo »

Hello Scott,

Please try the procedure described below to overcome that Java security limitation that's been enforced starting with newer JDK versions.
Locate the file "oxygen.vmoptions". It is usually located in the Oxygen installation folder.
Open it in a text editor and add the lines below:

Code: Select all

-Djdk.xml.xpathExprOpLimit=0
-Djdk.xml.xpathExprGrpLimit=0
-Djdk.xml.xpathTotalOpLimit=0
Then restart oXygen.
Setting these to 0 disables the limits, which is fine in a trusted environment.
If you're concerned about security, you can increase the limits instead of disabling them entirely:

Code: Select all

-Djdk.xml.xpathExprOpLimit=1000
-Djdk.xml.xpathExprGrpLimit=100
-Djdk.xml.xpathTotalOpLimit=2000
Best regards,
Teo
Teodor Timplaru
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply