diff --git a/src/java/org/apache/solr/core/SolrCore.java b/src/java/org/apache/solr/core/SolrCore.java index b160e05fa17..d97f92af5a7 100644 --- a/src/java/org/apache/solr/core/SolrCore.java +++ b/src/java/org/apache/solr/core/SolrCore.java @@ -374,8 +374,9 @@ public final class SolrCore implements SolrInfoMBean { synchronized( SolrCore.class ) { if( instance == null ) { try { - // sets 'instance' to the latest solr core - instance = new SolrCore( null, null, new SolrConfig(), null, null); + // sets 'instance' to the latest solr core + CoreContainer.Initializer init = new CoreContainer.Initializer(); + instance = init.initialize().getCore(""); } catch(Exception xany) { throw new SolrException( SolrException.ErrorCode.SERVER_ERROR, "error creating core", xany );