missing content stream

来源:互联网 发布:最新安卓java模拟器 编辑:程序博客网 时间:2024/06/08 06:05

org.springframework.data.solr.UncategorizedSolrException:missing content stream; nested exception isorg.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:missing content stream

      atorg.springframework.data.solr.core.SolrTemplate.execute(SolrTemplate.java:122)

      atorg.springframework.data.solr.core.SolrTemplate.saveBeans(SolrTemplate.java:176)

      atorg.springframework.data.solr.core.SolrTemplate.saveBeans(SolrTemplate.java:171)

      at ....

Caused by:org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:missing content stream

      atorg.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:495)

      ... 34 more

 

这是因为以数组保存时,数组大小为空,所以出现丢失内容流...

例如:

List list= new ArrayList();

repo.save(list);


究竟如何解决,要看业务

0 0
原创粉丝点击