Hi Jmix Team,
I am migrating my application to Jmix 3.0.2 and I am facing a startup issue when I add the Jmix Reports add-on.
Environment
-
Jmix: 3.0.2
-
Spring Boot: 4.0.8
-
Spring Framework: 7.0.9
-
Java: 21.0.12
-
Hazelcast: 5.6.0
-
Xalan: 2.7.3
-
OS: Ubuntu
ProblemThe application starts successfully when the Jmix Reports add-on is not included.
However, after adding the Jmix Reports add-on, the application fails during startup with the following exception:
java.lang.IllegalArgumentException: Not supported: http://javax.xml.XMLConstants/property/accessExternalDTD at org.apache.xalan.processor.TransformerFactoryImpl.setAttribute( TransformerFactoryImpl.java:571 ) at com.hazelcast.internal.util.XmlUtil.setAttribute( XmlUtil.java:199 ) at com.hazelcast.internal.util.XmlUtil.getTransformerFactory( XmlUtil.java:86 ) at com.hazelcast.config.AbstractXmlConfigHelper.schemaValidation( AbstractXmlConfigHelper.java:107 ) at com.hazelcast.config.XmlConfigBuilder.parseAndBuildConfig( XmlConfigBuilder.java:170 )This then results in:
Failed to instantiate [javax.cache.CacheManager] Factory method 'jCacheCacheManager' threw exception with message: Error opening URI [hazelcast]Dependency chain
From the stack trace, the failure occurs approximately in this flow:
Spring Boot JCache configuration ↓ Hazelcast JCache CacheManager ↓ Hazelcast XML configuration ↓ Xalan 2.7.3 TransformerFactory ↓ accessExternalDTD ↓ IllegalArgumentExceptionBecause the JCache
CacheManagercannot be created, this subsequently causes failures while creating Jmix beans such as the EntityManagerFactory and related dependencies.Important observation
The same application starts successfully when the Jmix Reports add-on is removed.
The problem appears only after adding the Reports add-on.
The important part is that the failure is:
Not supported: http://javax.xml.XMLConstants/property/accessExternalDTDinside:
org.apache.xalan.processor.TransformerFactoryImplwhile Hazelcast is creating its configuration.
Any guidance on the correct dependency/configuration change would be appreciated.
Warm Regards,
Naveenjava lang IllegalArgumentException.txt (67.5 KB)