avinash-fk opened a new issue, #20589:
URL: https://github.com/apache/pulsar/issues/20589
**Describe the bug**
When using the shaded kafka pulsar adapter with HTTP URL for
bootstrap.servers, results in the following error
```java
Exception in thread "main" java.lang.NoSuchMethodError:
org.asynchttpclient.DefaultAsyncHttpClientConfig$Builder.setEventLoopGroup(Lorg/apache/pulsar/shade/io/netty/channel/EventLoopGroup;)Lorg/asynchttpclient/DefaultAsyncHttpClientConfig$Builder;
at org.apache.pulsar.client.impl.HttpClient.<init>(HttpClient.java:158)
at
org.apache.pulsar.client.impl.HttpLookupService.<init>(HttpLookupService.java:67)
at
org.apache.pulsar.client.impl.PulsarClientImpl.<init>(PulsarClientImpl.java:207)
at
org.apache.pulsar.client.impl.PulsarClientImpl.<init>(PulsarClientImpl.java:154)
at
org.apache.pulsar.client.impl.ClientBuilderImpl.build(ClientBuilderImpl.java:63)
at
org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:151)
at
org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:106)
at
com.flipkart.viesti.producer.KafkaProducerClient.<init>(KafkaProducerClient.java:41)
at
com.flipkart.viesti.producer.ProducerMain$SyncProduce.singleThreaded(ProducerMain.java:32)
at com.flipkart.viesti.producer.ProducerMain.main(ProducerMain.java:19)
```
Looks like async HTTP client is not part of the shaded jar and netty
included in leading to this issue.
**To Reproduce**
Run a producer or consumer with the shaded version of the adapter as the
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]