Buggy code:
} if ( ( verboseDebug ) && ( epw . getEntity ( ) . isDocRoot ( ) ) ) { getDebugLogger ( ) . log ( START_DOC , epw . getEntity ( ) . getName ( ) , null ) ; } if ( ( doc == null ) && ( epw . getEntity ( ) . isDocRoot ( ) ) ) { doc = new DocBuilder . DocWrapper ( ) ; ctx . setDoc ( doc ) ; Entity e = epw . getEntity ( ) ; while ( ( e . getParentEntity ( ) ) != null ) { addFields ( e . getParentEntity ( ) , doc , ( ( Map < String , Object > ) ( vr . resolve ( e . getParentEntity ( ) . getName ( ) ) ) ) , vr ) ; e = e . getParentEntity ( ) ; } } Map < String , Object > arow = epw . nextRow ( ) ; if ( arow == null ) { break ; } if ( epw . getEntity ( ) . isDocRoot ( ) ) { if ( seenDocCount <= ( reqParams . getStart ( ) ) ) continue ; if ( seenDocCount > ( ( reqParams . getStart ( ) ) + ( reqParams . getRows ( ) ) ) ) { DocBuilder . LOG . info ( ( "Indexing<seq2seq4repair_space>stopped<seq2seq4repair_space>at<seq2seq4repair_space>docCount<seq2seq4repair_space>=<seq2seq4repair_space>" + ( importStatistics . docCount ) ) ) ; break ; } } if ( verboseDebug ) { getDebugLogger ( ) . log ( ENTITY_OUT , epw . getEntity ( ) . getName ( ) , arow ) ; } importStatistics . rowsCount . incrementAndGet ( ) ; if ( doc != null ) { handleSpecialCommands ( arow , doc ) ; addFields ( epw . getEntity ( ) , doc , arow , vr ) ; } if ( ( epw . getEntity ( ) . getChildren ( ) ) != null ) { vr . addNamespace ( epw . getEntity ( ) . getName ( ) , arow ) ; for ( EntityProcessorWrapper child : epw . getChildren ( ) ) { buildDocument ( vr , doc , ( child . getEntity ( ) . isDocRoot ( ) ? pk : null ) , child , false , ctx , entitiesToDestroy ) ; } vr . removeNamespace ( epw . getEntity ( ) . getName ( ) ) ; } if ( epw . getEntity ( ) . isDocRoot ( ) ) { if ( stop . get ( ) ) return ; if ( ! ( doc . isEmpty ( ) ) ) { boolean result = writer . upload ( doc ) ; if ( reqParams . isDebug ( ) ) { reqParams . getDebugInfo ( ) . debugDocuments . add ( doc ) ; } doc = null ; if ( result ) { importStatistics . docCount . incrementAndGet ( ) ; } else { importStatistics . failedDocCount . incrementAndGet ( ) ; } } } } catch ( DataImportHandlerException e ) { if ( verboseDebug ) { getDebugLogger ( ) . log ( ENTITY_EXCEPTION , epw . getEntity ( ) . getName ( ) , e ) ; } if ( ( e . getErrCode ( ) ) == ( DataImportHandlerException . SKIP_ROW ) ) { continue ; } if ( isRoot ) { if ( ( e . getErrCode ( ) ) == ( DataImportHandlerException . SKIP ) ) { importStatistics . skipDocCount . getAndIncrement ( ) ; doc = null ; } else { SolrException . log ( DocBuilder . LOG , ( ( ( "Exception<seq2seq4repair_space>while<seq2seq4repair_space>processing:<seq2seq4repair_space>" + ( epw . getEntity ( ) . getName ( ) ) ) + "<seq2seq4repair_space>document<seq2seq4repair_space>:<seq2seq4repair_space>" ) + doc ) , e ) ; } if ( ( e . getErrCode ( ) ) == ( DataImportHandlerException . SEVERE ) ) throw e ; } else throw e ; <START_BUG> } catch ( Throwable t ) { <END_BUG> if ( verboseDebug ) { getDebugLogger ( ) . log ( ENTITY_EXCEPTION , epw . getEntity ( ) . getName ( ) , t ) ; } throw new DataImportHandlerException ( DataImportHandlerException . SEVERE , t ) ; } finally { if ( verboseDebug ) { getDebugLogger ( ) . log ( ROW_END , epw . getEntity ( ) . getName ( ) , null ) ; if ( epw . getEntity ( ) . isDocRoot ( ) ) getDebugLogger ( ) . log ( END_DOC , null , null ) ; } } } } finally { if ( verboseDebug ) { getDebugLogger ( ) . log ( END_ENTITY , null , null ) ; } } } static class DocWrapper extends SolrInputDocument { Map < String , Object > session ; public void setSessionAttribute ( String key , Object val ) { } public Object getSessionAttribute ( String key ) { } } private void handleSpecialCommands ( Map < String , Object > arow , DocBuilder . DocWrapper doc ) { } @ SuppressWarnings ( "unchecked" ) private void addFields ( Entity entity , DocBuilder . DocWrapper doc , Map < String , Object > arow , VariableResolver vr ) { } private void addFieldToDoc ( Object value , String name , float boost , boolean multiValued , DocBuilder . DocWrapper doc ) { } private EntityProcessorWrapper getEntityProcessorWrapper ( Entity entity ) { } private String findMatchingPkColumn ( String pk , Map < String , Object > row ) { } @ SuppressWarnings ( "unchecked" ) public Set < Map < String , Object > > collectDelta ( EntityProcessorWrapper epw , VariableResolver resolver , Set < Map < String , Object > > deletedRows ) { } private void getModifiedParentRows ( VariableResolver resolver , String entity , EntityProcessor entityProcessor , Set < Map < String , Object > > parentKeyList ) { } public void abort ( ) { } private AtomicBoolean stop = new AtomicBoolean ( false ) ;

Fix:
} catch ( Exception t ) {