Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CacheConfiguration, unnamed module, Java 21 #11166

Open
dmytronasyrov opened this issue Jan 6, 2024 · 0 comments
Open

CacheConfiguration, unnamed module, Java 21 #11166

dmytronasyrov opened this issue Jan 6, 2024 · 0 comments

Comments

@dmytronasyrov
Copy link

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)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant