I use Spring-data-elasticsearch 3.1.2 to connect to elasticsearch6.2.4 but has some error

java.lang.IllegalArgumentException: maxNumComponents: 1 (expected: >= 2)
at io.netty.buffer.CompositeByteBuf.(CompositeByteBuf.java:68)
at io.netty.buffer.CompositeByteBuf.(CompositeByteBuf.java:78)
at io.netty.buffer.Unpooled.compositeBuffer(Unpooled.java:351)
at org.elasticsearch.transport.netty4.Netty4Utils.toByteBuf(Netty4Utils.java:117)
at org.elasticsearch.transport.netty4.NettyTcpChannel.sendMessage(NettyTcpChannel.java:93)
at org.elasticsearch.transport.TcpTransport.internalSendMessage(TcpTransport.java:1150)
at org.elasticsearch.transport.TcpTransport.access$1000(TcpTransport.java:124)
at org.elasticsearch.transport.TcpTransport$ScheduledPing.doRunInLifecycle(TcpTransport.java:375)
at org.elasticsearch.common.util.concurrent.AbstractLifecycleRunnable.doRun(AbstractLifecycleRunnable.java:67)
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:723)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)

I believe that sharing some code would help us to help you.

Please format your code, logs or configuration files using </> icon as explained in this guide and not the citation button. It will make your post more readable.

Or use markdown style like:


This is the icon to use if you are not using markdown format:

There's a live preview panel for exactly this reasons.

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.