Buggy code:
public class DefaultSamplerCreator extends AbstractSamplerCreator { private static final Logger log = LoggingManager . getLoggerForClass ( ) ; public DefaultSamplerCreator ( ) { } public String [ ] getManagedContentTypes ( ) { } public HTTPSamplerBase createSampler ( HttpRequestHdr request , Map < String , String > pageEncodings , Map < String , String > formEncodings ) { } public final void populateSampler ( HTTPSamplerBase sampler , HttpRequestHdr request , Map < String , String > pageEncodings , Map < String , String > formEncodings ) throws Exception { } protected void computeFromHeader ( HTTPSamplerBase sampler , HttpRequestHdr request , Map < String , String > pageEncodings , Map < String , String > formEncodings ) throws Exception { } protected void computeFromPostBody ( HTTPSamplerBase sampler , HttpRequestHdr request ) throws Exception { if ( ( ! ( CONNECT . equals ( request . getMethod ( ) ) ) ) && ( ! ( GET . equals ( request . getMethod ( ) ) ) ) ) { final String contentType = request . getContentType ( ) ; MultipartUrlConfig urlConfig = request . getMultipartConfig ( contentType ) ; String contentEncoding = sampler . getContentEncoding ( ) ; String postData = null ; if ( DefaultSamplerCreator . log . isDebugEnabled ( ) ) { if ( ! ( StringUtils . isEmpty ( contentEncoding ) ) ) { DefaultSamplerCreator . log . debug ( ( ( "Using<seq2seq4repair_space>encoding<seq2seq4repair_space>" + contentEncoding ) + "<seq2seq4repair_space>for<seq2seq4repair_space>request<seq2seq4repair_space>body" ) ) ; } else { DefaultSamplerCreator . log . debug ( "No<seq2seq4repair_space>encoding<seq2seq4repair_space>found,<seq2seq4repair_space>using<seq2seq4repair_space>JRE<seq2seq4repair_space>default<seq2seq4repair_space>encoding<seq2seq4repair_space>for<seq2seq4repair_space>request<seq2seq4repair_space>body" ) ; } } if ( ! ( StringUtils . isEmpty ( contentEncoding ) ) ) { postData = new String ( request . getRawPostData ( ) , contentEncoding ) ; } else { postData = new String ( request . getRawPostData ( ) , PostWriter . ENCODING ) ; } if ( urlConfig != null ) { urlConfig . parseArguments ( postData ) ; sampler . setDoMultipartPost ( true ) ; request . getHeaderManager ( ) . removeHeaderNamed ( CONTENT_TYPE ) ; request . getHeaderManager ( ) . removeHeaderNamed ( CONTENT_LENGTH ) ; sampler . setArguments ( urlConfig . getArguments ( ) ) ; sampler . setHTTPFiles ( urlConfig . getHTTPFileArgs ( ) . asArray ( ) ) ; } else <START_BUG> if ( ( postData . trim ( ) . startsWith ( "<?" ) ) || ( "PUT" . equals ( sampler . getMethod ( ) ) ) ) { <END_BUG> sampler . addNonEncodedArgument ( "" , postData , "" ) ; } else if ( ( contentType == null ) || ( contentType . startsWith ( APPLICATION_X_WWW_FORM_URLENCODED ) ) ) { sampler . parseArguments ( postData . trim ( ) , contentEncoding ) ; } else if ( ( postData . length ( ) ) > 0 ) { if ( isBinaryContent ( contentType ) ) { try { File tempDir = new File ( getBinaryDirectory ( ) ) ; File out = File . createTempFile ( request . getMethod ( ) , getBinaryFileSuffix ( ) , tempDir ) ; FileUtils . writeByteArrayToFile ( out , request . getRawPostData ( ) ) ; HTTPFileArg [ ] files = new HTTPFileArg [ ] { new HTTPFileArg ( out . getPath ( ) , "" , contentType ) } ; sampler . setHTTPFiles ( files ) ; } catch ( IOException e ) { DefaultSamplerCreator . log . warn ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>create<seq2seq4repair_space>binary<seq2seq4repair_space>file:<seq2seq4repair_space>" + e ) ) ; } } else { sampler . addNonEncodedArgument ( "" , postData , "" ) ; } } } } protected void computeSamplerName ( HTTPSamplerBase sampler , HttpRequestHdr request ) { } protected void computePath ( HTTPSamplerBase sampler , HttpRequestHdr request ) { } protected void computeContentEncoding ( HTTPSamplerBase sampler , HttpRequestHdr request , Map < String , String > pageEncodings , Map < String , String > formEncodings ) throws MalformedURLException { } protected String computeContentEncoding ( HttpRequestHdr request , Map < String , String > pageEncodings , Map < String , String > formEncodings , String urlWithoutQuery ) { } protected void computeProtocol ( HTTPSamplerBase sampler , HttpRequestHdr request ) { } protected void computePort ( HTTPSamplerBase sampler , HttpRequestHdr request ) { } protected void computeMethod ( HTTPSamplerBase sampler , HttpRequestHdr request ) { } protected void computeDomain ( HTTPSamplerBase sampler , HttpRequestHdr request ) { } }

Fix:
if ( ( postData . trim ( ) . startsWith ( "<?" ) ) || ( PUT . equals ( sampler . getMethod ( ) ) ) ) {