Buggy code:
public class Proxy extends Thread { private static final Logger log = LoggingManager . getLoggerForClass ( ) ; private static final byte [ ] CRLF_BYTES = new byte [ ] { 13 , 10 } ; private static final String CRLF_STRING = "\r\n" ; private static final String NEW_LINE = "\n" ; private static final String [ ] headersToRemove ; private static final String PROXY_HEADERS_REMOVE = "proxy.headers.remove" ; private static final String PROXY_HEADERS_REMOVE_DEFAULT = "If-Modified-Since,If-None-Match,Host" ; private static final String PROXY_HEADERS_REMOVE_SEPARATOR = "," ; private static final String KEYSTORE_TYPE = JMeterUtils . getPropDefault ( "proxy.cert.type" , "JKS" ) ; private static final String KEYMANAGERFACTORY = JMeterUtils . getPropDefault ( "proxy.cert.factory" , "SunX509" ) ; private static final String SSLCONTEXT_PROTOCOL = JMeterUtils . getPropDefault ( "proxy.ssl.protocol" , "SSLv3" ) ; private static final HashMap < String , SSLSocketFactory > hashHost = new HashMap < String , SSLSocketFactory > ( ) ; private static final String CERT_DIRECTORY = JMeterUtils . getPropDefault ( "proxy.cert.directory" , JMeterUtils . getJMeterBinDir ( ) ) ; private static final String CERT_FILE_DEFAULT = "proxyserver.jks" ; private static final String CERT_FILE = JMeterUtils . getPropDefault ( "proxy.cert.file" , Proxy . CERT_FILE_DEFAULT ) ; private static final String DEFAULT_PASSWORD = "password" ; private static final SamplerCreatorFactory factory = new SamplerCreatorFactory ( ) ; private OutputStream outStreamClient = null ; private Socket clientSocket = null ; private ProxyControl target ; private boolean captureHttpHeaders ; private Map < String , String > pageEncodings ; private Map < String , String > formEncodings ; private String port ; public Proxy ( ) { } void configure ( Socket _clientSocket , ProxyControl _target , Map < String , String > _pageEncodings , Map < String , String > _formEncodings ) { } @ Override public void run ( ) { } private SSLSocketFactory getSSLSocketFactory ( String host ) throws IOException { synchronized ( Proxy . hashHost ) { if ( Proxy . hashHost . containsKey ( host ) ) { Proxy . log . debug ( ( ( ( port ) + "Good,<seq2seq4repair_space>already<seq2seq4repair_space>in<seq2seq4repair_space>map,<seq2seq4repair_space>host=" ) + host ) ) ; return Proxy . hashHost . get ( host ) ; } InputStream in = getCertificate ( ) ; Exception except = null ; if ( in != null ) { try { KeyStore ks = KeyStore . getInstance ( Proxy . KEYSTORE_TYPE ) ; ks . load ( in , JMeterUtils . getPropDefault ( "proxy.cert.keystorepass" , Proxy . DEFAULT_PASSWORD ) . toCharArray ( ) ) ; KeyManagerFactory kmf = KeyManagerFactory . getInstance ( Proxy . KEYMANAGERFACTORY ) ; kmf . init ( ks , JMeterUtils . getPropDefault ( "proxy.cert.keypassword" , Proxy . DEFAULT_PASSWORD ) . toCharArray ( ) ) ; SSLContext sslcontext = SSLContext . getInstance ( Proxy . SSLCONTEXT_PROTOCOL ) ; sslcontext . init ( kmf . getKeyManagers ( ) , null , null ) ; SSLSocketFactory sslFactory = sslcontext . getSocketFactory ( ) ; Proxy . hashHost . put ( host , sslFactory ) ; <START_BUG> Proxy . log . info ( ( ( ( ( port ) + "KeyStore<seq2seq4repair_space>for<seq2seq4repair_space>SSL<seq2seq4repair_space>loaded<seq2seq4repair_space>OK<seq2seq4repair_space>and<seq2seq4repair_space>put<seq2seq4repair_space>host<seq2seq4repair_space>in<seq2seq4repair_space>map<seq2seq4repair_space>(localPort+" ) + host ) + ")" ) ) ; <END_BUG> return sslFactory ; } catch ( NoSuchAlgorithmException e ) { except = e ; } catch ( KeyManagementException e ) { except = e ; } catch ( KeyStoreException e ) { except = e ; } catch ( UnrecoverableKeyException e ) { except = e ; } catch ( CertificateException e ) { except = e ; } finally { if ( except != null ) { Proxy . log . error ( ( ( port ) + "Problem<seq2seq4repair_space>with<seq2seq4repair_space>SSL<seq2seq4repair_space>certificate" ) , except ) ; } IOUtils . closeQuietly ( in ) ; } } else { throw new IOException ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>read<seq2seq4repair_space>keystore" ) ; } return null ; } } private Socket startSSL ( Socket sock , String host ) throws IOException { } private InputStream getCertificate ( ) { } private static SampleResult generateErrorResult ( SampleResult result , Exception e ) { } private void writeToClient ( SampleResult res , OutputStream out ) throws IOException { } private String messageResponseHeaders ( SampleResult res ) { } private void writeErrorToClient ( String message ) { } private String addPageEncoding ( SampleResult result ) { } private void addFormEncodings ( SampleResult result , String pageEncoding ) { } private String getUrlWithoutQuery ( URL url ) { } }

Fix:
Proxy . log . info ( ( ( ( ( port ) + "KeyStore<seq2seq4repair_space>for<seq2seq4repair_space>SSL<seq2seq4repair_space>loaded<seq2seq4repair_space>OK<seq2seq4repair_space>and<seq2seq4repair_space>put<seq2seq4repair_space>host<seq2seq4repair_space>in<seq2seq4repair_space>map<seq2seq4repair_space>(" ) + host ) + ")" ) ) ;