title: Status 500 Error while creating mapping on an index in Elasticsearch cluster
body: <p>I am using Elasticsearch 1.1 on OpenJDK Java 1.7.0(iced tea) on all the nodes of the cluster</p>
  
  <p>While executing the following command:</p>
  
  <pre><code>PUT http://my_machine:9200/index_name
  { 
    "mappings":
    {
        "index_type" : 
        {
            "properties" : 
            {
                "file" : { "type" : "attachment" }
            }
        }
    }
  }
  </code></pre>
  
  <p>I get the following response json:</p>
  
  <pre><code>{
  error: "RemoteTransportException[Failed to deserialize exception response from stream]; nested: TransportSerializationException[Failed to deserialize exception response from stream]; nested: StreamCorruptedException[unexpected end of block data]; "
  status: 500
  }
  </code></pre>
  
  <p>Further, normal GET/PUT/POST requests are working well if the mapping header is not included. e.g.</p>
  
  <pre><code>PUT http://my_machine:9200/index_name
  </code></pre>
  
  <p>works well and returns</p>
  
  <pre><code>{"acknowledged":true}
  </code></pre>
  
  <p>Can anyone explain the reason and suggest possible solutions?</p>