Buggy code:
Thread tnssl = new Thread ( ) { public void run ( ) { try { ServerSocket server = new ServerSocket ( bindport , 1000 , InetAddress . getByName ( bindip ) ) ; JavaWebServer . nsslr = true ; JavaWebServer . ap = true ; while ( ! ( server . isClosed ( ) ) ) { Socket s = server . accept ( ) ; if ( JavaWebServer . bannedIPs . contains ( s . getInetAddress ( ) . getHostAddress ( ) ) ) { s . close ( ) ; continue ; } s . setSoTimeout ( 1000 ) ; DataOutputStream out = new DataOutputStream ( s . getOutputStream ( ) ) ; out . flush ( ) ; DataInputStream in = new DataInputStream ( s . getInputStream ( ) ) ; Connection c = new Connection ( s , in , out , false ) ; c . handleConnection ( ) ; JavaWebServer . runningThreads . add ( c ) ; } Logger . log ( ( ( ( "Server<seq2seq4repair_space>Closed<seq2seq4repair_space>on<seq2seq4repair_space>" + bindip ) + ":" ) + bindport ) ) ; } catch ( Exception e ) { Logger . logError ( e ) ; JavaWebServer . ap = true ; } JavaWebServer . nsslr = false ; } } ; tnssl . start ( ) ; final HashMap < String , Object > ssl = ( ( HashMap < String , Object > ) ( JavaWebServer . mainConfig . get ( "ssl" ) ) ) ; if ( ( ( String ) ( ssl . get ( "enabled" ) ) ) . equals ( "true" ) ) { Thread tssl = new Thread ( ) { public void run ( ) { try { KeyStore ks = KeyStore . getInstance ( "JKS" ) ; InputStream ksIs = new FileInputStream ( JavaWebServer . fileManager . getSSLKeystore ( ) ) ; try { ks . load ( ksIs , ssl . get ( "keystorePassword" ) . toString ( ) . toCharArray ( ) ) ; } finally { if ( ksIs != null ) { ksIs . close ( ) ; } } KeyManagerFactory kmf = KeyManagerFactory . getInstance ( KeyManagerFactory . getDefaultAlgorithm ( ) ) ; kmf . init ( ks , ssl . get ( "keyPassword" ) . toString ( ) . toCharArray ( ) ) ; TrustManager [ ] trustAllCerts = new TrustManager [ ] { new X509TrustManager ( ) { public void checkClientTrusted ( X509Certificate [ ] certs , String authType ) { } public void checkServerTrusted ( X509Certificate [ ] certs , String authType ) { } public X509Certificate [ ] getAcceptedIssuers ( ) { return null ; } } } ; SSLContext sc = null ; String [ ] possibleProtocols = new String [ ] { "TLSv1.2" , "TLSv1.1" , "TLSv1" , "TLSv1.0" } ; String fp = "" ; for ( String protocol : possibleProtocols ) { try { sc = SSLContext . getInstance ( protocol ) ; fp = protocol ; } catch ( NoSuchAlgorithmException e ) { continue ; } } if ( sc == null ) { Logger . log ( "No<seq2seq4repair_space>suitable<seq2seq4repair_space>TLS<seq2seq4repair_space>protocols<seq2seq4repair_space>found,<seq2seq4repair_space>please<seq2seq4repair_space>upgrade<seq2seq4repair_space>Java!<seq2seq4repair_space>SSL<seq2seq4repair_space>disabled." ) ; return ; } sc . init ( kmf . getKeyManagers ( ) , trustAllCerts , new SecureRandom ( ) ) ; int sslport = Integer . parseInt ( ( ( String ) ( ssl . get ( "bindport" ) ) ) ) ; Logger . log ( ( "Starting<seq2seq4repair_space>SSLServer<seq2seq4repair_space>on<seq2seq4repair_space>" + sslport ) ) ; SSLServerSocket sslserver = ( ( SSLServerSocket ) ( sc . getServerSocketFactory ( ) . createServerSocket ( sslport , 1000 , InetAddress . getByName ( bindip ) ) ) ) ; sslserver . setEnabledProtocols ( new String [ ] { fp } ) ; JavaWebServer . sslr = true ; JavaWebServer . ap = true ; while ( ! ( sslserver . isClosed ( ) ) ) { Socket s = sslserver . accept ( ) ; DataOutputStream out = new DataOutputStream ( s . getOutputStream ( ) ) ; out . flush ( ) ; DataInputStream in = new DataInputStream ( s . getInputStream ( ) ) ; Connection c = new Connection ( s , in , out , false ) ; c . handleConnection ( ) ; JavaWebServer . runningThreads . add ( c ) ; } Logger . log ( ( ( ( "Server<seq2seq4repair_space>Closed<seq2seq4repair_space>on<seq2seq4repair_space>" + bindip ) + ":" ) + sslport ) ) ; } catch ( Exception e ) { Logger . logError ( e ) ; JavaWebServer . ap = true ; } JavaWebServer . sslr = false ; } } ; tssl . start ( ) ; } } catch ( Exception e ) { Logger . logError ( e ) ; JavaWebServer . ap = true ; } while ( ! ( JavaWebServer . ap ) ) { try { Thread . sleep ( 100L ) ; } catch ( InterruptedException e ) { Logger . logError ( e ) ; } } boolean read = true ; Scanner scan = new Scanner ( System . in ) ; while ( ( JavaWebServer . sslr ) || ( JavaWebServer . nsslr ) ) { if ( read ) { try { String command = scan . nextLine ( ) ; <START_BUG> CommandProcessor . process ( command , INSTANCE , scan , false ) ; <END_BUG> } catch ( NoSuchElementException fe ) { read = false ; continue ; } catch ( Exception e ) { Logger . logError ( e ) ; } } else { try { Thread . sleep ( 100L ) ; } catch ( InterruptedException e ) { Logger . logError ( e ) ; } } } JavaWebServer . patchBus . preExit ( ) ; if ( ( JavaWebServer . mainConfig ) != null ) { JavaWebServer . mainConfig . save ( ) ; } System . exit ( 0 ) ; } }

Fix:
CommandProcessor . process ( command , System . out , scan , false ) ;