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

nabble.com | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

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

    nabble.com | 6 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