Michael W. wrote:

i’ve just got this error message:

java.io.IOException: bundleresource://1.fwk550424075/org/mwp/help/ schema/v1.3/base/dtd/commonElements.mod:775:2:parse error: JAXP00010004: Die akkumulierte Größe von Entitys ist "100.036" und überschreitet den Grenzwert "100.000", der von "jaxp.properties" festgelegt wurde.
     at com.xmlmind.ditac.util.LoadDocument.load(LoadDocument.java:215)
     at com.xmlmind.ditac.util.LoadDocument.load(LoadDocument.java:92)
    at com.xmlmind.ditac.preprocess.LoadedDocuments.loadDocument(LoadedDocuments.java:154)     at com.xmlmind.ditac.preprocess.LoadedDocuments.preload(LoadedDocuments.java:125)     at com.xmlmind.ditac.preprocess.LoadedDocuments.load(LoadedDocuments.java:94)     at com.xmlmind.ditac.preprocess.PreProcessor.process1(PreProcessor.java:845)
     …

It seems to be an error that is caused by this:
https://bugs.openjdk.org/browse/JDK-8343022

Are you able to reproduce the problem?

No, not with a recent version of ditac. Please tell me which version you are using. For this, simply run:

ditac -version




Maybe you want to fix it in class LoadDocument when the SAXParserFactory features are set. It’s probably the property jdk.xml.totalEntitySizeLimit that has to be increased.

Normally this issue has been addressed when we tested ditac against Java 24. See "JAXP limits" in https://www.xmlmind.com/ditac/_distrib/doc/manual/distrib.html#distrib

bin/ditac and bin/ditac.bat both have the following option

-Djava.xml.config.file="%binDir%jaxp.properties"

where "jaxp.properties" contains:
---
# Limits the number of entity expansions.
# As of Java 24, the default value is 2500.
jdk.xml.entityExpansionLimit=64000

# The size is calculated as an aggregation of all entities.
# As of Java 24, the default value is 100000.
jdk.xml.totalEntitySizeLimit=50000000

# Limits the maximum size of any general entities.
# As of Java 24, the default value is 100000.
jdk.xml.maxGeneralEntitySizeLimit=0

# Limits the maximum size of any parameter entities, including the result of
# nesting multiple parameter entities.
# As of Java 24, the default value is 15000.
jdk.xml.maxParameterEntitySizeLimit=1000000

# Limits the total number of nodes in all entity references.
# As of Java 24, the default value is 100000.
jdk.xml.entityReplacementLimit=3000000

# Limits the number of attributes an element can have.
# As of Java 24, the default value is 200.
jdk.xml.elementAttributeLimit=10000

# Limits the maximum element depth.
# As of Java 24, the default value is 100.
jdk.xml.maxElementDepth=0
---


--
XMLmind DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support

Reply via email to