我在tomcat 7上使用solr 4.6来索引数千个文档。它运行良好,但我经常在solr日志索引时遇到Invalid chunk header错误。我还将multipartUplaodLimitinKB的限制增加到204800000 KB,但仍然相同。
请帮忙吗?
974159 [http-bio-8080-exec-82]错误org.apache.solr.servlet.SolrDispatchFilter - null:org.apache.commons.fileupload.FileUploadBase $ IOFileUploadException:处理multipart / form-data请求失败。无效的块头 在org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:367) 在org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126) 在org.apache.solr.servlet.SolrRequestParsers $ MultipartRequestParser.parseParamsAndFillStreams(SolrRequestParsers.java:547) at org.apache.solr.servlet.SolrRequestParsers $ StandardRequestParser.parseParamsAndFillStreams(SolrRequestParsers.java:681) 在org.apache.solr.servlet.SolrRequestParsers.parse(SolrRequestParsers.java:150) 在org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:393) 在org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:197) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 在org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) 在org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) 在org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) 在org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) 在org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) 在org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) 在org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040) at org.apache.coyote.AbstractProtocol $ AbstractConnectionHandler.process(AbstractProtocol.java:607) at org.apache.tomcat.util.net.JIoEndpoint $ SocketProcessor.run(JIoEndpoint.java:315) 在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:615) 在java.lang.Thread.run(Thread.java:724) 引起:java.io.IOException:无效的块头 在org.apache.coyote.http11.filters.ChunkedInputFilter.doRead(ChunkedInputFilter.java:172) at org.apache.coyote.http11.AbstractInputBuffer.doRead(AbstractInputBuffer.java:346) 在org.apache.coyote.Request.doRead(Request.java:422) 在org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:290) 在org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:449) 在org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:315) 在org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:200) 在java.io.FilterInputStream.read(FilterInputStream.java:133) 在org.apache.commons.fileupload.util.LimitedInputStream.read(LimitedInputStream.java:125) 在org.apache.commons.fileupload.MultipartStream $ ItemInputStream.makeAvailable(MultipartStream.java:977) 在org.apache.commons.fileupload.MultipartStream $ ItemInputStream.read(MultipartStream.java:887) 在java.io.InputStream.read(InputStream.java:101)