You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by mahesh bhasme <mb...@gmail.com> on 2016/02/15 13:32:20 UTC

error during HTTPS recoding

Hi,

I have own SSL certificate and imported it in chrome browser., however
while recording the website, getting error in browser. Could you please
help me to solve it?

java.net.SocketException: Connection reset
	at java.net.SocketInputStream.read(Unknown Source)
	at java.net.SocketInputStream.read(Unknown Source)
	at sun.security.ssl.InputRecord.readFully(Unknown Source)
	at sun.security.ssl.InputRecord.read(Unknown Source)
	at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
	at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
	at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
	at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
	at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:436)
	at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
	at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
	at org.apache.jmeter.protocol.http.sampler.MeasuringConnectionManager$MeasuredConnection.open(MeasuringConnectionManager.java:107)
	at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:643)
	at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)
	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
	at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:517)
	at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:331)
	at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
	at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1146)
	at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:240)


-- 
Thanks,
Mahesh

Re: error during HTTPS recoding

Posted by Philippe Mouawad <ph...@gmail.com>.
Hello,
Would it be possible to test nightly build with HC4 implementation and see
if issue is fixed :
https://builds.apache.org/job/JMeter-trunk/lastSuccessfulBuild/artifact/trunk/dist/

Installing JMeter runtime Download the _bin and _lib files
Unpack the archives into the same directory structure
The other archives are not needed to run JMeter.


Thanks

On Tue, Feb 16, 2016 at 5:34 AM, mahesh bhasme <mb...@gmail.com> wrote:

> Hi,
>  I solved it by changing HTTP Sampler to HttpClient3.1 in HTTP(s) Test
> Script Recorder. I think certificate was not causing any issue.
> [image: Inline image 1]
>
> On Mon, Feb 15, 2016 at 7:37 PM, sebb <se...@gmail.com> wrote:
>
>> On 15 February 2016 at 14:00, Niraj <ni...@gmail.com> wrote:
>> > Mahesh rav , which Jmeter version u have used? 2.13 will create it's own
>> > Certificate
>>
>> This is true.
>>
>> > which overwrite your own certificate.
>>
>> Not true. The certificate created by JMeter is for the proxy.
>> Early versions of JMeter used a predefined shared certificate; it now
>> uses a different certificate for each installation.
>>
>> This has nothing to do with the certificate used by the server you are
>> recording.
>>
>> > I am not sure with this
>> > error people can tell u much. But have you tried with 2.9 version?
>> > Hi,
>> >
>> > I have own SSL certificate and imported it in chrome browser., however
>> > while recording the website, getting error in browser. Could you please
>> > help me to solve it?
>> >
>> > java.net.SocketException: Connection reset
>> >         at java.net.SocketInputStream.read(Unknown Source)
>> >         at java.net.SocketInputStream.read(Unknown Source)
>> >         at sun.security.ssl.InputRecord.readFully(Unknown Source)
>> >         at sun.security.ssl.InputRecord.read(Unknown Source)
>> >         at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
>> >         at
>> sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown
>> > Source)
>> >         at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
>> >         at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
>> >         at
>> >
>> org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:436)
>> >         at
>> >
>> org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
>> >         at
>> >
>> org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
>> >         at
>> >
>> org.apache.jmeter.protocol.http.sampler.MeasuringConnectionManager$MeasuredConnection.open(MeasuringConnectionManager.java:107)
>> >         at
>> >
>> org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:643)
>> >         at
>> >
>> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)
>> >         at
>> >
>> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
>> >         at
>> >
>> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
>> >         at
>> >
>> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:517)
>> >         at
>> >
>> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:331)
>> >         at
>> >
>> org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
>> >         at
>> >
>> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1146)
>> >         at
>> org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:240)
>> >
>> >
>> > --
>> > Thanks,
>> > Mahesh
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>> For additional commands, e-mail: user-help@jmeter.apache.org
>>
>>
>
>
> --
> Thanks,
> MAhesh
>



-- 
Cordialement.
Philippe Mouawad.

Re: error during HTTPS recoding

Posted by mahesh bhasme <mb...@gmail.com>.
Hi,
 I solved it by changing HTTP Sampler to HttpClient3.1 in HTTP(s) Test
Script Recorder. I think certificate was not causing any issue.
[image: Inline image 1]

On Mon, Feb 15, 2016 at 7:37 PM, sebb <se...@gmail.com> wrote:

