首页

Apache Solr启动不了报“SolrCore Initialization Failures..SolrException..Error Instantiating Update Handler,solr DirectUpdateHandler2 failed to instantiate ”错误

标签:solr,SolrException,apache,异常     发布时间:2017-03-12   

一、异常描述

通过Tomcat启动Apache Solr应用服务报异常“org.apache.solr.common.SolrException; null:java.lang.IllegalStateException: getWriter() has already been called for this response”,访问界面报“SolrCore Initialization Failures..org.apache.solr.common.SolrException:org.apache.solr.common.SolrException:Error Instantiating Update Handler,solr DirectUpdateHandler2 failed to instantiate org.apache.solr.update.UpdateHandler”异常,如下图所示

Apache Solr启动不了报“SolrCore Initialization Failures..SolrException..Error  Instantiating Update Handler,solr DirectUpdateHandler2  failed  to  instantiate ”错误

异常日志如下

ERROR - 2017-03-02 08:47:49.284; org.apache.solr.common.SolrException; null:java.lang.IllegalStateException: getWriter() has already been called for this response@b@	at org.apache.catalina.connector.Response.getOutputStream(Response.java:580)@b@	at org.apache.catalina.connector.ResponseFacade.getOutputStream(ResponseFacade.java:183)@b@	at org.apache.solr.servlet.SolrDispatchFilter.writeResponse(SolrDispatchFilter.java:643)@b@	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:375)@b@	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:158)@b@	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)@b@	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)@b@	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)@b@	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)@b@	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)@b@	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)@b@	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)@b@	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)@b@	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)@b@	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)@b@	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)@b@	at java.lang.Thread.run(Thread.java:745)

二、解决步骤

1.关闭tomcat应用服务

2.打开classes路径下jcesg.properties中关于lexicon.path配置路径,删除solr-md/subject/data的索引数据

Apache Solr启动不了报“SolrCore Initialization Failures..SolrException..Error  Instantiating Update Handler,solr DirectUpdateHandler2  failed  to  instantiate ”错误

3. 重启服务,问题解决了

<<热门下载>>