You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With OpenJDK 24 (Debian sid), and LanguageTool 6.5, the execution seems to hit a limit on the xml decoder (in /etc/java-24-openjdk/jaxp.properties)
It is easily visible with commandline
$ java -version
openjdk version "24-ea" 2025-03-18
OpenJDK Runtime Environment (build 24-ea+29-Debian-1)
OpenJDK 64-Bit Server VM (build 24-ea+29-Debian-1, mixed mode, sharing)
$ java -jar /usr/local/src/LanguageTool-6.5/languagetool-commandline.jar -l fr
...
Caused by: org.xml.sax.SAXParseException; lineNumber: 68; columnNumber: 54354; JAXP00010004: The accumulated size of entities is "100,016" that exceeded the "100,000" limit set by "jaxp.properties".
...
It is working with
java -Djdk.xml.totalEntitySizeLimit=2000000 -jar /usr/local/src/LanguageTool-6.5/languagetool-commandline.jar -l fr
Editing my jaxp.properties to set xml.totalEntitySizeLimit to 2 millions is sufficient but it may be hard to find for common users.
Alternative: passing an optional argument to java (and not to the server)
The text was updated successfully, but these errors were encountered:
With OpenJDK 24 (Debian sid), and LanguageTool 6.5, the execution seems to hit a limit on the xml decoder (in /etc/java-24-openjdk/jaxp.properties)
It is easily visible with commandline
$ java -version
openjdk version "24-ea" 2025-03-18
OpenJDK Runtime Environment (build 24-ea+29-Debian-1)
OpenJDK 64-Bit Server VM (build 24-ea+29-Debian-1, mixed mode, sharing)
$ java -jar /usr/local/src/LanguageTool-6.5/languagetool-commandline.jar -l fr
...
Caused by: org.xml.sax.SAXParseException; lineNumber: 68; columnNumber: 54354; JAXP00010004: The accumulated size of entities is "100,016" that exceeded the "100,000" limit set by "jaxp.properties".
...
It is working with
java -Djdk.xml.totalEntitySizeLimit=2000000 -jar /usr/local/src/LanguageTool-6.5/languagetool-commandline.jar -l fr
Editing my jaxp.properties to set xml.totalEntitySizeLimit to 2 millions is sufficient but it may be hard to find for common users.
Alternative: passing an optional argument to java (and not to the server)
The text was updated successfully, but these errors were encountered: