lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From no...@apache.org
Subject svn commit: r809466 - /lucene/solr/trunk/src/java/org/apache/solr/core/RequestHandlers.java
Date Mon, 31 Aug 2009 06:32:23 GMT
Author: noble
Date: Mon Aug 31 06:32:23 2009
New Revision: 809466

URL: http://svn.apache.org/viewvc?rev=809466&view=rev
Log:
must use the SolrCore#createRequestHandler to get the proper error message

Modified:
    lucene/solr/trunk/src/java/org/apache/solr/core/RequestHandlers.java

Modified: lucene/solr/trunk/src/java/org/apache/solr/core/RequestHandlers.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/core/RequestHandlers.java?rev=809466&r1=809465&r2=809466&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/core/RequestHandlers.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/core/RequestHandlers.java Mon Aug 31 06:32:23
2009
@@ -147,7 +147,7 @@
             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);



Mime
View raw message