Skip to content

[Eclipse 2026-09] New Java 25 XML limits cause problems with some plugins which process large XML files #2917

Description

@chrisrueger

In bndtools we discovered that with new new Eclipse 2026-09 released today bndtools is not working properly because in our specific instance there is a repository configured which processes a large XML OSGI index which exceeds Java 25 internal xml limits.

e.g.

Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[263628,258]
Message: JAXP00010003: Die Länge von Entity "[xml]" ist "100.001" und überschreitet den Grenzwert "100.000", der von "jdk.xml.maxGeneralEntitySizeLimit" festgelegt wurde.
	at java.xml/com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:652)
	at java.xml/com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.nextTag(XMLStreamReaderImpl.java:1353)
	at aQute.bnd.osgi.repository.XMLResourceParser.next(XMLResourceParser.java:193)

See for details and workaround bndtools/bnd#7412

Workaround:

set the following in eclipse.ini of the Eclipse instance you are running:

-Djdk.xml.maxGeneralEntitySizeLimit=0
-Djdk.xml.entityExpansionLimit=0
-Djdk.xml.totalEntitySizeLimit=0

or any other reasonably high value if you think 0 (unlimited) is too dangerous.

Question

Is there something Eclipse should do?
or plugin authors? (e.g. for bndtools we could set the limits directly on the XMLInputFactory but this would not work for older releases of our plugin.

In case this is the wrong repo for this issue, just let me know where I can move it to.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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