Buggy code:
} node = ( ( Node ) ( xpath . evaluate ( "//schema//defaultSearchField//text()" , document , XPathConstants . NODE ) ) ) ; if ( node == null ) { IndexSchema . log . warn ( "no<seq2seq4repair_space>default<seq2seq4repair_space>search<seq2seq4repair_space>field<seq2seq4repair_space>specified<seq2seq4repair_space>in<seq2seq4repair_space>schema." ) ; } else { defaultSearchFieldName = node . getNodeValue ( ) . trim ( ) ; if ( ( defaultSearchFieldName ) != null ) { SchemaField defaultSearchField = getFields ( ) . get ( defaultSearchFieldName ) ; if ( ( defaultSearchField == null ) || ( ! ( defaultSearchField . indexed ( ) ) ) ) { String msg = ( "default<seq2seq4repair_space>search<seq2seq4repair_space>field<seq2seq4repair_space>'" + ( defaultSearchFieldName ) ) + "'<seq2seq4repair_space>not<seq2seq4repair_space>defined<seq2seq4repair_space>or<seq2seq4repair_space>not<seq2seq4repair_space>indexed" ; throw new SolrException ( ErrorCode . SERVER_ERROR , msg ) ; } } IndexSchema . log . info ( ( "default<seq2seq4repair_space>search<seq2seq4repair_space>field<seq2seq4repair_space>is<seq2seq4repair_space>" + ( defaultSearchFieldName ) ) ) ; } node = ( ( Node ) ( xpath . evaluate ( "//schema//solrQueryParser//@defaultOperator" , document , XPathConstants . NODE ) ) ) ; if ( node == null ) { IndexSchema . log . debug ( "using<seq2seq4repair_space>default<seq2seq4repair_space>query<seq2seq4repair_space>parser<seq2seq4repair_space>operator<seq2seq4repair_space>(OR)" ) ; } else { queryParserDefaultOperator = node . getNodeValue ( ) . trim ( ) ; IndexSchema . log . info ( ( "query<seq2seq4repair_space>parser<seq2seq4repair_space>default<seq2seq4repair_space>operator<seq2seq4repair_space>is<seq2seq4repair_space>" + ( queryParserDefaultOperator ) ) ) ; } node = ( ( Node ) ( xpath . evaluate ( "//schema//uniqueKey//text()" , document , XPathConstants . NODE ) ) ) ; if ( node == null ) { IndexSchema . log . warn ( "no<seq2seq4repair_space>uniqueKey<seq2seq4repair_space>specified<seq2seq4repair_space>in<seq2seq4repair_space>schema." ) ; } else { uniqueKeyField = getIndexedField ( node . getNodeValue ( ) . trim ( ) ) ; if ( ! ( uniqueKeyField . stored ( ) ) ) { IndexSchema . log . error ( "uniqueKey<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>stored<seq2seq4repair_space>-<seq2seq4repair_space>distributed<seq2seq4repair_space>search<seq2seq4repair_space>will<seq2seq4repair_space>not<seq2seq4repair_space>work" ) ; } if ( uniqueKeyField . multiValued ( ) ) { IndexSchema . log . error ( "uniqueKey<seq2seq4repair_space>should<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>multivalued" ) ; } uniqueKeyFieldName = uniqueKeyField . getName ( ) ; uniqueKeyFieldType = uniqueKeyField . getType ( ) ; IndexSchema . log . info ( ( "unique<seq2seq4repair_space>key<seq2seq4repair_space>field:<seq2seq4repair_space>" + ( uniqueKeyFieldName ) ) ) ; if ( ( Boolean . FALSE ) != ( explicitRequiredProp . get ( uniqueKeyFieldName ) ) ) { uniqueKeyField . required = true ; requiredFields . add ( uniqueKeyField ) ; } } dynamicCopyFields = new IndexSchema . DynamicCopy [ ] { } ; expression = "////copyField" ; nodes = ( ( NodeList ) ( xpath . evaluate ( expression , document , XPathConstants . NODESET ) ) ) ; for ( int i = 0 ; i < ( nodes . getLength ( ) ) ; i ++ ) { node = nodes . item ( i ) ; NamedNodeMap attrs = node . getAttributes ( ) ; String source = DOMUtil . getAttr ( attrs , "source" , "copyField<seq2seq4repair_space>definition" ) ; String dest = DOMUtil . getAttr ( attrs , "dest" , "copyField<seq2seq4repair_space>definition" ) ; String maxChars = DOMUtil . getAttr ( attrs , "maxChars" ) ; int maxCharsInt = CopyField . UNLIMITED ; if ( maxChars != null ) { try { maxCharsInt = Integer . parseInt ( maxChars ) ; } catch ( NumberFormatException e ) { IndexSchema . log . warn ( ( ( ( ( "Couldn't<seq2seq4repair_space>parse<seq2seq4repair_space>maxChars<seq2seq4repair_space>attribute<seq2seq4repair_space>for<seq2seq4repair_space>copyField<seq2seq4repair_space>from<seq2seq4repair_space>" + source ) + "<seq2seq4repair_space>to<seq2seq4repair_space>" ) + dest ) + "<seq2seq4repair_space>as<seq2seq4repair_space>integer.<seq2seq4repair_space>The<seq2seq4repair_space>whole<seq2seq4repair_space>field<seq2seq4repair_space>will<seq2seq4repair_space>be<seq2seq4repair_space>copied." ) ) ; } } registerCopyField ( source , dest , maxCharsInt ) ; } for ( Map . Entry < SchemaField , Integer > entry : copyFieldTargetCounts . entrySet ( ) ) { if ( ( ( entry . getValue ( ) ) > 1 ) && ( ! ( entry . getKey ( ) . multiValued ( ) ) ) ) { IndexSchema . log . warn ( ( ( ( ( ( "Field<seq2seq4repair_space>" + ( entry . getKey ( ) . name ) ) + "<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>multivalued<seq2seq4repair_space>" ) + "and<seq2seq4repair_space>destination<seq2seq4repair_space>for<seq2seq4repair_space>multiple<seq2seq4repair_space>copyFields<seq2seq4repair_space>(" ) + ( entry . getValue ( ) ) ) + ")" ) ) ; } } for ( SchemaAware aware : schemaAware ) { aware . inform ( this ) ; } } catch ( SolrException e ) { severeErrors . add ( e ) ; throw e ; } catch ( Exception e ) { severeErrors . add ( e ) ; <START_BUG> throw new SolrException ( ErrorCode . SERVER_ERROR , "Schema<seq2seq4repair_space>Parsing<seq2seq4repair_space>Failed" , e , false ) ; <END_BUG> } refreshAnalyzers ( ) ; } private void addDynamicField ( List < IndexSchema . DynamicField > dFields , SchemaField f ) { } public void registerDynamicField ( SchemaField ... f ) { } private void addDynamicFieldNoDupCheck ( List < IndexSchema . DynamicField > dFields , SchemaField f ) { } private boolean isDuplicateDynField ( List < IndexSchema . DynamicField > dFields , SchemaField f ) { } public void registerCopyField ( String source , String dest ) { } public void registerCopyField ( String source , String dest , int maxChars ) { } private void registerDynamicCopyField ( IndexSchema . DynamicCopy dcopy ) { } private static Object [ ] append ( Object [ ] orig , Object item ) { } private Analyzer readAnalyzer ( Node node ) throws XPathExpressionException { } abstract static class DynamicReplacement implements Comparable < IndexSchema . DynamicReplacement > { static final int STARTS_WITH = 1 ; static final int ENDS_WITH = 2 ; final String regex ; final int type ; final String str ; protected DynamicReplacement ( String regex ) { } public boolean matches ( String name ) { } public int compareTo ( IndexSchema . DynamicReplacement other ) { } } static final class DynamicField extends IndexSchema . DynamicReplacement { final SchemaField prototype ; DynamicField ( SchemaField prototype ) { } SchemaField makeSchemaField ( String name ) { } @ Override public String toString ( ) { } } static class DynamicCopy extends IndexSchema . DynamicReplacement { final SchemaField targetField ; final int maxChars ; DynamicCopy ( String regex , SchemaField targetField ) { } DynamicCopy ( String regex , SchemaField targetField , int maxChars ) { } public SchemaField getTargetField ( String sourceField ) { }

Fix:
throw new SolrException ( ErrorCode . SERVER_ERROR , ( "Schema<seq2seq4repair_space>Parsing<seq2seq4repair_space>Failed:<seq2seq4repair_space>" + ( e . getMessage ( ) ) ) , e , false ) ;