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

Using Spring 4.0.5 (no spring boot) with spring-kafka 1.0.0 gives NoClassDefFoundError #17

Open
jyoti-codes opened this issue Nov 9, 2023 · 1 comment

Comments

@jyoti-codes
Copy link

0

I have tried to use kafka with Spring version 4.0.5 without Spring Boot. I have used lowest version for Kafka since Spring version is also old and upgrading Spring right now is not possible

Below are newly added Maven dependency

org.apache.kafka kafka-streams 2.0.0 org.springframework.kafka spring-kafka 1.0.0.RELEASE I callkafkaTemplate.send(message)within a scheduled Quartz job and getting

ERROR JobRunShell - Job DEFAULT.jobAlertSenderTask threw an unhandled Exception: java.lang.NoClassDefFoundError: org/springframework/util/concurrent/SettableListenableFuture at org.springframework.kafka.core.KafkaTemplate.doSend(KafkaTemplate.java:194) ~[spring-kafka-1.0.0.RELEASE.jar:na] at org.springframework.kafka.core.KafkaTemplate.send(KafkaTemplate.java:145) ~[spring-kafka-1.0.0.RELEASE.jar:na] at com.myProject.alertSender.kafka.KafkaMessageSender.send(KafkaMessageSender.java:60) ~[classes/:na]

@rjzak
Copy link
Member

rjzak commented Nov 10, 2023

NoClassDefFoundError means that Java can't find a needed class. Since this project doesn't use Java, your error is somewhere else in your project, and not with this repo. This is just a Dockerfile for using Postgres with libraries for some similarity metrics pre-installed.

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

2 participants