Buggy code:
class DBReceiverJob extends ComponentBase implements Job { long lastId = 0 ; DBReceiver parentDBReceiver ; DBReceiverJob ( DBReceiver parent ) { } public void execute ( ) { <START_BUG> getLogger ( ) . info ( "DBReceiverJob.execute()<seq2seq4repair_space>called" ) ; <END_BUG> Connection connection = null ; try { Logger logger ; LoggerRepository loggerRepository = parentDBReceiver . getLoggerRepository ( ) ; connection = parentDBReceiver . connectionSource . getConnection ( ) ; StringBuffer sql = new StringBuffer ( ) ; sql . append ( "SELECT<seq2seq4repair_space>" ) ; sql . append ( "sequence_number,<seq2seq4repair_space>" ) ; sql . append ( "timestamp,<seq2seq4repair_space>" ) ; sql . append ( "rendered_message,<seq2seq4repair_space>" ) ; sql . append ( "logger_name,<seq2seq4repair_space>" ) ; sql . append ( "level_string,<seq2seq4repair_space>" ) ; sql . append ( "ndc,<seq2seq4repair_space>" ) ; sql . append ( "thread_name,<seq2seq4repair_space>" ) ; sql . append ( "reference_flag,<seq2seq4repair_space>" ) ; sql . append ( "caller_filename,<seq2seq4repair_space>" ) ; sql . append ( "caller_class,<seq2seq4repair_space>" ) ; sql . append ( "caller_method,<seq2seq4repair_space>" ) ; sql . append ( "caller_line,<seq2seq4repair_space>" ) ; sql . append ( "event_id<seq2seq4repair_space>" ) ; sql . append ( "FROM<seq2seq4repair_space>logging_event<seq2seq4repair_space>" ) ; sql . append ( ( "<seq2seq4repair_space>WHERE<seq2seq4repair_space>event_id<seq2seq4repair_space>><seq2seq4repair_space>" + ( lastId ) ) ) ; sql . append ( "<seq2seq4repair_space>ORDER<seq2seq4repair_space>BY<seq2seq4repair_space>event_id<seq2seq4repair_space>ASC" ) ; Statement statement = connection . createStatement ( ) ; ResultSet rs = statement . executeQuery ( sql . toString ( ) ) ; while ( rs . next ( ) ) { LoggingEvent event = new LoggingEvent ( ) ; event . setSequenceNumber ( rs . getLong ( 1 ) ) ; event . setTimeStamp ( rs . getLong ( 2 ) ) ; event . setRenderedMessage ( rs . getString ( 3 ) ) ; event . setLoggerName ( rs . getString ( 4 ) ) ; String levelStr = rs . getString ( 5 ) ; Level level = Level . toLevel ( levelStr ) ; event . setLevel ( level ) ; event . setNDC ( rs . getString ( 6 ) ) ; event . setThreadName ( rs . getString ( 7 ) ) ; short mask = rs . getShort ( 8 ) ; String fileName = rs . getString ( 9 ) ; String className = rs . getString ( 10 ) ; String methodName = rs . getString ( 11 ) ; String lineNumber = rs . getString ( 12 ) . trim ( ) ; if ( fileName . equals ( NA ) ) { event . setLocationInformation ( NA_LOCATION_INFO ) ; } else { event . setLocationInformation ( new LocationInfo ( fileName , className , methodName , lineNumber ) ) ; } long id = rs . getLong ( 13 ) ; lastId = id ; event . setProperty ( LOG4J_ID_KEY , Long . toString ( id ) ) ; if ( ( mask & ( DBHelper . PROPERTIES_EXIST ) ) != 0 ) { getProperties ( connection , id , event ) ; } if ( ( mask & ( DBHelper . EXCEPTION_EXISTS ) ) != 0 ) { getException ( connection , id , event ) ; } if ( ! ( parentDBReceiver . isPaused ( ) ) ) { parentDBReceiver . doPost ( event ) ; } } statement . close ( ) ; statement = null ; } catch ( SQLException sqle ) { getLogger ( ) . error ( "Problem<seq2seq4repair_space>receiving<seq2seq4repair_space>events" , sqle ) ; } finally { closeConnection ( connection ) ; } } void closeConnection ( Connection connection ) { } void getProperties ( Connection connection , long id , LoggingEvent event ) throws SQLException { } void getException ( Connection connection , long id , LoggingEvent event ) throws SQLException { } }

Fix:
getLogger ( ) . debug ( "DBReceiverJob.execute()<seq2seq4repair_space>called" ) ;