[DrainingHash] pulsar-client 4.0.1 with java.lang.ClassNotFoundException #23744
Unanswered
unicojoyhug
asked this question in
Q&A
Replies: 1 comment
|
You might have multiple versions of the Pulsar client in the classpath. The DrainingHash interface is included in the pulsar-client-admin-api module. One way to resolve this problem is to use the Pulsar BOM (unless you are using Spring Boot). For Spring Boot there's a specific solution. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi,
Issue:
Upgrading
org.apache.pulsar:pulsar-client from versionfrom3.3.1to4.0.1- it fails to create the client withClassNotFoundExceptionas below:Implementation:
I use
pulsar-clientto create a client to consume events with addingAuthenticationOAuth2.privateKeyis added withdata:application/json;base64,<base64-encoded value>following doc - authentication-typesWhat I checked:
DrainingHashImpl: the import path doesn't containDrainingHashDrainingHashinterface is found in pulsar-client-admin-api/commonWhat I have tried:
pulsar-client-allinstead to see if I can get these all included, but it failed to find theDrainingHashinterface forDrainingHashImplLet me know if I need to supply more information or write this to somewhere else.
I'd love to know what I should do to avoid this error.
All reactions