Skip to content

Early Access build fails to new JAXP limit of 100000 #1210

@sormuras

Description

@sormuras

With https://bugs.openjdk.org/browse/JDK-8343004 () the jdk.xml.maxGeneralEntitySizeLimit was set from unlimited to 100000 in JDK 24.

openjdk/jdk@28c8729#diff-031529e6458daa18972454e3e220c776db020cc0657ce881e649f99148d2f4ecR166-R167

# Limits the maximum size of any general entities. The default value is 100000.
jdk.xml.maxGeneralEntitySizeLimit=100000

That leads to an error in the CI run using JDK 25-ea:

Error: [ERROR] Internal error: java.lang.RuntimeException: Failed to load p2 repository with ID 'mars' from location https://download.eclipse.org/releases/mars: Unable to read repository at https://download.eclipse.org/releases/mars. Unable to read repository at file:/home/runner/.m2/repository/.cache/tycho/https/download.eclipse.org/releases/mars/201506241002/content.xml.xz. JAXP00010003: The length of entity "[xml]" is "100,001" that exceeds the "100,000" limit set by "jdk.xml.maxGeneralEntitySizeLimit". -> [Help 1]
[...]
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".
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse (AbstractSAXParser.java:1252)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse (SAXParserImpl.java:643)
    at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryIO$Parser.parse (MetadataRepositoryIO.java:206)
[...]

For example in: https://github.com/google/google-java-format/actions/runs/12289067847/job/34293938676

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions