HELP! Getting "Exception java.lang.IllegalArgumentException: Header:Location Cannot contain CRLF Charcters" during Jmeter test

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

HELP! Getting "Exception java.lang.IllegalArgumentException: Header:Location Cannot contain CRLF Charcters" during Jmeter test

ohaya@yahoo.com.INVALID
Hi,
We have a Jmeter test plan where we use an OS Process Sampler to execute a Java class, then the Java class outputs a string, and then we use an HTTP Request to do a POST with the output from the Java class as the Body Data.
However when we do the POST, we are getting a 500 error, and we are seeing the following error in our server log:
Exception
java.lang.IllegalArgumentException: Header:Location Cannot contain CRLF Charcters
Is there some way that we can configure/control how the headers that Jmeter is sending are terminated?
Thanks,Jim

Reply | Threaded
Open this post in threaded view
|

SOLVED was Re: HELP! Getting "Exception java.lang.IllegalArgumentException: Header:Location Cannot contain CRLF Charcters" during Jmeter test

ohaya@yahoo.com.INVALID
 Hi,
I just wanted to let you all know that I got this working.  The error message was a bit of a "red herring".... the problem was that there was a CR/LF at the end of the BODY, not any of the HTTP headers.

Thanks,Jim

    On Tuesday, August 13, 2019, 2:32:37 PM UTC, [hidden email] <[hidden email]> wrote:  
 
 Hi,
We have a Jmeter test plan where we use an OS Process Sampler to execute a Java class, then the Java class outputs a string, and then we use an HTTP Request to do a POST with the output from the Java class as the Body Data.
However when we do the POST, we are getting a 500 error, and we are seeing the following error in our server log:
Exception
java.lang.IllegalArgumentException: Header:Location Cannot contain CRLF Charcters
Is there some way that we can configure/control how the headers that Jmeter is sending are terminated?
Thanks,Jim