Re: error sending a delete all request
Looking into it more, trying to issue a *:* doesn't work on either index. I went back to a different setup of tomcat and solr (just one solr instance), and the command did run. So I'm guessing that I did misconfigure something, but I have no idea what. Now I'm trying to set up a separate instance of tomcat/solr for my current project (don't want to screw up the existing one) and having separate issues...if anyone has run into something like this before and has any pointers into why my multiple instances of solr aren't working right in tomcat then please chime in! Thanks! -- Chris On Thu, Sep 30, 2010 at 4:40 PM, Christopher Gross wrote: > I have also tried using SolrJ to hit my index, and I get this error: > > 2010-09-30 16:23:14,406 [pool-2-thread-1] DEBUG > org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter > http.useragent = Jakarta Commons-HttpClient/3.0 > 2010-09-30 16:23:14,406 [pool-2-thread-1] DEBUG > org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter > http.protocol.version = HTTP/1.1 > 2010-09-30 16:23:14,406 [pool-2-thread-1] DEBUG > org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter > http.connection-manager.class = class > org.apache.commons.httpclient.SimpleHttpConnectionManager > 2010-09-30 16:23:14,406 [pool-2-thread-1] DEBUG > org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter > http.protocol.cookie-policy = rfc2109 > 2010-09-30 16:23:14,406 [pool-2-thread-1] DEBUG > org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter > http.protocol.element-charset = US-ASCII > 2010-09-30 16:23:14,406 [pool-2-thread-1] DEBUG > org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter > http.protocol.content-charset = ISO-8859-1 > 2010-09-30 16:23:14,406 [pool-2-thread-1] DEBUG > org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter > http.method.retry-handler = > org.apache.commons.httpclient.defaulthttpmethodretryhand...@1a082e2 > 2010-09-30 16:23:14,406 [pool-2-thread-1] DEBUG > org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter > http.dateparser.patterns = [EEE, dd MMM HH:mm:ss zzz, , dd-MMM-yy > HH:mm:ss zzz, EEE MMM d HH:mm:ss , EEE, dd-MMM- HH:mm:ss z, EEE, > dd-MMM- HH-mm-ss z, EEE, dd MMM yy HH:mm:ss z, EEE dd-MMM- HH:mm:ss > z, EEE dd MMM HH:mm:ss z, EEE dd-MMM- HH-mm-ss z, EEE dd-MMM-yy > HH:mm:ss z, EEE dd MMM yy HH:mm:ss z, EEE,dd-MMM-yy HH:mm:ss z, > EEE,dd-MMM- HH:mm:ss z, EEE, dd-MM- HH:mm:ss z] > 2010-09-30 16:23:14,421 [pool-2-thread-1] DEBUG > org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter > http.connection-manager.max-per-host = {HostConfiguration[]=32} > 2010-09-30 16:23:14,421 [pool-2-thread-1] DEBUG > org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter > http.connection-manager.max-total = 128 > 2010-09-30 16:23:14,421 [pool-2-thread-1] DEBUG > org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter > http.socket.timeout = 2 > 2010-09-30 16:23:14,421 [pool-2-thread-1] DEBUG > org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter > http.connection-manager.timeout = 4 > 2010-09-30 16:23:14,453 [pool-2-thread-1] DEBUG > org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter > http.connection-manager.max-per-host = {HostConfiguration[]=100} > 2010-09-30 16:23:14,453 [pool-2-thread-1] DEBUG > org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter > http.connection-manager.max-total = 100 > 2010-09-30 16:23:14,484 [pool-2-thread-1] DEBUG > org.apache.commons.httpclient.MultiThreadedHttpConnectionManager - > HttpConnectionManager.getConnection: config = HostConfiguration[host= > http://localhost:8080], timeout = 4 > 2010-09-30 16:23:14,484 [pool-2-thread-1] DEBUG > org.apache.commons.httpclient.MultiThreadedHttpConnectionManager - > Allocating new connection, hostConfig=HostConfiguration[host= > http://localhost:8080] > 2010-09-30 16:23:14,500 [pool-2-thread-1] DEBUG > org.apache.commons.httpclient.HttpConnection - Open connection to > localhost:8080 > 2010-09-30 16:23:14,515 [pool-2-thread-1] DEBUG > org.apache.commons.httpclient.HttpMethodBase - Adding Host request header > 2010-09-30 16:23:14,515 [pool-2-thread-1] DEBUG > org.apache.commons.httpclient.methods.EntityEnclosingMethod - Request body > sent > 2010-09-30 16:23:14,515 [pool-2-thread-1] DEBUG > org.apache.commons.httpclient.HttpMethodBase - Should close connection in > response to directive: close > 2010-09-30 16:23:14,515 [pool-2-thread-1] DEBUG > org.apache.commons.httpclient.HttpConnection - Releasing connection back to > connection manager. > 2010-09-30 16:23:14,515 [pool-2-thread-1] DEBUG > org.apache.commons.httpclient.MultiThreadedHttpConnectionManager - Freeing > connection, hostConfig=HostConfiguration[host=http://localhost:8080] > 2010-09-30 16:23:14,515 [pool-2-thread-1] DEBUG > org.apache.commons.httpcli
Re: error sending a delete all request
I have also tried using SolrJ to hit my index, and I get this error: 2010-09-30 16:23:14,406 [pool-2-thread-1] DEBUG org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter http.useragent = Jakarta Commons-HttpClient/3.0 2010-09-30 16:23:14,406 [pool-2-thread-1] DEBUG org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter http.protocol.version = HTTP/1.1 2010-09-30 16:23:14,406 [pool-2-thread-1] DEBUG org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter http.connection-manager.class = class org.apache.commons.httpclient.SimpleHttpConnectionManager 2010-09-30 16:23:14,406 [pool-2-thread-1] DEBUG org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter http.protocol.cookie-policy = rfc2109 2010-09-30 16:23:14,406 [pool-2-thread-1] DEBUG org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter http.protocol.element-charset = US-ASCII 2010-09-30 16:23:14,406 [pool-2-thread-1] DEBUG org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter http.protocol.content-charset = ISO-8859-1 2010-09-30 16:23:14,406 [pool-2-thread-1] DEBUG org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter http.method.retry-handler = org.apache.commons.httpclient.defaulthttpmethodretryhand...@1a082e2 2010-09-30 16:23:14,406 [pool-2-thread-1] DEBUG org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter http.dateparser.patterns = [EEE, dd MMM HH:mm:ss zzz, , dd-MMM-yy HH:mm:ss zzz, EEE MMM d HH:mm:ss , EEE, dd-MMM- HH:mm:ss z, EEE, dd-MMM- HH-mm-ss z, EEE, dd MMM yy HH:mm:ss z, EEE dd-MMM- HH:mm:ss z, EEE dd MMM HH:mm:ss z, EEE dd-MMM- HH-mm-ss z, EEE dd-MMM-yy HH:mm:ss z, EEE dd MMM yy HH:mm:ss z, EEE,dd-MMM-yy HH:mm:ss z, EEE,dd-MMM- HH:mm:ss z, EEE, dd-MM- HH:mm:ss z] 2010-09-30 16:23:14,421 [pool-2-thread-1] DEBUG org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter http.connection-manager.max-per-host = {HostConfiguration[]=32} 2010-09-30 16:23:14,421 [pool-2-thread-1] DEBUG org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter http.connection-manager.max-total = 128 2010-09-30 16:23:14,421 [pool-2-thread-1] DEBUG org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter http.socket.timeout = 2 2010-09-30 16:23:14,421 [pool-2-thread-1] DEBUG org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter http.connection-manager.timeout = 4 2010-09-30 16:23:14,453 [pool-2-thread-1] DEBUG org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter http.connection-manager.max-per-host = {HostConfiguration[]=100} 2010-09-30 16:23:14,453 [pool-2-thread-1] DEBUG org.apache.commons.httpclient.params.DefaultHttpParams - Set parameter http.connection-manager.max-total = 100 2010-09-30 16:23:14,484 [pool-2-thread-1] DEBUG org.apache.commons.httpclient.MultiThreadedHttpConnectionManager - HttpConnectionManager.getConnection: config = HostConfiguration[host= http://localhost:8080], timeout = 4 2010-09-30 16:23:14,484 [pool-2-thread-1] DEBUG org.apache.commons.httpclient.MultiThreadedHttpConnectionManager - Allocating new connection, hostConfig=HostConfiguration[host= http://localhost:8080] 2010-09-30 16:23:14,500 [pool-2-thread-1] DEBUG org.apache.commons.httpclient.HttpConnection - Open connection to localhost:8080 2010-09-30 16:23:14,515 [pool-2-thread-1] DEBUG org.apache.commons.httpclient.HttpMethodBase - Adding Host request header 2010-09-30 16:23:14,515 [pool-2-thread-1] DEBUG org.apache.commons.httpclient.methods.EntityEnclosingMethod - Request body sent 2010-09-30 16:23:14,515 [pool-2-thread-1] DEBUG org.apache.commons.httpclient.HttpMethodBase - Should close connection in response to directive: close 2010-09-30 16:23:14,515 [pool-2-thread-1] DEBUG org.apache.commons.httpclient.HttpConnection - Releasing connection back to connection manager. 2010-09-30 16:23:14,515 [pool-2-thread-1] DEBUG org.apache.commons.httpclient.MultiThreadedHttpConnectionManager - Freeing connection, hostConfig=HostConfiguration[host=http://localhost:8080] 2010-09-30 16:23:14,515 [pool-2-thread-1] DEBUG org.apache.commons.httpclient.util.IdleConnectionHandler - Adding connection at: 1285878194515 2010-09-30 16:23:14,515 [pool-2-thread-1] DEBUG org.apache.commons.httpclient.MultiThreadedHttpConnectionManager - Notifying no-one, there are no waiting threads 2010-09-30 16:23:14,515 [pool-2-thread-1] WARN gov.dni.search.intelsync.exporter.SyncExporter - org.apache.solr.common.SolrException: Internal Server Error Internal Server Error request: http://localhost:8080/solr2/update?wt=xml&version=2.2 at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:343) at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:183) at org.apache.solr.client.solrj.request.UpdateRequest.process(UpdateRequest.java:217) at org.apache.solr
error sending a delete all request
I'm writing some code that pushes data into a Solr instance. I have my Tomcat (5.5.28) set up to use 2 indexes, I'm hitting the second one for this. I try to issue the basic command to clear out the index (*:*), and I get the error posted below back. Does anyone have an idea of what I'm missing or what could cause this error? I can clip in more from the logs if need be. Thanks! Logs: 2010-09-30 13:21:35,078 [pool-2-thread-1] DEBUG httpclient.wire.header - >> "POST /solr2/update HTTP/1.1[\r][\n]" 2010-09-30 13:21:35,078 [pool-2-thread-1] DEBUG org.apache.commons.httpclient.HttpMethodBase - Adding Host request header 2010-09-30 13:21:35,093 [pool-2-thread-1] DEBUG httpclient.wire.header - >> "User-Agent: Jakarta Commons-HttpClient/3.0[\r][\n]" 2010-09-30 13:21:35,093 [pool-2-thread-1] DEBUG httpclient.wire.header - >> "Host: localhost:8080[\r][\n]" 2010-09-30 13:21:35,093 [pool-2-thread-1] DEBUG httpclient.wire.header - >> "Content-Length: 35[\r][\n]" 2010-09-30 13:21:35,093 [pool-2-thread-1] DEBUG httpclient.wire.header - >> "Content-Type: text/xml; charset=UTF-8[\r][\n]" 2010-09-30 13:21:35,093 [pool-2-thread-1] DEBUG httpclient.wire.header - >> "[\r][\n]" 2010-09-30 13:21:35,093 [pool-2-thread-1] DEBUG httpclient.wire.content - >> "*:*" 2010-09-30 13:21:35,093 [pool-2-thread-1] DEBUG org.apache.commons.httpclient.methods.EntityEnclosingMethod - Request body sent 2010-09-30 13:21:35,093 [pool-2-thread-1] DEBUG httpclient.wire.header - << "HTTP/1.1 500 Internal Server Error[\r][\n]" 2010-09-30 13:21:35,093 [pool-2-thread-1] DEBUG httpclient.wire.header - << "Server: Apache-Coyote/1.1[\r][\n]" 2010-09-30 13:21:35,093 [pool-2-thread-1] DEBUG httpclient.wire.header - << "Content-Type: text/html;charset=utf-8[\r][\n]" 2010-09-30 13:21:35,093 [pool-2-thread-1] DEBUG httpclient.wire.header - << "Content-Length: 7117[\r][\n]" 2010-09-30 13:21:35,093 [pool-2-thread-1] DEBUG httpclient.wire.header - << "Date: Thu, 30 Sep 2010 17:21:35 GMT[\r][\n]" 2010-09-30 13:21:35,093 [pool-2-thread-1] DEBUG httpclient.wire.header - << "Connection: close[\r][\n]" 2010-09-30 13:21:35,093 [pool-2-thread-1] DEBUG org.apache.commons.httpclient.HttpMethodBase - Buffering response body 2010-09-30 13:21:35,093 [pool-2-thread-1] DEBUG httpclient.wire.content - << "Apache Tomcat/5.5.28 -Error report HTTP Status 500 - null[\n]" 2010-09-30 13:21:35,093 [pool-2-thread-1] DEBUG httpclient.wire.content - << "[\n]" 2010-09-30 13:21:35,093 [pool-2-thread-1] DEBUG httpclient.wire.content - << "java.lang.AbstractMethodError[\r][\n]" 2010-09-30 13:21:35,093 [pool-2-thread-1] DEBUG httpclient.wire.content - << "[0x9]at org.apache.lucene.search.Searcher.search(Searcher.java:150)[\r][\n]" Then the actual stack trace in case that helps: java.lang.AbstractMethodError at org.apache.lucene.search.Searcher.search(Searcher.java:150) at org.apache.solr.update.DirectUpdateHandler2.deleteByQuery(DirectUpdateHandler2.java:343) at org.apache.solr.handler.XmlUpdateRequestHandler.update(XmlUpdateRequestHandler.java:260) at org.apache.solr.handler.XmlUpdateRequestHandler.handleRequestBody(XmlUpdateRequestHandler.java:84) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:77) at org.apache.solr.core.SolrCore.execute(SolrCore.java:658) at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:191) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:159) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:204) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Proce