Closed nvmav closed 1 year ago
Do you have other libraries in the claspath ? Which client are you using? pulsar-client (shaded) or pulsar-client-original (with explicit dependencies?)
@eolivelli This is my pulsar client library
<dependency>
<groupId>org.apache.pulsar</groupId>
<artifactId>pulsar-client</artifactId>
<version>2.10.0</version>
</dependency>
How do I check other libraries in classpath? Is it okay if I list down all libraries in my pom.xml?
If you use idea, project > external libraries > Maven: org apache. Pulsar: pulsar client: 2.10.0. Check whether the class causing the error is found. I speculate that there are other packages in Maven that cause this class not to be imported, which may be a version conflict.Because I run your code with the same configuration as you, he doesn't report an error, and my pom.xml There is only pulsar-client dependency.
The issue had no activity for 30 days, mark with Stale label.
Closed as stale. Cannot reproduce and I suspect it's other issues.
I am trying to consume from pulsar topic. But, I am not able to consume. It is throwing NoClassDefFoundError. how can this be resolved?
pulsar client version: 2.10 pulsar server version: 2.10 OS: Ubuntu 20.04.4 LTS installation type: standalone(not docker) java sdk version: 11 & 17
consumer code:
schema for my topic:
I am seeing below error: