Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sormuras opened this issue Dec 13, 2024 · 0 comments
Open

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

sormuras opened this issue Dec 13, 2024 · 0 comments

Comments

@sormuras
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant