You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class <DynamoDBBean>cannot be cast to <DynamoDBBean> class ( <DynamoDBBean> is in unnamed module of loader 'app'; <DynamoDBBean> is in unnamed module of loader org.springframework.boot.devtools.restart.classloader.RestartClassLoader
#1043
Closed
peeteko opened this issue
Feb 9, 2024
· 3 comments
Describe the bug
When I use Dspring.devtools.restart.enabled=true I have the following ClassCastException when i try to save or load dynamoDBBeans
Only when I disable the devtools restart then it works
I have this problem when I try to the save or load this via dynamoDBTemplate
Exact error message
class be.bpost.isend.epf.partner.service.store.StatusUpdate cannot be cast to class be.bpost.isend.epf.partner.service.store.StatusUpdate (be.bpost.isend.epf.partner.service.store.StatusUpdate is in unnamed module of loader 'app'; be.bpost.isend.epf.partner.service.store.StatusUpdate is in unnamed module of loader org.springframework.boot.devtools.restart.classloader.RestartClassLoader @1e1a4b25)
Type: Bug
Component:
Describe the bug
When I use Dspring.devtools.restart.enabled=true I have the following ClassCastException when i try to save or load dynamoDBBeans
Only when I disable the devtools restart then it works
I have this problem when I try to the save or load this via dynamoDBTemplate
__dynamoDbTemplate.load(
Key.builder().partitionValue(clientReferenceCode).build(), StatusUpdate.class);
dynamoDbTemplate.save(statusUpdate);__
Exact error message
class be.bpost.isend.epf.partner.service.store.StatusUpdate cannot be cast to class be.bpost.isend.epf.partner.service.store.StatusUpdate (be.bpost.isend.epf.partner.service.store.StatusUpdate is in unnamed module of loader 'app'; be.bpost.isend.epf.partner.service.store.StatusUpdate is in unnamed module of loader org.springframework.boot.devtools.restart.classloader.RestartClassLoader @1e1a4b25)
@DynamoDbBean
public class StatusUpdate {
....
....
}
pom.xml
io.awspring.cloud
spring-cloud-aws-starter-dynamodb
io.awspring.cloud
spring-cloud-aws-dependencies
3.1.0
pom
import
The text was updated successfully, but these errors were encountered: