Buggy code:
@ Service public class EventServiceImpl implements Constants , EventService { protected final Logger logger = LoggerFactory . getLogger ( EventServiceImpl . class ) ; protected CassandraDataLoader dataLoaderService ; private final CassandraConnectionProvider connectionProvider ; private BaseCassandraRepoImpl baseDao ; private SimpleDateFormat minuteDateFormatter ; private DataLoggerCaches loggerCache ; private final Gson gson ; public EventServiceImpl ( ) { } @ Override public ActionResponseDTO < EventData > handleLogMessage ( EventData eventData ) { } @ Override public AppDO verifyApiKey ( String apiKey ) { } private Errors validateInsertEventData ( EventData eventData ) { } @ Async private Boolean validateInsertEvent ( Event event ) { } @ Override public ColumnList < String > readEventDetail ( String eventKey ) { } @ Override public Rows < String , String > readLastNevents ( String apiKey , Integer rowsToRead ) { } @ Override public List < Map < String , Object > > readUserLastNEventsResourceIds ( String userUid , String startTime , String endTime , String eventName , Integer eventsToRead ) { } @ Override @ Async public void processMessage ( Event event ) { } public void runMicroAggregation ( String startTime , String endTime ) { } public boolean createEvent ( String eventName , String apiKey ) { } public boolean validateSchedular ( ) { } public void clearCache ( ) { } public void indexActivity ( ) { String lastUpadatedTime = baseDao . readWithKeyColumn ( CONFIGSETTINGS . getColumnFamily ( ) , ACTIVITY_INDEX_LAST_UPDATED , DEFAULT_COLUMN , 0 ) . getStringValue ( ) ; String currentTime = minuteDateFormatter . format ( new Date ( ) ) ; logger . info ( ( ( ( "lastUpadatedTime:<seq2seq4repair_space>" + lastUpadatedTime ) + "<seq2seq4repair_space>-<seq2seq4repair_space>currentTime:<seq2seq4repair_space>" ) + currentTime ) ) ; Date lastDate = null ; Date currDate = null ; String status = baseDao . readWithKeyColumn ( CONFIGSETTINGS . getColumnFamily ( ) , ACTIVITY_INDEX_STATUS , DEFAULT_COLUMN , 0 ) . getStringValue ( ) ; if ( status . equalsIgnoreCase ( COMPLETED ) ) { try { lastDate = minuteDateFormatter . parse ( lastUpadatedTime ) ; currDate = minuteDateFormatter . parse ( currentTime ) ; if ( ( lastDate . getTime ( ) ) < ( currDate . getTime ( ) ) ) { dataLoaderService . updateStagingES ( lastUpadatedTime , currentTime , null , true ) ; } else { logger . debug ( "Waiting<seq2seq4repair_space>to<seq2seq4repair_space>time<seq2seq4repair_space>complete..." ) ; } } catch ( Exception e ) { <START_BUG> logger . error ( ( "Exception:" + e ) ) ; <END_BUG> } } else if ( status . equalsIgnoreCase ( "stop" ) ) { logger . debug ( "Event<seq2seq4repair_space>indexing<seq2seq4repair_space>stopped..." ) ; } else { String lastCheckedCount = baseDao . readWithKeyColumn ( CONFIGSETTINGS . getColumnFamily ( ) , ACTIVITY_INDEX_CHECKED_COUNT , DEFAULT_COLUMN , 0 ) . getStringValue ( ) ; String lastMaxCount = baseDao . readWithKeyColumn ( CONFIGSETTINGS . getColumnFamily ( ) , ACTIVITY_INDEX_MAX_COUNT , DEFAULT_COLUMN , 0 ) . getStringValue ( ) ; if ( ( Integer . parseInt ( lastCheckedCount ) ) < ( Integer . parseInt ( lastMaxCount ) ) ) { baseDao . saveStringValue ( CONFIGSETTINGS . getColumnFamily ( ) , ACTIVITY_INDEX_CHECKED_COUNT , DEFAULT_COLUMN , ( ( EMPTY_STRING ) + ( ( Integer . parseInt ( lastCheckedCount ) ) + 1 ) ) ) ; } else { baseDao . saveStringValue ( CONFIGSETTINGS . getColumnFamily ( ) , ACTIVITY_INDEX_STATUS , DEFAULT_COLUMN , COMPLETED ) ; baseDao . saveStringValue ( CONFIGSETTINGS . getColumnFamily ( ) , ACTIVITY_INDEX_CHECKED_COUNT , DEFAULT_COLUMN , ( "" + 0 ) ) ; } } } @ Override public void index ( String ids , String indexType ) throws Exception { } public DataLoggerCaches getLoggerCache ( ) { } public void setLoggerCache ( DataLoggerCaches loggerCache ) { } }

Fix:
logger . error ( "Exception:" , e ) ;