java.io.IOException: Expected handle header, got [22]

nabble.com | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Elasticsearch Users - can connect with http, but NOT through Java API.

    nabble.com | 8 months ago
    java.io.IOException: Expected handle header, got [22]

    Root Cause Analysis

    1. java.io.IOException

      Expected handle header, got [22]

      at org.elasticsearch.common.io.stream.HandlesStreamInput.readUTF()
    2. ElasticSearch
      MessageChannelHandler.handleResponse
      1. org.elasticsearch.common.io.stream.HandlesStreamInput.readUTF(HandlesStreamInput.java:64)
      2. org.elasticsearch.cluster.routing.ImmutableShardRouting.readFromThin(ImmutableShardRouting.java:196)
      3. org.elasticsearch.cluster.routing.ImmutableShardRouting.readFrom(ImmutableShardRouting.java:189)
      4. org.elasticsearch.cluster.routing.ImmutableShardRouting.readShardRoutingEntry(ImmutableShardRouting.java:182)
      5. org.elasticsearch.cluster.routing.IndexShardRoutingTable$Builder.readFromThin(IndexShardRoutingTable.java:463)
      6. org.elasticsearch.cluster.routing.IndexRoutingTable$Builder.readFrom(IndexRoutingTable.java:256)
      7. org.elasticsearch.cluster.routing.RoutingTable$Builder.readFrom(RoutingTable.java:387)
      8. org.elasticsearch.cluster.ClusterState$Builder.readFrom(ClusterState.java:252)
      9. org.elasticsearch.action.admin.cluster.state.ClusterStateResponse.readFrom(ClusterStateResponse.java:66)
      10. org.elasticsearch.transport.netty.MessageChannelHandler.handleResponse(MessageChannelHandler.java:148)
      10 frames