-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[infinispan-client] NPE during cache configuration #30304
Comments
taking the point @fedinskiy |
@fedinskiy I've checked the configuration, and as far as I know, if we want to include the file, in this case the xml file, we need to configure |
@fedinskiy sorry for the time it got me to come to this one |
Yes, that's true. Is this some custom file or a standard configuration file? |
@geoand it's a file that the user will add with the configuration of the cache (xml, json or yaml) that will be placed in the resources. in the it test of the extension, I configure the native resources includes. What I've seen is that nothing is mentioned in the Infinispan Guide that can help on it. I can add it and close this issue if nothing else should be done in the code at this point |
I see. In this case (where the configuration is supplied at runtime and therefore not known at build time), there is no alternative but to add the |
Although, now that I think about it more... a user won't be able to provide a different classpath value for So perhaps |
@wburns what do you think on this one? |
@geoand I'm thinking that this should be build time config instead of runtime config. If a user needs a runtime cache to be created, can do it with the remote cache manager. however, when we build the extension with a file inside and configuring a cache on properties, I think this lands into deployment config and not runtime config. what do you think ? |
Describe the bug
I am trying to add cache configuration via application.properties (scenario very similar to this one[1]). When I build and run resulting application in native mode it fails with the same error as in original issue.
[1] #29592
Expected behavior
The application should start in native mode
Actual behavior
How to Reproduce?
git clone [email protected]:fedinskiy/reproducer.git -b feature/inifinispan-native
mvn clean install -Pnative -Dquarkus.platform.version=2.15.3.Final #version 2.13.1.Final also affected
target/infinispan-1.0.0-SNAPSHOT-runner
Output of
uname -a
orver
6.0.18-300.fc37.x86_64
Output of
java -version
17.0.4, vendor: GraalVM Community
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.15.3.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Additional information
No response
The text was updated successfully, but these errors were encountered: