Hi, I tried the <bool name="abortOnConfigurationError">false</bool> in solr.xml but it does not seem to be working for me. I manually modified solrconfig.xml for core1 to have an invalid path in datadir. And when i restarted my app server (jboss), it threw following error which is what is expected. There were other cores which loaded just fine.
20:23:26,997 ERROR [STDERR] Sep 8, 2009 8:23:26 PM org.apache.solr.common.SolrException log SEVERE: java.lang.RuntimeException: java.io.IOException: The filename, directory name, or volume label syntax is incorrect at org.apache.solr.core.SolrCore.initIndex(SolrCore.java:302) Once the server got started completely, i tried to access the other core's admin page (which does not have any problem) using the url http://localhost:8080/solr/core0/admin/ but it returned me a blank page and following error on server side. But when i correct the path for datadir in solrconfig.xml for core1 and after server restart, everything works fine. Am I missing something here? Please let me know if my testcase is incorrect. 20:30:01,736 ERROR [CoyoteAdapter] An exception or error occurred in the container during the request processing java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:680) at org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutputBuffer.java:419) at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1588) at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:934) at org.apache.coyote.Response.action(Response.java:183) at org.apache.coyote.Response.sendHeaders(Response.java:379) at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:305) at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:273) at org.apache.catalina.connector.Response.finishResponse(Response.java:486) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:257) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) Thanks, Dharmveer djain101 wrote: > > Thanks a lot. I will try this. > > > > markrmiller wrote: >> >> <solr persistent="false"> >> >> <!-- >> adminPath: RequestHandler path to manage cores. >> If 'null' (or absent), cores will not be manageable via REST >> --> >> <cores adminPath="/admin/cores"> >> <bool name="abortOnConfigurationError">false</bool> >> <core name="core0" instanceDir="core0" /> >> <core name="core1" instanceDir="core1" /> >> </cores> >> </solr> >> >> djain101 wrote: >>> Thanks !!! Can you please give an example to put it in solr.xml? How is >>> the >>> xml structure look like for enabling this property? >>> >>> >>> markrmiller wrote: >>> >>>> Yes - try adding it to solr.xml - thats where the CoreContainer looks >>>> for it. >>>> >>>> -- >>>> - Mark >>>> >>>> http://www.lucidimagination.com >>>> >>>> >>>> >>>> djain101 wrote: >>>> >>>>> Any help is much appreciated. >>>>> >>>>> Thanks, >>>>> Dharmveer >>>>> >>>>> >>>>> djain101 wrote: >>>>> >>>>> >>>>>> Hi, >>>>>> >>>>>> We have set >>>>>> <abortOnConfigurationError>false</abortOnConfigurationError> >>>>>> in solrconfig.xml for all the cores but still whenever any >>>>>> configuration >>>>>> error occurs search does not work in any of the cores. Is there any >>>>>> other >>>>>> configuration we have to set so as to not affect search in the cores >>>>>> which >>>>>> are configured correctly? >>>>>> >>>>>> For one of the core, we got following error today but then none of >>>>>> the >>>>>> core is working after that. The below message suggests to add >>>>>> abortOnConfigurationError in solr.xml but we have it added in >>>>>> solrconfig.xml for all the cores. Do we need to add in solr.xml? If >>>>>> yes, >>>>>> where? >>>>>> >>>>>> Please suggest what is the right way to configure so that if one core >>>>>> fails due to configuration errors, all other cores remain unaffected? >>>>>> >>>>>> ***************************************************************** >>>>>> Check your log files for more detailed information on what may be >>>>>> wrong. >>>>>> >>>>>> If you want solr to continue after configuration errors, change: >>>>>> >>>>>> >>>>>> <abortOnConfigurationError>false</abortOnConfigurationError> >>>>>> >>>>>> in solr.xml >>>>>> >>>>>> java.lang.RuntimeException: java.io.IOException: Cannot create >>>>>> directory: >>>>>> /usr/local/app/data/search/core09/index >>>>>> *********************************************************************** >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >> >> >> -- >> - Mark >> >> http://www.lucidimagination.com >> >> >> >> >> > > -- View this message in context: http://www.nabble.com/abortOnConfigurationError%3Dfalse-not-taking-effect-in-solr-1.3-tp25332254p25358007.html Sent from the Solr - User mailing list archive at Nabble.com.