Buggy code:
public class HC3CookieHandler implements CookieHandler { private static final Logger log = LoggingManager . getLoggerForClass ( ) ; private transient CookieSpec cookieSpec ; public HC3CookieHandler ( String policy ) { } private Cookie makeCookie ( Cookie jmc ) { } Cookie [ ] getCookiesForUrl ( CollectionProperty cookiesCP , URL url , boolean allowVariableCookie ) { } public String getCookieHeaderForURL ( CollectionProperty cookiesCP , URL url , boolean allowVariableCookie ) { } public void addCookieFromHeader ( CookieManager cookieManager , boolean checkCookies , String cookieHeader , URL url ) { boolean debugEnabled = HC3CookieHandler . log . isDebugEnabled ( ) ; if ( debugEnabled ) { HC3CookieHandler . log . debug ( ( ( ( "Received<seq2seq4repair_space>Cookie:<seq2seq4repair_space>" + cookieHeader ) + "<seq2seq4repair_space>From:<seq2seq4repair_space>" ) + ( url . toExternalForm ( ) ) ) ) ; } String protocol = url . getProtocol ( ) ; String host = url . getHost ( ) ; int port = HTTPSamplerBase . getDefaultPort ( protocol , url . getPort ( ) ) ; String path = url . getPath ( ) ; boolean isSecure = HTTPSamplerBase . isSecure ( protocol ) ; org . apache . commons . httpclient [ ] cookies = null ; try { cookies = cookieSpec . parse ( host , port , path , isSecure , cookieHeader ) ; } catch ( MalformedCookieException e ) { HC3CookieHandler . log . warn ( ( cookieHeader + ( e . getLocalizedMessage ( ) ) ) ) ; } catch ( IllegalArgumentException e ) { HC3CookieHandler . log . warn ( ( cookieHeader + ( e . getLocalizedMessage ( ) ) ) ) ; } if ( cookies == null ) { return ; } for ( Cookie cookie : cookies ) { try { if ( checkCookies ) { cookieSpec . validate ( host , port , path , isSecure , cookie ) ; } Date expiryDate = cookie . getExpiryDate ( ) ; long exp = 0 ; if ( expiryDate != null ) { exp = expiryDate . getTime ( ) ; } Cookie newCookie = new Cookie ( cookie . getName ( ) , cookie . getValue ( ) , cookie . getDomain ( ) , cookie . getPath ( ) , cookie . getSecure ( ) , ( exp // 1000 ) , cookie . isPathAttributeSpecified ( ) , cookie . isDomainAttributeSpecified ( ) ) ; if ( ( exp == 0 ) || ( exp >= ( System . currentTimeMillis ( ) ) ) ) { newCookie . setVersion ( cookie . getVersion ( ) ) ; cookieManager . add ( newCookie ) ; } else { cookieManager . removeMatchingCookies ( newCookie ) ; if ( debugEnabled ) { HC3CookieHandler . log . debug ( ( "Dropping<seq2seq4repair_space>expired<seq2seq4repair_space>Cookie:<seq2seq4repair_space>" + ( newCookie . toString ( ) ) ) ) ; } } } catch ( MalformedCookieException e ) { <START_BUG> HC3CookieHandler . log . debug ( ( ( ( ( ( ( "Not<seq2seq4repair_space>storing<seq2seq4repair_space>invalid<seq2seq4repair_space>cookie:<seq2seq4repair_space><" + cookieHeader ) + "><seq2seq4repair_space>for<seq2seq4repair_space>URL<seq2seq4repair_space>" ) + url ) + "<seq2seq4repair_space>(" ) + ( e . getLocalizedMessage ( ) ) ) + ")" ) ) ; <END_BUG> } catch ( IllegalArgumentException e ) { HC3CookieHandler . log . warn ( ( cookieHeader + ( e . getLocalizedMessage ( ) ) ) ) ; } } } }

Fix:
HC3CookieHandler . log . warn ( ( ( ( ( ( ( "Not<seq2seq4repair_space>storing<seq2seq4repair_space>invalid<seq2seq4repair_space>cookie:<seq2seq4repair_space><" + cookieHeader ) + "><seq2seq4repair_space>for<seq2seq4repair_space>URL<seq2seq4repair_space>" ) + url ) + "<seq2seq4repair_space>(" ) + ( e . getLocalizedMessage ( ) ) ) + ")" ) ) ;