Skip to content
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

This Spring Data DynamoDB implementation might not be compatible with the available Spring Data classes on the classpath #289

Open
meansoup opened this issue Sep 11, 2020 · 5 comments

Comments

@meansoup
Copy link

Expected Behavior

test works

Actual Behavior

test doesnt work.
I make small test for dynamodb.
test is failed with message This Spring Data DynamoDB implementation might not be compatible with the available Spring Data classes on the classpath

Steps to Reproduce the Problem

  1. make dynamo config in spring boot
  2. make dynamo crud repository
  3. make small test

Specifications

o.s.s.d.d.r.s.DynamoDBRepositoryFactory : Spring Data DynamoDB Version: 5.2.1 (2.2)
o.s.s.d.d.r.s.DynamoDBRepositoryFactory : Spring Data Version: 2.3.3.RELEASE
o.s.s.d.d.r.s.DynamoDBRepositoryFactory : AWS SDK Version: 1.11.706
o.s.s.d.d.r.s.DynamoDBRepositoryFactory : Java Version: 11.0.8 - OpenJDK 64-Bit Server VM 11.0.8+10-post-Ubuntu-0ubuntu120.04
o.s.s.d.d.r.s.DynamoDBRepositoryFactory : Platform Details: Linux 5.4.0-42-generic
o.s.s.d.d.r.s.DynamoDBRepositoryFactory : This Spring Data DynamoDB implementation might not be compatible with the available Spring Data classes on the classpath!
NoDefClassFoundExceptions or similar might occur!

@thanosa75
Copy link

Hey there,

I also have similar issue with the below log;

o.s.s.d.d.r.s.DynamoDBRepositoryFactory  : Spring Data DynamoDB Version: 5.1.0 (2.1)
o.s.s.d.d.r.s.DynamoDBRepositoryFactory  : Spring Data Version:          2.2.10.RELEASE
o.s.s.d.d.r.s.DynamoDBRepositoryFactory  : AWS SDK Version:              1.11.834
o.s.s.d.d.r.s.DynamoDBRepositoryFactory  : Java Version:                 11.0.6 - OpenJDK 64-Bit Server VM 11.0.6+10-post-Debian-1bpo91
o.s.s.d.d.r.s.DynamoDBRepositoryFactory  : Platform Details:             Linux 4.14.177-139.253.amzn2.x86_64
o.s.s.d.d.r.s.DynamoDBRepositoryFactory  : This Spring Data DynamoDB implementation might not be compatible with the available Spring Data classes on the classpath! NoDefClassFoundExceptions or similar might occur!

I do not see a release compatible with the latest Spring-data / Spring boot. Can someone help?

@allan-todd
Copy link

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

@gvespucci
Copy link

@allantodd 🤔
This is happening also with https://github.com/boostchicken/spring-data-dynamodb

INFO  org.socialsignin.spring.data.dynamodb.repository.support.DynamoDBRepositoryFactory ... - Spring Data DynamoDB Version: 5.2.5 (2.2)
INFO  org.socialsignin.spring.data.dynamodb.repository.support.DynamoDBRepositoryFactory ... - Spring Data Version:          2.5.6
INFO  org.socialsignin.spring.data.dynamodb.repository.support.DynamoDBRepositoryFactory ... - AWS SDK Version:              1.12.131
INFO  org.socialsignin.spring.data.dynamodb.repository.support.DynamoDBRepositoryFactory ... - Java Version:                 11.0.11 - OpenJDK 64-Bit Server VM 11.0.11+9
INFO  org.socialsignin.spring.data.dynamodb.repository.support.DynamoDBRepositoryFactory ... - Platform Details:             Mac OS X 11.5
WARN  org.socialsignin.spring.data.dynamodb.repository.support.DynamoDBRepositoryFactory ... - This Spring Data DynamoDB implementation might not be compatible with the available Spring Data classes on the classpath!
NoDefClassFoundExceptions or similar might occur!

@DLade
Copy link

DLade commented Jul 15, 2022

Regarding the code the major and minor version of Spring Data DynamoDB and Spring Data must be the same.
e.g.
Spring Data DynamoDB Version: 5.2.5 (2.2) => major = 2, minor = 2
Spring Data Version: 2.2.10.RELEASE => major = 2, minor = 2

But I wonder why this must be!

@je-s
Copy link

je-s commented Jun 21, 2023

Got this to work with:

  • org.springframework.data:spring-data-jpa:3.1.1
  • o.github.boostchicken:spring-data-dynamodb:5.2.5

Thanks @allan-todd - boostchicken's fork worked, since it supports newer versions of Spring Boot (v3 in our case).

Important site note: In case you want to use @DynamoDBRangeKey, take a look at the wiki.

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

No branches or pull requests

6 participants