This error occurs if you send empty list of document. This is basically saying that you did not send any document to index.
Caused by: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr/core: missing content stream