RobertIndie edited a comment on issue #6834:
URL: https://github.com/apache/pulsar/issues/6834#issuecomment-739936565
> I am having a same issue with pulsar client 2.6.2. Could you please let me
know if i miss any dependency?
> dependency:
> `<dependency> <groupId>org.apache.pulsar</groupId>
<artifactId>pulsar-client</artifactId> <version>2.6.2</version> </dependency>`
>
> Error:
> `org.apache.pulsar.client.api.PulsarClientException:
java.lang.NoSuchMethodError:
org.apache.pulsar.client.api.MessageCrypto.encrypt(Ljava/util/Set;Lorg/apache/pulsar/client/api/CryptoKeyReader;Ljava/util/function/Supplier;Lorg/apache/pulsar/shade/io/netty/buffer/ByteBuf;)Lorg/apache/pulsar/shade/io/netty/buffer/ByteBuf;`
@nhathatrinh
You could try to add this dependency `bouncy-castle-bc` by
```
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>bouncy-castle-bc</artifactId>
<version>${project.parent.version}</version>
<classifier>pkg</classifier>
</dependency>
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]