jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: Bad Record MAC during testrun
Date Sat, 31 Jan 2009 11:46:37 GMT
Googling suggests that it may be caused by an incompatible version of
TLS - or at least failing to agree on the version correctly.

Perhaps the server has been updated recently? Did you change JVM?

Suggested solution seems to be to fix the TLS version to avoid
negotiation breakdown.

This can be done by specifying the following JMeter property:

https.socket.protocols=SSLv2Hello SSLv3 TLSv1
(for example)

The value is a space-separated list of protocols.

If you use an invalid protocol name, JMeter will log a warning showing
which protocols are available - which is how I got the above list.

Try setting it to SSLv3 initially and see if that helps.

On 29/01/2009, André Mud <andre.mud@testdynamics.nl> wrote:
>
>  I'm testing an application with Jmeter. The application is in HTTPS.
>  The scripts work fine. However suddenly I get the following error:
>
>  Javax.net.ssl.SSLException: bad record MAC
>     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
>     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
>  Source)
>     at java.lang.reflect.Constructor.newInstance(Unknown Source)
>     at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at
>  sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown
>  Source)
>     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
>  Source)
>     at java.net.HttpURLConnection.getResponseCode(Unknown Source)
>     at
>  sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown
>  Source)
>     at
>  org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTTPSampler.java:233)
>     at
>  org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:470)
>     at
>  org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:863)
>     at
>  org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:849)
>     at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:302)
>     at java.lang.Thread.run(Unknown Source)
>  Caused by: javax.net.ssl.SSLException: bad record MAC
>     at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
>     at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)
>     at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)
>     at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
>     at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(Unknown
>  Source)
>     at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source)
>     at java.io.BufferedInputStream.fill(Unknown Source)
>     at java.io.BufferedInputStream.read1(Unknown Source)
>     at java.io.BufferedInputStream.read(Unknown Source)
>     at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
>     at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
>     at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
>     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
>  Source)
>     at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown
>  Source)
>     at java.net.URLConnection.getHeaderFieldInt(Unknown Source)
>     at java.net.URLConnection.getContentLength(Unknown Source)
>     at
>  sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentLength(Unknown
>  Source)
>     at
>  org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTTPSampler.java:204)
>     ... 5 more
>
>  I can't get the script working anymore. Through iexplorer things are working
>  fine. But through jmeter things are going wrong. By my knowledge nothing has
>  changed on the client.
>
>  Help will be appriciated.
>
>  Andre Mud
>  Performance Test Specialist
>
> --
>  View this message in context: http://www.nabble.com/Bad-Record-MAC-during-testrun-tp21734636p21734636.html
>  Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message