# Java issue when trying to send requests to ElasticSearch

**URL:** <https://discuss.elastic.co/t/java-issue-when-trying-to-send-requests-to-elasticsearch/16519>\
**Category:** Elasticsearch\
**Created:** [March 21, 2014, 10:50am UTC](https://discuss.elastic.co/t/java-issue-when-trying-to-send-requests-to-elasticsearch/16519 "2014-03-21T10:50:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![charles1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/charles1/32/1563_2.png) [@charles1](https://discuss.elastic.co/u/charles1)\
**Post date:** [March 21, 2014, 10:50am UTC](https://discuss.elastic.co/t/java-issue-when-trying-to-send-requests-to-elasticsearch/16519/1 "2014-03-21T10:50:02Z")

</div>

Hi all,

I am currently trying to set up a complete ElasticSearch + LogStash +  
Kibana stack on Amazon Web Services OpsWorks using the following tutorial  
: [http://devblog.springest.com/complete-logstash-stack-on-aws-opsworks-in-15-minutes/](http://devblog.springest.com/complete-logstash-stack-on-aws-opsworks-in-15-minutes/)

Most of the things run fine except for ElasticSearch. When the process is  
started, if I try to do a simple _c\*\*url -X GET [http://localhost:9200/](http://localhost:9200/)_, I  
get the following answer : _curl: (52) Empty reply from server_

In my cluster's log, I see the hereunder java error. Did anybody experience  
that ? Any suggestions ?

Thanks for your help,

Charles.

Java error :

_[2014-03-21 10:46:48,657][WARN][http.netty] [Cecilia  
Reyes] Caught exception while handling client http traffic, closing  
connection [id: 0xf290eec5, /127.0.0.1:60355 =\> /127.0.0.1:9200]_

_java.lang.IncompatibleClassChangeError: Found class  
org.elasticsearch.http.HttpRequest, but interface was expected_

- at  
com.asquera.elasticsearch.plugins.http.HttpBasicServer.shouldLetPass(HttpBasicServer.java:43)\*

- at  
com.asquera.elasticsearch.plugins.http.HttpBasicServer.internalDispatchRequest(HttpBasicServer.java:35)\*

- at  
org.elasticsearch.http.HttpServer$Dispatcher.dispatchRequest(HttpServer.java:83)\*

- at  
org.elasticsearch.http.netty.NettyHttpServerTransport.dispatchRequest(NettyHttpServerTransport.java:291)\*

- at  
org.elasticsearch.http.netty.HttpRequestHandler.messageReceived(HttpRequestHandler.java:43)\*

- at  
org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)\*

- at  
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)\*

- at  
org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)\*

- at  
org.elasticsearch.common.netty.handler.codec.http.HttpChunkAggregator.messageReceived(HttpChunkAggregator.java:145)\*

- at  
org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)\*

- at  
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)\*

- at  
org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)\*

- at  
org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:296)\*

- at  
org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:459)\*

- at  
org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:536)\*

- at  
org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:435)\*

- at  
org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)\*

- at  
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)\*

- at  
org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)\*

- at  
org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74)\*

- at  
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)\*

- at  
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)\*

- at  
org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268)\*

- at  
org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255)\*

- at  
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)\*

- at  
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108)\*

- at  
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318)\*

- at  
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)\*

- at  
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)\*

- at  
org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)\*

- at  
org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)\*

- at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)\*

- at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\*

