Are you using the same version of the Elasticsearch jar with respect to the server? Which version are you using? Do you have any added jar dependencies to your project such as netty or Lucene?
-- Ivan On Mon, Jun 23, 2014 at 7:13 AM, Aaliyah <[email protected]> wrote: > The log file has this content: > > [2014-06-23 16:07:32,313][WARN ][transport.netty ] [Boost] > exception caught on transport layer [[id: 0x0d18c137, /127.0.0.1:55654 :> > /127.0.0.1:9300]], closing connection > java.io.StreamCorruptedException: invalid internal transport message format > at > org.elasticsearch.transport.netty.SizeHeaderFrameDecoder.decode(SizeHeaderFrameDecoder.java:27) > at > org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:425) > at > org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) > 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:109) > at > org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312) > at > org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90) > 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:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:744) > > > 在 2014年6月23日星期一UTC+2下午2时47分52秒,Aaliyah写道: > >> I've just tried the first example with java, following http://www. >> elasticsearch.org/guide/en/elasticsearch/client/java-api/ >> current/client.html and http://www.elasticsearch.org/guide/ >> en/elasticsearch/client/java-api/current/index_.html. When I ran this >> sample, got an NoNodeAvailableException. >> >> The code and the exception are in the following: >> >> >> <https://lh6.googleusercontent.com/-8N7TcjYn8T4/U6ggVcQI4PI/AAAAAAAAAG8/dyarDdKo2hQ/s1600/1.PNG> >> >> >> <https://lh6.googleusercontent.com/-8E0mGaN2Jh4/U6ggmlTfEYI/AAAAAAAAAHE/X0ZsVP1xYHg/s1600/2.PNG> >> >> I've searched some posted questions which are also like mine and followed >> the suggestions to rectify my codes. But it didn't work. >> >> Does anybody have an idea? Any pointer would be appreciated! >> >> >> Thanks in advance! >> >> >> >> -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/e5abfc69-3849-462e-aac2-500b4a8b29d4%40googlegroups.com > <https://groups.google.com/d/msgid/elasticsearch/e5abfc69-3849-462e-aac2-500b4a8b29d4%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQDji_RhphTBT2QGAbgmZ974utCTHKscaszJAdibxbEdpw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
