Buggy code:
public class CoreContainer { private static final String DEFAULT_DEFAULT_CORE_NAME = "collection1" ; protected static Logger log = LoggerFactory . getLogger ( CoreContainer . class ) ; protected final Map < String , SolrCore > cores = new LinkedHashMap < String , SolrCore > ( ) ; protected boolean persistent = false ; protected String adminPath = null ; protected String managementPath = null ; protected CoreAdminHandler coreAdminHandler = null ; protected File configFile = null ; protected String libDir = null ; protected ClassLoader libLoader = null ; protected SolrResourceLoader loader = null ; protected Properties containerProperties ; protected Map < String , IndexSchema > indexSchemaCache ; protected String adminHandler ; protected boolean shareSchema ; protected String solrHome ; protected String solrConfigFilenameOverride ; private String defaultCoreName = "" ; private boolean defaultAbortOnConfigError = false ; private int numCoresAbortOnConfigError = 0 ; public CoreContainer ( ) { } public Properties getContainerProperties ( ) { } public static class Initializer { protected String solrConfigFilename = null ; protected boolean abortOnConfigurationError = true ; public boolean isAbortOnConfigurationError ( ) { } public void setAbortOnConfigurationError ( boolean abortOnConfigurationError ) { } public String getSolrConfigFilename ( ) { } @ Deprecated public void setSolrConfigFilename ( String solrConfigFilename ) { } public CoreContainer initialize ( ) throws IOException , ParserConfigurationException , SAXException { CoreContainer cores = null ; String solrHome = SolrResourceLoader . locateSolrHome ( ) ; File fconf = new File ( solrHome , ( ( solrConfigFilename ) == null ? "solr.xml" : solrConfigFilename ) ) ; CoreContainer . log . info ( ( "looking<seq2seq4repair_space>for<seq2seq4repair_space>solr.xml:<seq2seq4repair_space>" + ( fconf . getAbsolutePath ( ) ) ) ) ; cores = new CoreContainer ( ) ; cores . solrConfigFilenameOverride = solrConfigFilename ; if ( fconf . exists ( ) ) { cores . defaultAbortOnConfigError = false ; cores . load ( solrHome , fconf ) ; } else { cores . defaultAbortOnConfigError = abortOnConfigurationError ; <START_BUG> cores . load ( solrHome , new ByteArrayInputStream ( CoreContainer . DEF_SOLR_XML . getBytes ( ) ) ) ; <END_BUG> cores . configFile = fconf ; } setAbortOnConfigurationError ( ( 0 < ( cores . numCoresAbortOnConfigError ) ) ) ; solrConfigFilename = cores . getConfigFile ( ) . getName ( ) ; return cores ; } } private static Properties getCoreProps ( String instanceDir , String file , Properties defaults ) { } public CoreContainer ( String dir , File configFile ) throws IOException , ParserConfigurationException , SAXException { } public CoreContainer ( SolrResourceLoader loader ) { } public CoreContainer ( String solrHome ) { } public void load ( String dir , File configFile ) throws IOException , ParserConfigurationException , SAXException { } public void load ( String dir , InputStream cfgis ) throws IOException , ParserConfigurationException , SAXException { } private Properties readProperties ( Config cfg , Node node ) throws XPathExpressionException { } private boolean isShutDown = false ; public void shutdown ( ) { } @ Override protected void finalize ( ) throws Throwable { } public SolrCore register ( String name , SolrCore core , boolean returnPrevNotClosed ) { } public SolrCore register ( SolrCore core , boolean returnPrev ) { } public SolrCore create ( CoreDescriptor dcore ) throws IOException , ParserConfigurationException , SAXException { } public Collection < SolrCore > getCores ( ) { } public Collection < String > getCoreNames ( ) { } public Collection < String > getCoreNames ( SolrCore core ) { } public void reload ( String name ) throws IOException , ParserConfigurationException , SAXException { } private String checkDefault ( String name ) { } public void swap ( String n0 , String n1 ) { } public SolrCore remove ( String name ) { } public SolrCore getCore ( String name ) { } protected CoreAdminHandler createMultiCoreHandler ( final String adminHandlerClass ) { } public CoreAdminHandler getMultiCoreHandler ( ) { } public String getDefaultCoreName ( ) { } public boolean isPersistent ( ) { } public void setPersistent ( boolean persistent ) { } public String getAdminPath ( ) { } public void setAdminPath ( String adminPath ) { } public String getManagementPath ( ) { } public void setManagementPath ( String path ) { } public File getConfigFile ( ) { } public void persist ( ) { } public void persistFile ( File file ) { } void persist ( Writer w ) throws IOException { } private void writeAttribute ( Writer w , String name , Object value ) throws IOException { } void persist ( Writer w , CoreDescriptor dcore ) throws IOException { } private void writeProperties ( Writer w , Properties props , String indent ) throws IOException { } public static void fileCopy ( File src , File dest ) throws IOException { } public String getSolrHome ( ) { } private static final String DEF_SOLR_XML = ( ( ( ( ( ( ( "<?xml<seq2seq4repair_space>version=\"1.0\"<seq2seq4repair_space>encoding=\"UTF-8\"<seq2seq4repair_space>?>\n" + ( "<solr<seq2seq4repair_space>persistent=\"false\">\n" + "<seq2seq4repair_space><cores<seq2seq4repair_space>adminPath=\"//admin//cores\"<seq2seq4repair_space>defaultCoreName=\"" ) ) + ( CoreContainer . DEFAULT_DEFAULT_CORE_NAME ) ) + "\">\n" ) + "<seq2seq4repair_space><core<seq2seq4repair_space>name=\"" ) + ( CoreContainer . DEFAULT_DEFAULT_CORE_NAME ) ) + "\"<seq2seq4repair_space>instanceDir=\".\"<seq2seq4repair_space>//>\n" ) + "<seq2seq4repair_space><//cores>\n" ) + "<//solr>" ; }

Fix:
cores . load ( solrHome , new ByteArrayInputStream ( CoreContainer . DEF_SOLR_XML . getBytes ( "UTF-8" ) ) ) ;