You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that having a custom method, yields in the following error on startup:
Error creating bean with name 'tagRepository': Could not create query for public abstract com.example.app.tag.domain.Tag com.example.app.tag.application.TagRepository.findByNameIgnoreCase(java.lang.String); Reason: Type not found: org.springframework.data.repository.query.FluentQuery$FetchableFluentQuery<S>
at org.springframework.beans.factory.aot.BeanInstanceSupplier.resolveArgument(BeanInstanceSupplier.java:349) ~[na:na]
at org.springframework.beans.factory.aot.BeanInstanceSupplier.resolveArguments(BeanInstanceSupplier.java:265) ~[na:na]
at org.springframework.beans.factory.aot.BeanInstanceSupplier.get(BeanInstanceSupplier.java:208) ~[na:na]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.obtainInstanceFromSupplier(AbstractAutowireCapableBeanFactory.java:1225) ~[notes:6.0.0-M6]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.obtainFromSupplier(AbstractAutowireCapableBeanFactory.java:1210) ~[notes:6.0.0-M6]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1157) ~[notes:6.0.0-M6]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:561) ~[notes:6.0.0-M6]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:521) ~[notes:6.0.0-M6]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326) ~[notes:6.0.0-M6]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[notes:6.0.0-M6]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324) ~[notes:6.0.0-M6]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[notes:6.0.0-M6]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:931) ~[notes:6.0.0-M6]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:926) ~[notes:6.0.0-M6]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:592) ~[notes:6.0.0-M6]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146) ~[notes:3.0.0-M5]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:751) ~[notes:3.0.0-M5]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:442) ~[notes:3.0.0-M5]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:314) ~[notes:3.0.0-M5]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1323) ~[notes:3.0.0-M5]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) ~[notes:3.0.0-M5]
at de.etalytics.notes.NotesApplicationKt.main(NotesApplication.kt:13) ~[notes:na]
Adding FluentQuery.FetchableFluentQuery constructor as type hint solved the problem:
mp911de
changed the title
missing native reflection hint for custom spring data repository queries
Missing native reflection hint for custom repository queries
Oct 19, 2022
I have the following entities:
Tag:
Notebook:
This is my repository:
I noticed that having a custom method, yields in the following error on startup:
Adding
FluentQuery.FetchableFluentQuery
constructor as type hint solved the problem:I'm using the newest Spring Snapshot from the snapshot repository (16.10.2022). I saw it references Spring Data 3.0.0-RC1.
For reference: spring-projects/spring-framework#29327
The text was updated successfully, but these errors were encountered: