-
Notifications
You must be signed in to change notification settings - Fork 96
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
ClassNotFoundException with Caffeine and Spring Boot 3 #271
Comments
@bclozel is this possibly issue for |
As I understood, in metadata for Caffeine missed class It's work if I add hint manually:
|
@dnestoro I don't think so, from the stacktrace it looks like Caffeine is doing the reflection call. We can't infer that. |
|
On my side
|
Despite the fact that it seems like the hints should already be there (from output log):
I found I had to explicitly add this hint (Spring Boot 3.2.1):
and that worked. |
@tedyoung that's strange, the constructor definition you've shared is not the right one and the correct one is already declared in the metadata: {
"condition": {
"typeReachable": "com.github.benmanes.caffeine.cache.BoundedLocalCache$BoundedLocalLoadingCache"
},
"name": "com.github.benmanes.caffeine.cache.SSMS",
"methods": [
{
"name": "<init>",
"parameterTypes": [
"com.github.benmanes.caffeine.cache.Caffeine",
"com.github.benmanes.caffeine.cache.AsyncCacheLoader",
"boolean"
]
}
]
} If you can come up with a minimal sample application (ideally, just having caffeine as a dependency), please create a new issue so we can look into it. Metadata should be complete here so I'm closing this issue now. |
Hello!
I use spring boot (v. 3.0.5) with
com.github.ben-manes.caffeine
(v. 3.1.2). When I make native-image with custom configuration of CaffeineCacheManager, I get this error:My configuration:
I found similar problem here
The text was updated successfully, but these errors were encountered: