org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userRepository': Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'enableDefaultTransactions' of bean class [org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean]: Bean property 'enableDefaultTransactions' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

Spring JIRA | Pramoth Suwanpech | 2 years ago
  1. 0
    Spring expects that the EntityManagerFactory has to be called "entityManagerFactory". It uses convention over configuration to make it easier to use.
  2. 0
    Check Servers Launch Configuration in Eclipse. See the details below.
  3. 0
    Add slf4j dependency to your pom.xml
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    After I move from 1.7.2 to 1.8 a build is broken by below error. {noformat} org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userRepository': Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'enableDefaultTransactions' of bean class [org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean]: Bean property 'enableDefaultTransactions' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter? at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) {noformat}

    Spring JIRA | 2 years ago | Pramoth Suwanpech
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userRepository': Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'enableDefaultTransactions' of bean class [org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean]: Bean property 'enableDefaultTransactions' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
  6. 0

    After I move from 1.7.2 to 1.8 a build is broken by below error. {noformat} org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userRepository': Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'enableDefaultTransactions' of bean class [org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean]: Bean property 'enableDefaultTransactions' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter? at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) {noformat}

    Spring JIRA | 2 years ago | Pramoth Suwanpech
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userRepository': Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'enableDefaultTransactions' of bean class [org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean]: Bean property 'enableDefaultTransactions' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

  1. rp 2 times, last 3 weeks ago
  2. asdasd 2 times, last 4 months ago
  3. Tahir 4 times, last 5 months ago
  4. fima 25 times, last 4 months ago
  5. Shadd518 63 times, last 5 months ago
22 more registered users
17 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.springframework.beans.factory.BeanCreationException

    Error creating bean with name 'userRepository': Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'enableDefaultTransactions' of bean class [org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean]: Bean property 'enableDefaultTransactions' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues()
  2. Spring Beans
    AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues
    1. org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
    1 frame