must use the SolrCore#createRequestHandler to get the proper error message

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@809466 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2009-08-31 06:32:23 +00:00
parent a7a3a149ba
commit d827172faf
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ final class RequestHandlers {
throw new Exception( "Unknown startup value: '"+info.startup+"' for: "+info.className );
}
} else {
requestHandler = (SolrRequestHandler) config.getResourceLoader().newInstance(info.className);
requestHandler = core.createRequestHandler(info.className);
}
handlers.put(info,requestHandler);
requestHandler.init(info.initArgs);