Zach Hoffman created DIRSTUDIO-1352:
---------------------------------------

             Summary: Build fails on JDK 25 because XML parsing exceeds the 
JDK's default limits
                 Key: DIRSTUDIO-1352
                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-1352
             Project: Directory Studio
          Issue Type: Bug
            Reporter: Zach Hoffman


JDK 25 has stricter default limits for its XML parser (jdk.xml.* properties in 
jaxp.properties). The build exceeds them in two places.
 # *Target platform resolution.* Tycho 2.3.0 cannot read the p2 metadata of the 
Eclipse Babel update site 
(http://archive.eclipse.org/technology/babel/update-site/R0.15.1/oxygen). That 
metadata exceeds jdk.xml.maxGeneralEntitySizeLimit and 
jdk.xml.totalEntitySizeLimit, whose defaults are 100,000:
Caused by: org.xml.sax.SAXParseException: JAXP00010003: The length of entity 
"[xml]" is "100,001" that exceeds the "100,000" limit set by 
"jdk.xml.maxGeneralEntitySizeLimit".
JAXP00010004: The accumulated size of entities is "100,001" that exceeded the 
"100,000" limit set by "jaxp.properties".
[ERROR] Failed to resolve target definition 
.../eclipse-trgt-platform/org.apache.directory.studio.eclipse-trgt-platform.target:
 Failed to load p2 metadata repository from location 
http://archive.eclipse.org/technology/babel/update-site/R0.15.1/oxygen
 # *Help plugins.* The DocBook XSLT transformation in the help plugins exceeds 
jdk.xml.entityExpansionLimit (2,500):
[xslt] Unknown file:1:1: Fatal Error! JAXP00010001: The parser has encountered 
more than "2500" entity expansions in this document; this is the limit imposed 
by "jdk.xml.entityExpansionLimit".
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-antrun-plugin:3.1.0:run (build-eclipse-help) on 
project org.apache.directory.studio.apacheds.help: An Ant BuildException has 
occured: Fatal error during transformation

Both failures happen on master. They also affect the CodeQL workflow. It runs 
on ubuntu-latest (Ubuntu 26.04), which uses Java 25 by default. Today it stops 
earlier, at the antlr-maven-plugin Security Manager failure (DIRSTUDIO-1351). 
When that failure is fixed, it would fail on these limits.
h2. Steps to reproduce
 # Check out master.

 # Run mvn validate with JDK 25.

h2. Expected result

The target platform resolves, as it does on JDK 17 and 21.
h2. Actual result

Target platform resolution fails with the JAXP00010003 error above. After that 
problem is avoided, the help plugins fail with the JAXP00010001 error above.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to