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
When attempting to process a Wikipedia dump with the default Java settings, I run into this error:
$ java -jar target/Wiki7ZipXmlDumpReader-0.0.1.jar > ../results.out
javax.xml.stream.XMLStreamException: ParseError at [row,col]:[44771354,588]
Message: JAXP00010004: The accumulated size of entities is "50,000,001" that exceeded the "50,000,000" limit set by "FEATURE_SECURE_PROCESSING".
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:596)
at us.elephanthunter.Wiki7ZipXmlDumpReader.Wiki7ZipXmlDumpReader.Read7ZipStream$1.run(Read7ZipStream.java:103)
at java.lang.Thread.run(Thread.java:745)
I still ran into this limit when using 500,000,000.
javax.xml.stream.XMLStreamException: ParseError at [row,col]:[489817854,234]
Message: JAXP00010004: The accumulated size of entities is "500,000,001" that exceeded the "500,000,000" limit set by "system property".
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:596)
at us.elephanthunter.Wiki7ZipXmlDumpReader.Wiki7ZipXmlDumpReader.Read7ZipStream$1.run(Read7ZipStream.java:103)
at java.lang.Thread.run(Thread.java:745)
When attempting to process a Wikipedia dump with the default Java settings, I run into this error:
Based on this thread about the same problem, I can use the
jdk.xml.totalEntitySizeLimit
setting to circumvent this limit.I would like to pre-configure our application to use such a limit if possible, or else find a way to avoid the need for this higher limit.
The text was updated successfully, but these errors were encountered: