Re: Please Help, how to Xinclude in schema.xml
(10/05/06 4:31), Turner, Robbin J wrote: I followed through some of the previous post, there seems to be a general problem with trying to us XInclude in the solr schema.xml. I use several variation to include my fieldType declarations. I keep getting an error file not found. I put the file first in the SOLRHOME, then in CATALINA_HOME/conf, then in just CATALINA_HOME. All produced the same error. If someone has an schema.xml example and placement (what path) that work I would greatly appreciate it. Solrhome = /opt/solr Catalina_home = /opt/tomcat A copy of the actual schema_type.xml was placed in /opt/solr/conf, /opt/tomcat/conf and /opt/tomcat For each of the following xincludes, file not found was reported in the catalina.out: Try #1 ?xml version=1.0 encoding=UTF-8? schema name=core1 version=1.2 types xi:include href=/opt/solr/conf/schema_type.xml / /types fields field ... /fields /schema Try #2 ?xml version=1.0 encoding=UTF-8? schema name=core1 version=1.2 types xi:include href=${solr.core.instanceDir}/conf /schema_type.xml / /types fields field ... /fields /schema Try #3 ?xml version=1.0 encoding=UTF-8? schema name=core1 version=1.2 types xi:include href=${catalina.home} /conf/schema_type.xml / /types fields field ... /fields /schema Try #4 ?xml version=1.0 encoding=UTF-8? schema name=core1 version=1.2 types xi:include href=schema_type.xml / /types fields field ... /fields /schema Try #4 ?xml version=1.0 encoding=UTF-8? schema name=core1 version=1.2 types xi:include href=schema_type.xml / /types fields field ... /fields /schema Try #5 ?xml version=1.0 encoding=UTF-8? schema name=core1 version=1.2 types xi:include href=/opt/tomcat/schema_type.xml / /types fields field ... /fields /schema Try #6 ?xml version=1.0 encoding=UTF-8? schema name=core1 version=1.2 types xi:include href=/opt/tomcat/conf/schema_type.xml / /types fields field ... /fields /schema Thanks in advance for any help. robbin Robbin, I've never used xinclude feature so far, but seems that Solr always expects the path is relative CWD: https://issues.apache.org/jira/browse/SOLR-1656 So avoid to use absolute path in href. Koji -- http://www.rondhuit.com/en/
Re: Can I use per field analyzers and dynamic fields?
Hi, thank you for your reply. What you suggested is a good idea and I am probably going to follow it. However, I'd like to hear a comment on the approach of doing the parsing using Lucene and then constructing a SolrQuery from a Lucene Query: QueryParser parser = new QueryParser(, analyzer); Query lucene_query = parser.parse(title:dog title:The author:me author:the the cat is on the table); ... SolrQuery solr_query = new SolrQuery(); solr_query.setQuery(lucene_query.toString()); What are the drawbacks of this approach? Similarly, at indexing time: StringBuffer solr_value = new StringBuffer(); TokenStream ts = analyzer.tokenStream(title, new StringReader(value)); Token token; while ((token = ts.next()) != null) { solr_value.append(token.termText()).append( ); } SolrInputDocument solr_document = new SolrInputDocument(); solr_document.addField(title, solr_value.toString()); ... What are the drawbacks of this approach? Paolo Chris Hostetter wrote: : : The source of my problems is the fact that I do not know in advance the : field names. Users are allowed to decide they own field names, they can, : at runtime, add new fields and different Lucene documents might have : different field names. I would suggest you abstract away the field names your users pick and the underlying fieldnames you use when dealing with solr -- so create the list of fieldTypes you want to support (with all of the individual analzyer configurations that are valid) and then create a dynamicField corrisponding to each one. then if your user tells you they want an author field associated with the type text_en you can map that in your application to author_text_end at both indexing and query time. This will also let you map the same logical field names (from your user's perspective) to different internal field names (from Solr's perspective) based on usage -- searching the author field might be against author_text_en but sorting on author might use author_string. (Some notes were drafted up a while back on making this kind of field name aliasing a feature of Solr, but nothing ever came of it... http://wiki.apache.org/solr/FieldAliasesAndGlobsInParams ) -Hoss
Re: Help indexing PDF files
user Rivulet Enterprise Search http://sourceforge.net/projects/rivu/ http://sourceforge.net/projects/rivu/ it's very easy . -- View this message in context: http://lucene.472066.n3.nabble.com/Help-indexing-PDF-files-tp783677p786781.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: CommonsHttpSolrServer vs EmbeddedSolrServer
use Rivulet Enterprise Search , http://sourceforge.net/projects/rivu/ http://sourceforge.net/projects/rivu/ , it's very easy to use -- View this message in context: http://lucene.472066.n3.nabble.com/CommonsHttpSolrServer-vs-EmbeddedSolrServer-tp784201p786785.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: How to load Core Properties after Core creation?
You shoud edit Solr Source Code , define a Single static SolrCore , after reload solr.xml , change this single static SolrCore -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-load-Core-Properties-after-Core-creation-tp782389p786792.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Please Help, how to Xinclude in schema.xml
try copy to /opt/tomcat/bin -- View this message in context: http://lucene.472066.n3.nabble.com/Please-Help-how-to-Xinclude-in-schema-xml-tp779769p786808.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Solr work at Drupal
try Rivulet Enterprise Search , http://sourceforge.net/projects/rivu/ http://sourceforge.net/projects/rivu/ -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-work-at-Drupal-tp786638p786810.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Custom DIH variables
Rivulet Enterprise Search Provides a web interface, DIH, you might try http://sourceforge.net/projects/rivu/ http://sourceforge.net/projects/rivu/ -- View this message in context: http://lucene.472066.n3.nabble.com/Custom-DIH-variables-tp777696p786836.html Sent from the Solr - User mailing list archive at Nabble.com.
ClassNotFoundException: org.apache.solr.response.VelocityResponseWriter
Hi, I'm trying to get the Velocity / Solritas feature to work for one core of a two-core Solr instance, but it's not playing nice. I know the right jars are being loaded, because I can see them mentioned in the log, but still I get a class not found exception: 09-May-2010 15:34:02 org.apache.solr.core.SolrResourceLoader replaceClassLoader INFO: Adding 'file:/var/www/smesh/current/config/solr/twitter/lib/apache-solr-velocity-1.4.1-dev.jar' to classloader 09-May-2010 15:34:02 org.apache.solr.core.SolrResourceLoader replaceClassLoader INFO: Adding 'file:/var/www/smesh/current/config/solr/twitter/lib/velocity-1.6.1.jar' to classloader 09-May-2010 15:34:02 org.apache.solr.core.SolrResourceLoader replaceClassLoader ... SEVERE: org.apache.solr.common.SolrException: Error loading class 'org.apache.solr.response.VelocityResponseWriter' at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:373) at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:413) ... I've attached the whole log, as it's quite big, and Nabble thinks it's spam because it has too many 'anal' words ;-) http://n3.nabble.com/file/n787256/solr.log solr.log Here is the appropriate part of my solrconfig.xml for the core which is attempting to load Velocity: queryResponseWriter name=velocity class=org.apache.solr.response.VelocityResponseWriter/ requestHandler name=/itas class=solr.SearchHandler lst name=defaults str name=v.templatebrowse/str str name=v.propertiesvelocity.properties/str str name=v.contentTypetext/html;charset=UTF-8/str str name=titleSolritas/str str name=wtvelocity/str str name=defTypestandard/str str name=q.alt*:*/str str name=rows10/str str name=fl*,score/str str name=faceton/str str name=facet.fieldauthor_name/str str name=facet.mincount1/str str name=qf /str /lst !--lst name=invariants-- !--str name=v.base_dir/solr/contrib/velocity/src/main/templates/str-- !--/lst-- /requestHandler Any ideas? Many thanks, once again! Andrew. -- View this message in context: http://lucene.472066.n3.nabble.com/ClassNotFoundException-org-apache-solr-response-VelocityResponseWriter-tp787256p787256.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: ClassNotFoundException: org.apache.solr.response.VelocityResponseWriter
What version of Solr? Try switching to class=solr.VelocityResponseWriter, and if that doesn't work use class=org.apache.solr.request.VelocityResponseWriter. The first form is the recommended way to do it. The actual package changed in trunk not too long ago. Erik On May 9, 2010, at 10:43 AM, Andrew Clegg wrote: Hi, I'm trying to get the Velocity / Solritas feature to work for one core of a two-core Solr instance, but it's not playing nice. I know the right jars are being loaded, because I can see them mentioned in the log, but still I get a class not found exception: 09-May-2010 15:34:02 org.apache.solr.core.SolrResourceLoader replaceClassLoader INFO: Adding 'file:/var/www/smesh/current/config/solr/twitter/lib/apache-solr- velocity-1.4.1-dev.jar' to classloader 09-May-2010 15:34:02 org.apache.solr.core.SolrResourceLoader replaceClassLoader INFO: Adding 'file:/var/www/smesh/current/config/solr/twitter/lib/ velocity-1.6.1.jar' to classloader 09-May-2010 15:34:02 org.apache.solr.core.SolrResourceLoader replaceClassLoader ... SEVERE: org.apache.solr.common.SolrException: Error loading class 'org.apache.solr.response.VelocityResponseWriter' at org .apache .solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:373) at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:413) ... I've attached the whole log, as it's quite big, and Nabble thinks it's spam because it has too many 'anal' words ;-) http://n3.nabble.com/file/n787256/solr.log solr.log Here is the appropriate part of my solrconfig.xml for the core which is attempting to load Velocity: queryResponseWriter name=velocity class=org.apache.solr.response.VelocityResponseWriter/ requestHandler name=/itas class=solr.SearchHandler lst name=defaults str name=v.templatebrowse/str str name=v.propertiesvelocity.properties/str str name=v.contentTypetext/html;charset=UTF-8/str str name=titleSolritas/str str name=wtvelocity/str str name=defTypestandard/str str name=q.alt*:*/str str name=rows10/str str name=fl*,score/str str name=faceton/str str name=facet.fieldauthor_name/str str name=facet.mincount1/str str name=qf /str /lst !--lst name=invariants-- !--str name=v.base_dir/solr/contrib/velocity/src/main/templates/str-- !--/lst-- /requestHandler Any ideas? Many thanks, once again! Andrew. -- View this message in context: http://lucene.472066.n3.nabble.com/ClassNotFoundException-org-apache-solr-response-VelocityResponseWriter-tp787256p787256.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: ClassNotFoundException: org.apache.solr.response.VelocityResponseWriter
Erik Hatcher-4 wrote: What version of Solr? Try switching to class=solr.VelocityResponseWriter, and if that doesn't work use class=org.apache.solr.request.VelocityResponseWriter. The first form is the recommended way to do it. The actual package changed in trunk not too long ago. Hi Erik, This is with vanilla Solr 1.4 I got it working with solr.VelocityResponseWriter -- thanks. However, I'm having trouble with the defType parameter. I want to use the standard query type so people can used nested booleans etc. in the queries. When I tried this in solrconfig: str name=defTypestandard/str I got this from the Solritas page: HTTP ERROR: 400 Unknown query type 'standard' RequestURI=/solr/twitter/itas Powered by Jetty:// However when I tried this: str name=defTypestandard/str I got this exception: HTTP ERROR: 500 null java.lang.NullPointerException at java.io.StringReader.init(StringReader.java:33) at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:197) at org.apache.solr.search.LuceneQParser.parse(LuceneQParserPlugin.java:78) at org.apache.solr.search.QParser.getQuery(QParser.java:131) at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:89) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:174) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316) at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:285) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) RequestURI=/solr/twitter/itas Powered by Jetty:// Do you know what the right way to do this is? Thanks, Andrew. -- View this message in context: http://lucene.472066.n3.nabble.com/ClassNotFoundException-org-apache-solr-response-VelocityResponseWriter-tp787256p787487.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: ClassNotFoundException: org.apache.solr.response.VelocityResponseWriter
Sorry -- in the second of those error messages (the NPE) I meant str name=defTypelucene/str not standard. Andrew Clegg wrote: Erik Hatcher-4 wrote: What version of Solr? Try switching to class=solr.VelocityResponseWriter, and if that doesn't work use class=org.apache.solr.request.VelocityResponseWriter. The first form is the recommended way to do it. The actual package changed in trunk not too long ago. Hi Erik, This is with vanilla Solr 1.4 I got it working with solr.VelocityResponseWriter -- thanks. However, I'm having trouble with the defType parameter. I want to use the standard query type so people can used nested booleans etc. in the queries. When I tried this in solrconfig: str name=defTypestandard/str I got this from the Solritas page: HTTP ERROR: 400 Unknown query type 'standard' RequestURI=/solr/twitter/itas Powered by Jetty:// However when I tried this: str name=defTypestandard/str I got this exception: HTTP ERROR: 500 null java.lang.NullPointerException at java.io.StringReader.init(StringReader.java:33) at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:197) at org.apache.solr.search.LuceneQParser.parse(LuceneQParserPlugin.java:78) at org.apache.solr.search.QParser.getQuery(QParser.java:131) at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:89) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:174) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316) at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:285) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) RequestURI=/solr/twitter/itas Powered by Jetty:// Do you know what the right way to do this is? Thanks, Andrew. -- View this message in context: http://lucene.472066.n3.nabble.com/ClassNotFoundException-org-apache-solr-response-VelocityResponseWriter-tp787256p787490.html Sent from the Solr - User mailing list archive at Nabble.com.
Fixed: Solritas on multicore Solr, using standard query handler (was Re: ClassNotFoundException: org.apache.solr.response.VelocityResponseWriter)
Don't worry Erik -- I figured this one out. For the benefit of future searchers, you need str name=defTypelucene/str And to avoid the NullPointerException from the /solr/CORENAME/itas page, you actually need to supply a ?q=blah initial query. I just assumed it would give you a blank search page if you didn't supply a query. N.B. In case this catches anyone out -- there's also a few places where you need to put the core name into the templates in the conf/velocity directory for the core. They don't pick this up automatically so you need to find any references to /solr/admin or /solr/itas and insert your core name in the middle. (Does anyone know if there'd be a simple way to make that automatic?) Andrew Clegg wrote: Erik Hatcher-4 wrote: What version of Solr? Try switching to class=solr.VelocityResponseWriter, and if that doesn't work use class=org.apache.solr.request.VelocityResponseWriter. The first form is the recommended way to do it. The actual package changed in trunk not too long ago. Hi Erik, This is with vanilla Solr 1.4 I got it working with solr.VelocityResponseWriter -- thanks. However, I'm having trouble with the defType parameter. I want to use the standard query type so people can used nested booleans etc. in the queries. When I tried this in solrconfig: str name=defTypestandard/str I got this from the Solritas page: HTTP ERROR: 400 Unknown query type 'standard' RequestURI=/solr/twitter/itas Powered by Jetty:// However when I tried this: str name=defTypestandard/str I got this exception: HTTP ERROR: 500 null java.lang.NullPointerException at java.io.StringReader.init(StringReader.java:33) at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:197) at org.apache.solr.search.LuceneQParser.parse(LuceneQParserPlugin.java:78) at org.apache.solr.search.QParser.getQuery(QParser.java:131) at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:89) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:174) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316) at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:285) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) RequestURI=/solr/twitter/itas Powered by Jetty:// Do you know what the right way to do this is? Thanks, Andrew. -- :: http://biotext.org.uk/ :: -- View this message in context: http://lucene.472066.n3.nabble.com/ClassNotFoundException-org-apache-solr-response-VelocityResponseWriter-tp787256p787589.html Sent from the Solr - User mailing list archive at Nabble.com.
Unbuffered entity enclosing request can not be repeated.
Hi, I am getting the following error when I run the index process once in a while. I'm using Solr 1.4. Any suggestions on how to resolve this error? Caused by: org.apache.solr.client.solrj.SolrServerException: org.apache.commons.httpclient.ProtocolException: Unbuffered entity enclosing request can not be repeated. at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:469) at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:243) at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105) at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:49) ... 3 more Caused by: org.apache.commons.httpclient.ProtocolException: Unbuffered entity enclosing request can not be repeated. at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:487) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:416) ... 7 more Thanks, Satish
Re: Unbuffered entity enclosing request can not be repeated.
Found these errors in Tomcat's log file: May 9, 2010 10:57:24 PM org.apache.solr.common.SolrException log SEVERE: java.lang.RuntimeException: [was class java.net.SocketTimeoutException] Read timed out at com.ctc.wstx.util.ExceptionUtil.throwRuntimeException(ExceptionUtil.java:18) at com.ctc.wstx.sr.StreamScanner.throwLazyError(StreamScanner.java:731) at com.ctc.wstx.sr.BasicStreamReader.safeFinishToken(BasicStreamReader.java:3657) at com.ctc.wstx.sr.BasicStreamReader.getText(BasicStreamReader.java:809) at org.apache.solr.handler.XMLLoader.readDoc(XMLLoader.java:279) at org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:138) at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:69) at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:54) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316) at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) May 9, 2010 10:57:24 PM org.apache.solr.core.SolrCore execute INFO: [] webapp=/solr path=/update params={wt=javabinversion=1} status=500 QTime=25938 May 9, 2010 10:57:24 PM org.apache.solr.common.SolrException log SEVERE: java.lang.RuntimeException: [was class java.net.SocketTimeoutException] Read timed out at com.ctc.wstx.util.ExceptionUtil.throwRuntimeException(ExceptionUtil.java:18) at com.ctc.wstx.sr.StreamScanner.throwLazyError(StreamScanner.java:731) at com.ctc.wstx.sr.BasicStreamReader.safeFinishToken(BasicStreamReader.java:3657) at com.ctc.wstx.sr.BasicStreamReader.getText(BasicStreamReader.java:809) at org.apache.solr.handler.XMLLoader.readDoc(XMLLoader.java:279) at org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:138) at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:69) at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:54) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316) at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241) May 9, 2010 10:57:33 PM org.apache.solr.update.processor.LogUpdateProcessor finish INFO: {} 0 2 May 9, 2010 10:57:33 PM org.apache.solr.common.SolrException log SEVERE: org.apache.solr.common.SolrException: Invalid chunk header at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:72) at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:54) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316) at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) : On Mon, May 10, 2010 at 12:10 AM, Satish Kumar satish.kumar.just.d...@gmail.com wrote: Hi, I am getting the following error when I run the index process once in a while. I'm using Solr 1.4. Any suggestions on how to resolve this error? Caused by: org.apache.solr.client.solrj.SolrServerException: org.apache.commons.httpclient.ProtocolException: Unbuffered entity enclosing request can not be repeated. at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:469) at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:243) at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105) at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:49) ... 3 more Caused by: org.apache.commons.httpclient.ProtocolException: Unbuffered entity enclosing request can not be repeated. at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:487) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114) at