Buggy code:
public class CassandraDaemon { private static Logger logger = Logger . getLogger ( CassandraDaemon . class ) ; private TServer serverEngine ; private void setup ( ) throws IOException , TTransportException { String file = ( ( System . getProperty ( "storage-config" ) ) + ( File . separator ) ) + "log4j.properties" ; PropertyConfigurator . configure ( file ) ; int listenPort = DatabaseDescriptor . getThriftPort ( ) ; InetAddress listenAddr = DatabaseDescriptor . getThriftAddress ( ) ; if ( listenAddr == null ) listenAddr = FBUtilities . getLocalAddress ( ) ; Thread . setDefaultUncaughtExceptionHandler ( new Thread . UncaughtExceptionHandler ( ) { public void uncaughtException ( Thread t , Throwable e ) { <START_BUG> CassandraDaemon . logger . error ( ( "Fatal<seq2seq4repair_space>exception<seq2seq4repair_space>in<seq2seq4repair_space>thread<seq2seq4repair_space>" + t ) , e ) ; <END_BUG> if ( e instanceof OutOfMemoryError ) { System . exit ( 100 ) ; } } } ) ; try { SystemTable . checkHealth ( ) ; } catch ( IOException e ) { CassandraDaemon . logger . error ( "Fatal<seq2seq4repair_space>exception<seq2seq4repair_space>during<seq2seq4repair_space>initialization" , e ) ; System . exit ( 100 ) ; } for ( String table : DatabaseDescriptor . getTables ( ) ) { if ( CassandraDaemon . logger . isDebugEnabled ( ) ) CassandraDaemon . logger . debug ( ( "opening<seq2seq4repair_space>keyspace<seq2seq4repair_space>" + table ) ) ; Table . open ( table ) ; } CommitLog . recover ( ) ; instance . checkAllColumnFamilies ( ) ; StorageService . instance . initServer ( ) ; final CassandraServer cassandraServer = new CassandraServer ( ) ; Cassandra . Processor processor = new Cassandra . Processor ( cassandraServer ) ; TServerSocket tServerSocket = new TServerSocket ( new InetSocketAddress ( listenAddr , listenPort ) ) ; CassandraDaemon . logger . info ( String . format ( "Binding<seq2seq4repair_space>thrift<seq2seq4repair_space>service<seq2seq4repair_space>to<seq2seq4repair_space>%s:%s" , listenAddr , listenPort ) ) ; TProtocolFactory tProtocolFactory = new TBinaryProtocol . Factory ( ) ; TTransportFactory inTransportFactory ; TTransportFactory outTransportFactory ; if ( DatabaseDescriptor . isThriftFramed ( ) ) { inTransportFactory = new TFramedTransport . Factory ( ) ; outTransportFactory = new TFramedTransport . Factory ( ) ; } else { inTransportFactory = new TTransportFactory ( ) ; outTransportFactory = new TTransportFactory ( ) ; } CustomTThreadPoolServer . Options options = new CustomTThreadPoolServer . Options ( ) ; options . minWorkerThreads = 64 ; SynchronousQueue < Runnable > executorQueue = new SynchronousQueue < Runnable > ( ) ; ExecutorService executorService = new ThreadPoolExecutor ( options . minWorkerThreads , options . maxWorkerThreads , 60 , TimeUnit . SECONDS , executorQueue ) { @ Override protected void afterExecute ( Runnable r , Throwable t ) { super . afterExecute ( r , t ) ; cassandraServer . logout ( ) ; } } ; serverEngine = new CustomTThreadPoolServer ( new org . apache . thrift . TProcessorFactory ( processor ) , tServerSocket , inTransportFactory , outTransportFactory , tProtocolFactory , tProtocolFactory , options , executorService ) ; } public void init ( String [ ] args ) throws IOException , TTransportException { } public void start ( ) { } public void stop ( ) { } public void destroy ( ) { } public static void main ( String [ ] args ) { } }

Fix:
CassandraDaemon . logger . error ( ( "Uncaught<seq2seq4repair_space>exception<seq2seq4repair_space>in<seq2seq4repair_space>thread<seq2seq4repair_space>" + t ) , e ) ;