Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Compilation fails with @EnableCaching annotation #1714

Closed
agrancaric opened this issue Sep 12, 2022 · 1 comment
Closed

Compilation fails with @EnableCaching annotation #1714

agrancaric opened this issue Sep 12, 2022 · 1 comment
Labels
for: external-project For an external project and not something we can fix

Comments

@agrancaric
Copy link

agrancaric commented Sep 12, 2022

Hello, I've seen there is an issue to introduce initial caching support (#465) but I don't see this problem mentioned there so I am opening a new issue. When adding spring-boot-cache-starter and ehcache (didn't try other implementations) the task bootBuildImage fails with the following error:

/Users/agrancaric/Projects/tmp/spring-native-cache-example/build/generated/runtimeSources/aotMain/org/springframework/cache/annotation/ContextBootstrapInitializer.java:24: error: cannot find symbol .invoke(beanFactory, (attributes) -> bean.setConfigurers(attributes.get(0))); ^ symbol: method setConfigurers(Object) location: variable bean of type ProxyJCacheConfiguration

Version info: 'GraalVM 22.2.0 Java 11 CE'
Java version info: '11.0.16.1+1-LTS'

The project for reproducing the issue is here:

spring-native-cache-example.zip

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Sep 12, 2022
@sdeleuze sdeleuze added for: external-project For an external project and not something we can fix and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Sep 14, 2022
@sdeleuze
Copy link
Contributor

Caching on native is supported on Spring Boot 3 snapshots and related milestone, it will shortly take the relay of Spring Native experimental project.

I suggest you add a comment on spring-projects/spring-aot-smoke-tests#40 asking for a cache-ehache sample.

@sdeleuze sdeleuze reopened this Sep 14, 2022
@sdeleuze sdeleuze closed this as not planned Won't fix, can't repro, duplicate, stale Sep 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
for: external-project For an external project and not something we can fix
Development

No branches or pull requests

3 participants