> On 15 February 2016 at 14:00, Niraj <ni...@gmail.com> wrote:
> > Mahesh rav , which Jmeter version u have used? 2.13 will create it's own
> > Certificate
>
> This is true.
>
> > which overwrite your own certificate.
>
> Not true. The certificate created by JMeter is for the proxy.
> Early versions of JMeter used a predefined shared certificate; it now
> uses a different certificate for each installation.
>
> This has nothing to do with the certificate used by the server you are
> recording.
>
> > I am not sure with this
> > error people can tell u much. But have you tried with 2.9 version?
> > Hi,
> >
> > I have own SSL certificate and imported it in chrome browser., however
> > while recording the website, getting error in browser. Could you please
> > help me to solve it?
> >
> > java.net.SocketException: Connection reset
> >         at java.net.SocketInputStream.read(Unknown Source)
> >         at java.net.SocketInputStream.read(Unknown Source)
> >         at sun.security.ssl.InputRecord.readFully(Unknown Source)
> >         at sun.security.ssl.InputRecord.read(Unknown Source)
> >         at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
> >         at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown
> > Source)
> >         at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
> >         at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
> >         at
> >
> org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:436)
> >         at
> >
> org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
> >         at
> >
> org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
> >         at
> >
> org.apache.jmeter.protocol.http.sampler.MeasuringConnectionManager$MeasuredConnection.open(MeasuringConnectionManager.java:107)
> >         at
> >
> org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:643)
> >         at
> >
> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)
> >         at
> >
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
> >         at
> >
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
> >         at
> >
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:517)
> >         at
> >
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:331)
> >         at
> >
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
> >         at
> >
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1146)
> >         at
> org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:240)
> >
> >
> > --
> > Thanks,
> > Mahesh
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>


-- 
Thanks,
MAhesh

Re: error during HTTPS recoding

Posted by sebb <se...@gmail.com>.
On 15 February 2016 at 14:00, Niraj <ni...@gmail.com> wrote:
> Mahesh rav , which Jmeter version u have used? 2.13 will create it's own
> Certificate

This is true.

> which overwrite your own certificate.

Not true. The certificate created by JMeter is for the proxy.
Early versions of JMeter used a predefined shared certificate; it now
uses a different certificate for each installation.

This has nothing to do with the certificate used by the server you are
recording.

> I am not sure with this
> error people can tell u much. But have you tried with 2.9 version?
> Hi,
>
> I have own SSL certificate and imported it in chrome browser., however
> while recording the website, getting error in browser. Could you please
> help me to solve it?
>
> java.net.SocketException: Connection reset
>         at java.net.SocketInputStream.read(Unknown Source)
>         at java.net.SocketInputStream.read(Unknown Source)
>         at sun.security.ssl.InputRecord.readFully(Unknown Source)
>         at sun.security.ssl.InputRecord.read(Unknown Source)
>         at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
>         at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown
> Source)
>         at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
>         at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
>         at
> org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:436)
>         at
> org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
>         at
> org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
>         at
> org.apache.jmeter.protocol.http.sampler.MeasuringConnectionManager$MeasuredConnection.open(MeasuringConnectionManager.java:107)
>         at
> org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:643)
>         at
> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)
>         at
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
>         at
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
>         at
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:517)
>         at
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:331)
>         at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
>         at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1146)
>         at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:240)
>
>
> --
> Thanks,
> Mahesh

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


Re: error during HTTPS recoding

Posted by Niraj <ni...@gmail.com>.
Mahesh rav , which Jmeter version u have used? 2.13 will create it's own
Certificate which overwrite your own certificate. I am not sure with this
error people can tell u much. But have you tried with 2.9 version?
Hi,

I have own SSL certificate and imported it in chrome browser., however
while recording the website, getting error in browser. Could you please
help me to solve it?

java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(Unknown Source)
        at java.net.SocketInputStream.read(Unknown Source)
        at sun.security.ssl.InputRecord.readFully(Unknown Source)
        at sun.security.ssl.InputRecord.read(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown
Source)
        at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
        at
org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:436)
        at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
        at
org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
        at
org.apache.jmeter.protocol.http.sampler.MeasuringConnectionManager$MeasuredConnection.open(MeasuringConnectionManager.java:107)
        at
org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:643)
        at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)
        at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
        at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
        at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:517)
        at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:331)
        at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
        at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1146)
        at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:240)


--
Thanks,
Mahesh