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

    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?
  2. 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?
  3. 0

    spring boot: can't initialize a postgresql datasource

    Stack Overflow | 2 years ago | Daniel Wu
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.batch.core.configuration.annotation.SimpleBatchConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.util.Collection org.springframework.batch.core.configuration.annotation.AbstractBatchConfiguration.dataSources; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'datasourceTest' defined in class path resource [com/testcom/etc/ETLJobRepository.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method 'datasourceTest' threw exception; nested exception is java.lang.IllegalStateException: No supported DataSource type found
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    @Value -> Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer'

    Stack Overflow | 2 years ago | Vojtech
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cz.pokus.core.test.config.ConversionServiceTestConfig': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.util.List cz.pokus.core.test.config.ConversionServiceTestConfig.converterList; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'httpRequestParamsToPaginationParams': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.lang.Integer cz.pokus.core.cases.converter.HttpRequestParamsToPaginationParams.count; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer'; nested exception is java.lang.NumberFormatException: For input string: "${cases.caseList.numberOfCasesPerPage}"
  6. 0

    Cannot configure Neo4j and JUnit with annotations

    Stack Overflow | 2 years ago | SteveS
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hello.TestIt': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: requirement failed: Can't work with a null graph database

  1. asdasd 2 times, last 3 months ago
  2. Tahir 4 times, last 3 months ago
  3. fima 25 times, last 2 months ago
  4. Shadd518 63 times, last 3 months ago
  5. Mark 1 times, last 5 months ago
21 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