_at java.lang.Thread.run(Thread.java:701)_

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/509cdab6-d823-49df-867a-0e24dfadbf0e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/509cdab6-d823-49df-867a-0e24dfadbf0e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Kevin\_Wang](https://avatars.discourse-cdn.com/v4/letter/k/f6c823/32.png) [@Kevin\_Wang](https://discuss.elastic.co/u/Kevin_Wang)\
**Post date:** [March 21, 2014, 11:01am UTC](https://discuss.elastic.co/t/java-issue-when-trying-to-send-requests-to-elasticsearch/16519/2 "2014-03-21T11:01:51Z")

</div>

It looks like you are using "elasticsearch-http-basic" plugin and that  
plugin doesn't support ES 1.0  
[https://github.com/Asquera/elasticsearch-http-basic/issues/9](https://github.com/Asquera/elasticsearch-http-basic/issues/9)

On Friday, March 21, 2014 9:50:02 PM UTC+11, [cha...@pocketplaylab.com](mailto:cha...@pocketplaylab.com) wrote:

> Hi all,
> 
> I am currently trying to set up a complete Elasticsearch + LogStash +  
> Kibana stack on Amazon Web Services OpsWorks using the following tutorial :  
> [http://devblog.springest.com/complete-logstash-stack-on-aws-opsworks-in-15-minutes/](http://devblog.springest.com/complete-logstash-stack-on-aws-opsworks-in-15-minutes/)
> 
> Most of the things run fine except for Elasticsearch. When the process is  
> started, if I try to do a simple _c\*\*url -X GET [http://localhost:9200/](http://localhost:9200/)  
> [http://localhost:9200/](http://localhost:9200/)_, I get the following answer : _curl: (52) Empty  
> reply from server_
> 
> In my cluster's log, I see the hereunder java error. Did anybody  
> experience that ? Any suggestions ?
> 
> Thanks for your help,
> 
> Charles.
> 
> Java error :
> 
> _[2014-03-21 10:46:48,657][WARN][http.netty] [Cecilia  
> Reyes] Caught exception while handling client http traffic, closing  
> connection [id: 0xf290eec5, /127.0.0.1:60355 [http://127.0.0.1:60355](http://127.0.0.1:60355) =\>  
> /127.0.0.1:9200 [http://127.0.0.1:9200](http://127.0.0.1:9200)]_
> 
> _java.lang.IncompatibleClassChangeError: Found class  
> org.elasticsearch.http.HttpRequest, but interface was expected_
> 
> - at  
> com.asquera.elasticsearch.plugins.http.HttpBasicServer.shouldLetPass(HttpBasicServer.java:43)\*
> 
> - at  
> com.asquera.elasticsearch.plugins.http.HttpBasicServer.internalDispatchRequest(HttpBasicServer.java:35)\*
> 
> - at  
> org.elasticsearch.http.HttpServer$Dispatcher.dispatchRequest(HttpServer.java:83)\*
> 
> - at  
> org.elasticsearch.http.netty.NettyHttpServerTransport.dispatchRequest(NettyHttpServerTransport.java:291)\*
> 
> - at  
> org.elasticsearch.http.netty.HttpRequestHandler.messageReceived(HttpRequestHandler.java:43)\*
> 
> - at  
> org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)\*
> 
> - at  
> org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)\*
> 
> - at  
> org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)\*
> 
> - at  
> org.elasticsearch.common.netty.handler.codec.http.HttpChunkAggregator.messageReceived(HttpChunkAggregator.java:145)\*
> 
> - at  
> org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)\*
> 
> - at  
> org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)\*
> 
> - at  
> org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)\*
> 
> - at  
> org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:296)\*
> 
> - at  
> org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:459)\*
> 
> - at  
> org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:536)\*
> 
> - at  
> org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:435)\*
> 
> - at  
> org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)\*
> 
> - at  
> org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)\*
> 
> - at  
> org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)\*
> 
> - at  
> org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74)\*
> 
> - at  
> org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)\*
> 
> - at  
> org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)\*
> 
> - at  
> org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268)\*
> 
> - at  
> org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255)\*
> 
> - at  
> org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)\*
> 
> - at  
> org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108)\*
> 
> - at  
> org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318)\*
> 
> - at  
> org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)\*
> 
> - at  
> org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)\*
> 
> - at  
> org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)\*
> 
> - at  
> org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)\*
> 
> - at  
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)\*
> 
> - at  
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\*
> 
> _at java.lang.Thread.run(Thread.java:701)_

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3199f6b2-c6ef-4639-b256-62719ffb2a25%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3199f6b2-c6ef-4639-b256-62719ffb2a25%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![charles1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/charles1/32/1563_2.png) [@charles1](https://discuss.elastic.co/u/charles1)\
**Post date:** [March 21, 2014, 11:12am UTC](https://discuss.elastic.co/t/java-issue-when-trying-to-send-requests-to-elasticsearch/16519/3 "2014-03-21T11:12:10Z")

</div>

Oh, ok thanks...

I had to update ES because the version of Kibana I am using wasn't  
supporting the previous one. I guess I'll have to downgrade everything or  
wait.

Thanks a lot!

On Friday, March 21, 2014 6:01:51 PM UTC+7, Kevin Wang wrote:

> It looks like you are using "elasticsearch-http-basic" plugin and that  
> plugin doesn't support ES 1.0  
> [https://github.com/Asquera/elasticsearch-http-basic/issues/9](https://github.com/Asquera/elasticsearch-http-basic/issues/9)
> 
> On Friday, March 21, 2014 9:50:02 PM UTC+11, cha...@pocketplaylab.comwrote:
> 
> > Hi all,
> > 
> > I am currently trying to set up a complete Elasticsearch + LogStash +  
> > Kibana stack on Amazon Web Services OpsWorks using the following tutorial :  
> > [http://devblog.springest.com/complete-logstash-stack-on-aws-opsworks-in-15-minutes/](http://devblog.springest.com/complete-logstash-stack-on-aws-opsworks-in-15-minutes/)
> > 
> > Most of the things run fine except for Elasticsearch. When the process is  
> > started, if I try to do a simple _c\*\*url -X GET [http://localhost:9200/](http://localhost:9200/)  
> > [http://localhost:9200/](http://localhost:9200/)_, I get the following answer : _curl: (52)  
> > Empty reply from server_
> > 
> > In my cluster's log, I see the hereunder java error. Did anybody  
> > experience that ? Any suggestions ?
> > 
> > Thanks for your help,
> > 
> > Charles.
> > 
> > Java error :
> > 
> > _[2014-03-21 10:46:48,657][WARN][http.netty] [Cecilia  
> > Reyes] Caught exception while handling client http traffic, closing  
> > connection [id: 0xf290eec5, /127.0.0.1:60355 [http://127.0.0.1:60355](http://127.0.0.1:60355) =\>  
> > /127.0.0.1:9200 [http://127.0.0.1:9200](http://127.0.0.1:9200)]_
> > 
> > _java.lang.IncompatibleClassChangeError: Found class  
> > org.elasticsearch.http.HttpRequest, but interface was expected_
> > 
> > - at  
> > com.asquera.elasticsearch.plugins.http.HttpBasicServer.shouldLetPass(HttpBasicServer.java:43)\*
> > 
> > - at  
> > com.asquera.elasticsearch.plugins.http.HttpBasicServer.internalDispatchRequest(HttpBasicServer.java:35)\*
> > 
> > - at  
> > org.elasticsearch.http.HttpServer$Dispatcher.dispatchRequest(HttpServer.java:83)\*
> > 
> > - at  
> > org.elasticsearch.http.netty.NettyHttpServerTransport.dispatchRequest(NettyHttpServerTransport.java:291)\*
> > 
> > - at  
> > org.elasticsearch.http.netty.HttpRequestHandler.messageReceived(HttpRequestHandler.java:43)\*
> > 
> > - at  
> > org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)\*
> > 
> > - at  
> > org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)\*
> > 
> > - at  
> > org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)\*
> > 
> > - at  
> > org.elasticsearch.common.netty.handler.codec.http.HttpChunkAggregator.messageReceived(HttpChunkAggregator.java:145)\*
> > 
> > - at  
> > org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)\*
> > 
> > - at  
> > org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)\*
> > 
> > - at  
> > org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)\*
> > 
> > - at  
> > org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:296)\*
> > 
> > - at  
> > org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:459)\*
> > 
> > - at  
> > org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:536)\*
> > 
> > - at  
> > org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:435)\*
> > 
> > - at  
> > org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)\*
> > 
> > - at  
> > org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)\*
> > 
> > - at  
> > org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)\*
> > 
> > - at  
> > org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74)\*
> > 
> > - at  
> > org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)\*
> > 
> > - at  
> > org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)\*
> > 
> > - at  
> > org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268)\*
> > 
> > - at  
> > org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255)\*
> > 
> > - at  
> > org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)\*
> > 
> > - at  
> > org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108)\*
> > 
> > - at  
> > org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318)\*
> > 
> > - at  
> > org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)\*
> > 
> > - at  
> > org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)\*
> > 
> > - at  
> > org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)\*
> > 
> > - at  
> > org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)\*
> > 
> > - at  
> > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)\*
> > 
> > - at  
> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\*
> > 
> > _at java.lang.Thread.run(Thread.java:701)_

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3423798c-94ad-4f18-8c91-b2097706ec43%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3423798c-94ad-4f18-8c91-b2097706ec43%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Patrick\_Marx](https://avatars.discourse-cdn.com/v4/letter/p/46a35a/32.png) [@Patrick\_Marx](https://discuss.elastic.co/u/Patrick_Marx)\
**Post date:** [May 15, 2014, 6:59pm UTC](https://discuss.elastic.co/t/java-issue-when-trying-to-send-requests-to-elasticsearch/16519/4 "2014-05-15T18:59:22Z")

</div>

Hey,  
Did you ever find a solution to this? I'm running in to the same issue. Now  
that I think of it, I don't understand how the tutorial even worked unless  
they removed the "elasticsearch-http-basic" plugin altogether.

On Friday, March 21, 2014 4:12:10 AM UTC-7, [cha...@pocketplaylab.com](mailto:cha...@pocketplaylab.com) wrote:

> Oh, ok thanks...
> 
> I had to update ES because the version of Kibana I am using wasn't  
> supporting the previous one. I guess I'll have to downgrade everything or  
> wait.
> 
> Thanks a lot!
> 
> On Friday, March 21, 2014 6:01:51 PM UTC+7, Kevin Wang wrote:
> 
> > It looks like you are using "elasticsearch-http-basic" plugin and that  
> > plugin doesn't support ES 1.0  
> > [https://github.com/Asquera/elasticsearch-http-basic/issues/9](https://github.com/Asquera/elasticsearch-http-basic/issues/9)
> > 
> > On Friday, March 21, 2014 9:50:02 PM UTC+11, cha...@pocketplaylab.comwrote:
> > 
> > > Hi all,
> > > 
> > > I am currently trying to set up a complete Elasticsearch + LogStash +  
> > > Kibana stack on Amazon Web Services OpsWorks using the following tutorial :  
> > > [http://devblog.springest.com/complete-logstash-stack-on-aws-opsworks-in-15-minutes/](http://devblog.springest.com/complete-logstash-stack-on-aws-opsworks-in-15-minutes/)
> > > 
> > > Most of the things run fine except for Elasticsearch. When the process  
> > > is started, if I try to do a simple _c\*\*url -X GET  
> > > [http://localhost:9200/](http://localhost:9200/) [http://localhost:9200/](http://localhost:9200/)_, I get the following  
> > > answer : _curl: (52) Empty reply from server_
> > > 
> > > In my cluster's log, I see the hereunder java error. Did anybody  
> > > experience that ? Any suggestions ?
> > > 
> > > Thanks for your help,
> > > 
> > > Charles.
> > > 
> > > Java error :
> > > 
> > > _[2014-03-21 10:46:48,657][WARN][http.netty] [Cecilia  
> > > Reyes] Caught exception while handling client http traffic, closing  
> > > connection [id: 0xf290eec5, /127.0.0.1:60355 [http://127.0.0.1:60355](http://127.0.0.1:60355) =\>  
> > > /127.0.0.1:9200 [http://127.0.0.1:9200](http://127.0.0.1:9200)]_
> > > 
> > > _java.lang.IncompatibleClassChangeError: Found class  
> > > org.elasticsearch.http.HttpRequest, but interface was expected_
> > > 
> > > - at  
> > > com.asquera.elasticsearch.plugins.http.HttpBasicServer.shouldLetPass(HttpBasicServer.java:43)\*
> > > 
> > > - at  
> > > com.asquera.elasticsearch.plugins.http.HttpBasicServer.internalDispatchRequest(HttpBasicServer.java:35)\*
> > > 
> > > - at  
> > > org.elasticsearch.http.HttpServer$Dispatcher.dispatchRequest(HttpServer.java:83)\*
> > > 
> > > - at  
> > > org.elasticsearch.http.netty.NettyHttpServerTransport.dispatchRequest(NettyHttpServerTransport.java:291)\*
> > > 
> > > - at  
> > > org.elasticsearch.http.netty.HttpRequestHandler.messageReceived(HttpRequestHandler.java:43)\*
> > > 
> > > - at  
> > > org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)\*
> > > 
> > > - at  
> > > org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)\*
> > > 
> > > - at  
> > > org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)\*
> > > 
> > > - at  
> > > org.elasticsearch.common.netty.handler.codec.http.HttpChunkAggregator.messageReceived(HttpChunkAggregator.java:145)\*
> > > 
> > > - at  
> > > org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)\*
> > > 
> > > - at  
> > > org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)\*
> > > 
> > > - at  
> > > org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)\*
> > > 
> > > - at  
> > > org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:296)\*
> > > 
> > > - at  
> > > org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:459)\*
> > > 
> > > - at  
> > > org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:536)\*
> > > 
> > > - at  
> > > org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:435)\*
> > > 
> > > - at  
> > > org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)\*
> > > 
> > > - at  
> > > org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)\*
> > > 
> > > - at  
> > > org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)\*
> > > 
> > > - at  
> > > org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74)\*
> > > 
> > > - at  
> > > org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)\*
> > > 
> > > - at  
> > > org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)\*
> > > 
> > > - at  
> > > org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268)\*
> > > 
> > > - at  
> > > org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255)\*
> > > 
> > > - at  
> > > org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)\*
> > > 
> > > - at  
> > > org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108)\*
> > > 
> > > - at  
> > > org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318)\*
> > > 
> > > - at  
> > > org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)\*
> > > 
> > > - at  
> > > org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)\*
> > > 
> > > - at  
> > > org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)\*
> > > 
> > > - at  
> > > org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)\*
> > > 
> > > - at  
> > > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)\*
> > > 
> > > - at  
> > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\*
> > > 
> > > _at java.lang.Thread.run(Thread.java:701)_

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/600eb76f-cfc6-47ad-83e8-95d8e6283336%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/600eb76f-cfc6-47ad-83e8-95d8e6283336%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![charles1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/charles1/32/1563_2.png) [@charles1](https://discuss.elastic.co/u/charles1)\
**Post date:** [May 16, 2014, 3:28am UTC](https://discuss.elastic.co/t/java-issue-when-trying-to-send-requests-to-elasticsearch/16519/5 "2014-05-16T03:28:04Z")

</div>

The tutorial was done with older versions of logstash, kibana and  
elasticsearch so I guess that those issues didn't show up.

I did a lot of things... And I spent so much time making it work, and the  
tutorial is clearly not working out of the box. I also modified their  
logstash cookbook so it could do what I want it to do.

Oh and by the way I'm not using rabbitMQ but AWS SQS instead.

On Fri, May 16, 2014 at 1:59 AM, Patrick Marx [patrick.k.marx@gmail.com](mailto:patrick.k.marx@gmail.com)wrote:

> Hey,  
> Did you ever find a solution to this? I'm running in to the same issue.  
> Now that I think of it, I don't understand how the tutorial even worked  
> unless they removed the "elasticsearch-http-basic" plugin altogether.
> 
> On Friday, March 21, 2014 4:12:10 AM UTC-7, cha...@pocketplaylab.comwrote:
> 
> > Oh, ok thanks...
> > 
> > I had to update ES because the version of Kibana I am using wasn't  
> > supporting the previous one. I guess I'll have to downgrade everything or  
> > wait.
> > 
> > Thanks a lot!
> > 
> > On Friday, March 21, 2014 6:01:51 PM UTC+7, Kevin Wang wrote:
> > 
> > > It looks like you are using "elasticsearch-http-basic" plugin and that  
> > > plugin doesn't support ES 1.0  
> > > [https://github.com/Asquera/elasticsearch-http-basic/issues/9](https://github.com/Asquera/elasticsearch-http-basic/issues/9)
> > > 
> > > On Friday, March 21, 2014 9:50:02 PM UTC+11, cha...@pocketplaylab.comwrote:
> > > 
> > > > Hi all,
> > > > 
> > > > I am currently trying to set up a complete Elasticsearch + LogStash +  
> > > > Kibana stack on Amazon Web Services OpsWorks using the following tutorial :  
> > > > [http://devblog.springest.com/complete-logstash-stack-](http://devblog.springest.com/complete-logstash-stack-)  
> > > > on-aws-opsworks-in-15-minutes/
> > > > 
> > > > Most of the things run fine except for Elasticsearch. When the process  
> > > > is started, if I try to do a simple _c\*\*url -X GET  
> > > > [http://localhost:9200/](http://localhost:9200/) [http://localhost:9200/](http://localhost:9200/)_, I get the following  
> > > > answer : _curl: (52) Empty reply from server_
> > > > 
> > > > In my cluster's log, I see the hereunder java error. Did anybody  
> > > > experience that ? Any suggestions ?
> > > > 
> > > > Thanks for your help,
> > > > 
> > > > Charles.
> > > > 
> > > > Java error :
> > > > 
> > > > _[2014-03-21 10:46:48,657][WARN][http.netty] [Cecilia  
> > > > Reyes] Caught exception while handling client http traffic, closing  
> > > > connection [id: 0xf290eec5, /127.0.0.1:60355 [http://127.0.0.1:60355](http://127.0.0.1:60355) =\>  
> > > > /127.0.0.1:9200 [http://127.0.0.1:9200](http://127.0.0.1:9200)]_
> > > > 
> > > > _java.lang.IncompatibleClassChangeError: Found class  
> > > > org.elasticsearch.http.HttpRequest, but interface was expected_
> > > > 
> > > > - at  
> > > > com.asquera.elasticsearch.plugins.http.HttpBasicServer.shouldLetPass(HttpBasicServer.java:43)\*
> > > > 
> > > > - at  
> > > > com.asquera.elasticsearch.plugins.http.HttpBasicServer.internalDispatchRequest(HttpBasicServer.java:35)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.http.HttpServer$Dispatcher.dispatchRequest(HttpServer.java:83)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.http.netty.NettyHttpServerTransport.dispatchRequest(NettyHttpServerTransport.java:291)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.http.netty.HttpRequestHandler.messageReceived(HttpRequestHandler.java:43)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.common.netty.handler.codec.http.HttpChunkAggregator.messageReceived(HttpChunkAggregator.java:145)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:296)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:459)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:536)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:435)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)\*
> > > > 
> > > > - at  
> > > > org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)\*
> > > > 
> > > > - at  
> > > > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)\*
> > > > 
> > > > - at  
> > > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\*
> > > > 
> > > > _at java.lang.Thread.run(Thread.java:701)_
> > > 
> > > --  
> > > You received this message because you are subscribed to a topic in the  
> > > Google Groups "elasticsearch" group.  
> > > To unsubscribe from this topic, visit  
> > > [https://groups.google.com/d/topic/elasticsearch/VHIa\_3Xa57g/unsubscribe](https://groups.google.com/d/topic/elasticsearch/VHIa_3Xa57g/unsubscribe).  
> > > To unsubscribe from this group and all its topics, send an email to  
> > > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/600eb76f-cfc6-47ad-83e8-95d8e6283336%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/600eb76f-cfc6-47ad-83e8-95d8e6283336%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/600eb76f-cfc6-47ad-83e8-95d8e6283336%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/600eb76f-cfc6-47ad-83e8-95d8e6283336%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAPBw%2B7jFUA\_6wqbkP5p0\_cX9soxgpyZ30tsNhvdDo4m5W95QTg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPBw%2B7jFUA_6wqbkP5p0_cX9soxgpyZ30tsNhvdDo4m5W95QTg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:29am UTC](https://discuss.elastic.co/t/java-issue-when-trying-to-send-requests-to-elasticsearch/16519/6 "2017-07-06T01:29:04Z")

</div>


