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

Got ClassNotFoundException using spring-data-aerospike 7.2.0 #2860

Closed
netizenp opened this issue Feb 28, 2024 · 3 comments
Closed

Got ClassNotFoundException using spring-data-aerospike 7.2.0 #2860

netizenp opened this issue Feb 28, 2024 · 3 comments
Labels
status: feedback-provided Feedback has been provided

Comments

@netizenp
Copy link

I want to upgrade to java 17 in which i'm including the dependency of aerospike client spring-data-aerospike 7.2.0.

getting error : Factory method 'aerospikeTemplate' threw exception with message: org/springframework/data/convert/EntityInstantiators

@Bean public AerospikeTemplate aerospikeTemplate() { CustomConversions conversions = new CustomConversions(Arrays.asList(AerospikeClientConfigConvertor.StringToJava8LocalDateConverter.INSTANCE, AerospikeClientConfigConvertor.LocalDateToStringConverter.INSTANCE, AerospikeClientConfigConvertor.ZonedDateTimeToStringConverter.INSTANCE, AerospikeClientConfigConvertor.StringToZonedDateTimeConverter.INSTANCE), AerospikeSimpleTypes.HOLDER); AerospikeMappingContext mappingContext = new AerospikeMappingContext(); mappingContext.setDefaultNameSpace(aerospikeNamespace); MappingAerospikeConverter converter = new MappingAerospikeConverter(mappingContext, conversions, new AerospikeTypeAliasAccessor("type")); converter.afterPropertiesSet(); return new AerospikeTemplate(aerospikeClient(), aerospikeNamespace, converter, mappingContext, new DefaultAerospikeExceptionTranslator()); }

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 28, 2024
@sothawo
Copy link
Collaborator

sothawo commented Feb 28, 2024

Spring Data Elasticsearch from version 5.0 is built using Java 17. And how does this relate to Spring Data Elasticsearch?

@sothawo sothawo added status: waiting-for-feedback We need additional information before we can continue and removed status: waiting-for-triage An issue we've not yet triaged labels Feb 28, 2024
@netizenp netizenp reopened this Feb 28, 2024
@netizenp
Copy link
Author

Im getting this error while working with aerospike.

@netizenp netizenp reopened this Feb 28, 2024
@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Feb 28, 2024
@sothawo
Copy link
Collaborator

sothawo commented Feb 28, 2024

no visible relationship to Spring Data Elasticsearch

@sothawo sothawo closed this as not planned Won't fix, can't repro, duplicate, stale Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: feedback-provided Feedback has been provided
Projects
None yet
Development

No branches or pull requests

3 participants