-
Notifications
You must be signed in to change notification settings - Fork 141
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
Spring 2.1.2 bean creation exception #237
Comments
I am getting the same error even with spring boot 2.1.0.RELEASE |
Ok worked for me using 5.0.4 version and 2.0.9 of Spring data commons and 2.1.2 spring boot version. Maybe works if downgrading Spring data commons to The version supported 5.1.0 have not tested that yet
Skaffa Outlook för Android<https://aka.ms/ghei36>
…________________________________
From: Paweł <[email protected]>
Sent: Sunday, February 10, 2019 10:19:24 AM
To: derjust/spring-data-dynamodb
Cc: Daniel Förberg; Author
Subject: Re: [derjust/spring-data-dynamodb] Spring 2.1.2 bean creation exception (#237)
I am getting the same error even with spring boot 2.1.0.RELEASE
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#237 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AhaQuBx4DRMjvSRvM_uHUm8jEmHsoQmgks5vL-QcgaJpZM4avrjz>.
|
I am having this issue too. Seems like a blocker to use this library with Spring Boot 2.1. @danieleforberg what did you do to downgrade the versions in Maven or Gradle? |
I have tried but did not have any success wheter is not a configuration issue it is bug that stops using 5.1.0 not working as exspected. It says it should support this version but not. Do you need more information from me? Config?
Skaffa Outlook för Android<https://aka.ms/ghei36>
…________________________________
From: Ken Dallmeyer <[email protected]>
Sent: Wednesday, February 13, 2019 4:12:11 AM
To: derjust/spring-data-dynamodb
Cc: Daniel Förberg; Mention
Subject: Re: [derjust/spring-data-dynamodb] Spring 2.1.2 bean creation exception (#237)
I am having this issue too. Seems like a blocker to use this library with Spring Boot 2.1.
@danieleforberg<https://github.com/danieleforberg> what did you do to downgrade the versions in Maven or Gradle?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#237 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AhaQuEM4juaLuVfXuSGER-D84MdbUluhks5vM4KLgaJpZM4avrjz>.
|
In Gradle, by manually adding
|
Ok but 5.1.0 does not work
Skaffa Outlook för Android<https://aka.ms/ghei36>
…________________________________
From: Ken Dallmeyer <[email protected]>
Sent: Wednesday, February 13, 2019 4:44:58 PM
To: derjust/spring-data-dynamodb
Cc: Daniel Förberg; Mention
Subject: Re: [derjust/spring-data-dynamodb] Spring 2.1.2 bean creation exception (#237)
In Gradle, by manually adding org.springframework.data:spring-data-commons:2.0.11.RELEASE, it overwrote what spring boot 2.1 was using so that it is compatible with the 5.0.4 version.
compile "com.amazonaws:aws-java-sdk-dynamodb:1.11.490"
compile "org.springframework.data:spring-data-commons:2.0.11.RELEASE"
compile "com.github.derjust:spring-data-dynamodb:5.0.4"
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#237 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AhaQuNg5kvrYc-Yv_-3jQt5MypO7fdqEks5vNDL6gaJpZM4avrjz>.
|
It is the same as #230 even if it not happen specifically in a test. It will happen both in test and when starting boot. Seems wrong constructor definition in factorybean
Skaffa Outlook för Android<https://aka.ms/ghei36>
…________________________________
From: Ken Dallmeyer <[email protected]>
Sent: Wednesday, February 13, 2019 4:44:58 PM
To: derjust/spring-data-dynamodb
Cc: Daniel Förberg; Mention
Subject: Re: [derjust/spring-data-dynamodb] Spring 2.1.2 bean creation exception (#237)
In Gradle, by manually adding org.springframework.data:spring-data-commons:2.0.11.RELEASE, it overwrote what spring boot 2.1 was using so that it is compatible with the 5.0.4 version.
compile "com.amazonaws:aws-java-sdk-dynamodb:1.11.490"
compile "org.springframework.data:spring-data-commons:2.0.11.RELEASE"
compile "com.github.derjust:spring-data-dynamodb:5.0.4"
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#237 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AhaQuNg5kvrYc-Yv_-3jQt5MypO7fdqEks5vNDL6gaJpZM4avrjz>.
|
@derjust could you please do something about this issue. |
We got the same problem when upgrading to the latest version of springboot |
We are also experiencing a similar problem. |
Here the same. Its really a bug issue because spring boot 2.1.x is needed to get all the latest goodies from spring-security-oauth2-jose |
5.1.0 only works with LoveLace, if you are using something before it it will not work |
I have Spring Boot 2.1.3 running on 5.1.0 just fine here is come of the config make sure you using the BOM for Spring Data and not hardcoding dependencies versions, Note that this will move you to the Spring Data 2.1.x release train (Lovelace)
Work's great here |
Also you do have to setup your DynamoMapper, here is a snippet
|
Also tested against Moore M2, works good. |
Cannot reconstruct your success. Using maven with spring boot 2.1.3
Also used your config ... still getting the same error |
@boostchicken |
Could you test the fix I made? It was an object of a pull request. Best regards. |
Hi @tiagocpeixoto, i tried your fix and it actually solved the issue for me. Best regards, |
@boostchicken couldn't make it work even with the changes you suggested. Getting the same error. Anyone else got it working with Spring Boot 2.1.2 or 2.1.3? |
@gruutak It's impossible for me to say why this works for me and couple others and not for you. I'd be curious to look at your code and see where it differs, totally understand if that's not possible. There is the open PR for @tiagocpeixoto that you could checkout and build locally and see if it fixes your issue. |
hello im trying to use this lib with QueryByExampleExecutor, i.e. Query by Example https://docs.spring.io/spring-data/jpa/docs/current/reference/html/#query-by-example org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'gatesServiceImpl': Unsatisfied dependency expressed through field 'eventsRepository'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eventsRepository': Invocation of init method failed; nested exception is org.springframework.data.mapping.PropertyReferenceException: No property exists found for type Events! Specifications Can you help me???! |
@boostchicken Unfortunately, I can't share the code with you. Trying the fix I got the same error when running the tests, but a slightly different error running the app with the versions you recommended above and the exact same setup for DynamoMapper:
|
Ok, I got it working with the fix. Turns out spring-data-redis was messing stuff up. I had it configured to use a specific version. Started working when I removed the version so it would use the mavenBom |
By reason of project requirements I can't change version of Spring Boot and also should support ddl auto for all entities (only version 5.1.0 supports this feature ). I've fixed this problem by the following workaround , enabling override the spring beans(be careful with it!!!) you should define @primary beans:
Then in my DynamoDBConfiguration class override DynamoDBMapperFactory bean with allowed constructor and set as primary bean for name 'dynamoDB-DynamoDBMapper': @Primary
@Bean(name = "dynamoDB-DynamoDBMapper")
public DynamoDBMapperFactory dynamoDBMapperFactory() {
return new DynamoDBMapperFactory(amazonDynamoDB(), dynamoDBMapperConfig());
} |
Fixing the version of spring-beans dependency to 5.1.6.RELEASE fixes this issue for me but surfaces more issues...
|
Updating to spring-boot Edit: version number typo |
Expected Behavior
Setup dynamo db
Actual Behavior
Steps to Reproduce the Problem
Specifications
All those information are logged by
org.socialsignin.spring.data.dynamodb.repository.support.DynamoDBRepositoryFactory
onINFO
level on startup.Or use
java -version
andmvn dependency:tree | grep -E 'spring|aws'
to provide those version numbers.The text was updated successfully, but these errors were encountered: