org.springframework.beans.NotReadablePropertyException

Invalid property 'query' of bean class [com.sun.proxy.$Proxy51]: Bean property 'query' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?

Solutions on the web103

  • via Spring JIRA by Romain Moreau, 1 year ago
    Invalid property 'query' of bean class [com.sun.proxy.$Proxy51]: Bean property 'query' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
  • via Spring JIRA by Romain Moreau, 1 year ago
    Invalid property 'query' of bean class [com.sun.proxy.$Proxy51]: Bean property 'query' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
  • via Coderanch by albert kao, 6 months ago
    Invalid property 'province' of bean class [java.lang.String]: Bean property 'province' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
  • Stack trace

    • org.springframework.beans.NotReadablePropertyException: Invalid property 'query' of bean class [com.sun.proxy.$Proxy51]: Bean property 'query' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter? at org.springframework.beans.AbstractNestablePropertyAccessor.getPropertyValue(AbstractNestablePropertyAccessor.java:617) at org.springframework.beans.AbstractNestablePropertyAccessor.getPropertyValue(AbstractNestablePropertyAccessor.java:608) at org.springframework.data.jpa.provider.PersistenceProvider$HibernateScrollableResultsIterator.extractHibernateQueryFromQueryImpl(PersistenceProvider.java:442) at org.springframework.data.jpa.provider.PersistenceProvider$HibernateScrollableResultsIterator.extractHibernate4Query(PersistenceProvider.java:425) at org.springframework.data.jpa.provider.PersistenceProvider$HibernateScrollableResultsIterator.<init>(PersistenceProvider.java:381) at org.springframework.data.jpa.provider.PersistenceProvider$1.executeQueryWithResultStream(PersistenceProvider.java:119) at org.springframework.data.jpa.repository.query.JpaQueryExecution$StreamExecution.doExecute(JpaQueryExecution.java:322) at org.springframework.data.jpa.repository.query.JpaQueryExecution.execute(JpaQueryExecution.java:77) at org.springframework.data.jpa.repository.query.AbstractJpaQuery.doExecute(AbstractJpaQuery.java:100) at org.springframework.data.jpa.repository.query.AbstractJpaQuery.execute(AbstractJpaQuery.java:91) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:431) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:409) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.invoke(DefaultMethodInvokingMethodInterceptor.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:121) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at com.sun.proxy.$Proxy47.streamAll(Unknown Source) at fr.romainmoreau.test.Main.main(Main.java:26)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 5 months ago
    4 times, 9 months ago
    7 times, 11 months ago
    30 times, 1 year ago