# How to resolve org.elasticsearch.common.compress.Compressor interface and netty dependency trouble?

**URL:** <https://discuss.elastic.co/t/how-to-resolve-org-elasticsearch-common-compress-compressor-interface-and-netty-dependency-trouble/8310>\
**Category:** Elasticsearch\
**Created:** [July 4, 2012, 10:05am UTC](https://discuss.elastic.co/t/how-to-resolve-org-elasticsearch-common-compress-compressor-interface-and-netty-dependency-trouble/8310 "2012-07-04T10:05:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [July 4, 2012, 10:05am UTC](https://discuss.elastic.co/t/how-to-resolve-org-elasticsearch-common-compress-compressor-interface-and-netty-dependency-trouble/8310/1 "2012-07-04T10:05:10Z")

</div>

Hi kimchy, hi all,

I'm trying to set up a kind of a transport plugin that uses netty, for I'd  
like to play with websockets for publish/subscribe.

Because the netty dependency is shaded, I duplicated the maven dependency  
for netty.

But this does not work. In org.elasticsearch.transport.netty, the  
org.elasticsearch.common.compress.Compressor interface is used:

Compressor compressor = CompressorFactory.compressor(buffer);

with "buffer" being an org.jboss.netty.buffer.ChannelBuffer. Because of the  
shading in ES, the ChannelBuffer becomes  
org.elasticsearch.common.netty.buffer.ChannelBuffer. As a result, the code  
is n longer compilable, because CompressorFactory.compressor() does not  
accept my duplicated original netty class.

Is it possible to resolve this?

Am I forced to remove compressing in plugin code? Should I open an issue?  
Maybe it is an unwanted issue of the new compress lzf feature.

I would be glad if it is somehow possible to get rid of the nasty  
dependency shading at all, it would make life of plugin authors much easier.

Best regards,

Jörg

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:21am UTC](https://discuss.elastic.co/t/how-to-resolve-org-elasticsearch-common-compress-compressor-interface-and-netty-dependency-trouble/8310/2 "2017-07-06T03:21:33Z")

</div>


