Skip to content

Upgrading to 5.1.0 results in the error Bean property 'dynamoDBMapperConfig' is not writable or has an invalid setter method. #235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
davidmelia opened this issue Feb 5, 2019 · 15 comments
Labels
Milestone

Comments

@davidmelia
Copy link

davidmelia commented Feb 5, 2019

Hi,

I have recreated this error in https://github.com/davidmelia/spring-data-dynamodb-bug (run the test DynamoDbBugTests)

In a nutshell, after upgrading to 5.1.0 I get the error below:

Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'dynamoDBMapperConfig' of bean class [org.socialsignin.spring.data.dynamodb.repository.support.DynamoDBRepositoryFactoryBean]: Bean property 'dynamoDBMapperConfig' 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.BeanWrapperImpl.createNotWritablePropertyException(BeanWrapperImpl.java:243) ~[spring-beans-5.1.4.RELEASE.jar:5.1.4.RELEASE]
	at org.springframework.beans.AbstractNestablePropertyAccessor.processLocalProperty(AbstractNestablePropertyAccessor.java:426) ~[spring-beans-5.1.4.RELEASE.jar:5.1.4.RELEASE]
	at org.springframework.beans.AbstractNestablePropertyAccessor.setPropertyValue(AbstractNestablePropertyAccessor.java:278) ~[spring-beans-5.1.4.RELEASE.jar:5.1.4.RELEASE]
	at org.springframework.beans.AbstractNestablePropertyAccessor.setPropertyValue(AbstractNestablePropertyAccessor.java:266) ~[spring-beans-5.1.4.RELEASE.jar:5.1.4.RELEASE]
	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:97) ~[spring-beans-5.1.4.RELEASE.jar:5.1.4.RELEASE]
	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:77) ~[spring-beans-5.1.4.RELEASE.jar:5.1.4.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1681) ~[spring-beans-5.1.4.RELEASE.jar:5.1.4.RELEASE]
	... 55 common frames omitted
@jakobgalbavy
Copy link

I guess, this is related to #230

@shexbeer
Copy link

shexbeer commented Mar 7, 2019

Get the same error when updating to 5.1.0 and spring boot 2.1.3
Is this really related to #230 because it does not occur on Tests. It occurs on application run

@derjust derjust added the bug label Mar 10, 2019
@derjust derjust added this to the 5.1.1 milestone Mar 10, 2019
@derjust
Copy link
Owner

derjust commented Mar 10, 2019

Probably related, yes.
This one is fixed in master and will be part of 5.1.1

@derjust derjust closed this as completed Mar 10, 2019
derjust added a commit that referenced this issue Mar 10, 2019
Upgrading to 5.1.0 results in the error Bean property 'dynamoDBMapperConfig' is not writable or has an invalid setter method.
@ghsatpute
Copy link

Hi @derjust any expected date of release of 5.1.1?

@allan-todd
Copy link

Hi @derjust , I'd also be keen to know when 5.1.1 will be released as we're a bit stuck at the moment. We had to upgrade from 5.0.4 to fix #218 but can't use 5.1.0 owing to this issue.

Thanks

@shexbeer
Copy link

shexbeer commented Jun 5, 2019

Regarding #230 and #237 it would be good to have a fix here!

@lwis
Copy link

lwis commented Aug 2, 2019

Any news on a 5.1.1 release?

@psabharwal123
Copy link

@derjust ^

@mpataki
Copy link

mpataki commented Oct 3, 2019

I'm starting a new project on boot 2.1.8 and 5.1.0 and hitting this issue. 🙏

@lmeadows
Copy link

@derjust Is 5.1.1 ready to go? I am considering making my own maven package based on the current state of master in this repo and vendoring it into my app so that I can have this crucial fix. My main concern is that the 5.1.1 release is being held up by quality problems. Is it ready for production?

@boostchicken
Copy link

@lmeadows

https://github.com/boostchicken/spring-data-dynamodb

api  group: 'io.github.boostchicken', name: 'spring-data-dynamodb', version: '5.2.0-SNAPSHOT'

on OSSRH, give it go and let me know if it works and I'll release soon. Has Spring Boot 2.2 support

@snakeru
Copy link

snakeru commented Nov 1, 2019

Thank you, @boostchicken

My test compiles and runs now!

@boostchicken
Copy link

api group: 'io.github.boostchicken', name: 'spring-data-dynamodb', version: '5.2.1'
On maven central now

@dlaroue4
Copy link

@boostchicken Thank you!

@algimantasligeikis
Copy link

'io.github.boostchicken

Thank you very much, @boostchicken you are wonderful person :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests