ignite
ignite copied to clipboard
CacheConfiguration, unnamed module, Java 21
adding cache config with
CacheConfiguration cacheConfig = new CacheConfiguration<>();
new IgniteConfiguration()
.setCacheConfiguration(cacheConfig);
in Spring Boot 3.2.1, Java 21.
The result is
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'igniteConfiguration' defined in class path resource [server/base/IgniteConfig.class]: Failed to instantiate [org.apache.ignite.configuration.IgniteConfiguration]: Factory method 'igniteConfigurationProd' threw exception with message: class [Ljava.lang.Object; cannot be cast to class [Lorg.apache.ignite.configuration.CacheConfiguration; ([Ljava.lang.Object; is in module java.base of loader 'bootstrap'; [Lorg.apache.ignite.configuration.CacheConfiguration; is in unnamed module of loader org.springframework.boot.loader.launch.LaunchedClassLoader @49e4cb85)
Any suggestions on how to resolve this (probably with --add-opens)?