jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: getting SSL exception when sampling a second domain
Date Sun, 18 Feb 2007 18:27:01 GMT
The log file attached to the Bugzilla issue shows that there was a
standard (Java) HTTP sampler as well as an HttpClient sampler. I have
seen this cause problems in 2.2 - mixing HTTPS samplers did not work.

As far as I can tell from my testing, this is fixed in the current
nightly build. It would be very useful if you could try the current
build and update the Bugzilla issue accordingly.

Thanks.
On 15/02/07, Matthew Coventon <mattcoventon@iseinc.biz> wrote:
> I resolved this issue in an unexpected way.  Previously, while using the
> HTTP Proxy, I had modified my jmeter.properties to use
> jmeter.httpsampler=HTTPSampler2 instead of HTTPSampler.  In troubleshooting
> this issue I decided to change it back to jmeter.httpsampler=HTTPSampler.
> When I did that, it worked!  For some reason I thought this property only
> specified what HTTP Sampler should be used as the default while recording
> ... but there must be more to it.  Any thoughts on why this fixed my issue?
> How should I update the bugzilla issue?
>
> Thanks,
>
> Matt C.
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Wednesday, February 14, 2007 9:44 AM
> To: JMeter Users List
> Subject: Re: getting SSL exception when sampling a second domain
>
> Does not make sense that it should fail this way.
>
> Please can you create a Bugzilla issue, and then attach the following:
>
> jmeter.log
>
> JMX file used to run the test.
>
> If there are any private URLs/passwords etc in the log or JMX, please
> replace them with something else BEFORE upload!
>
>
> On 14/02/07, Matthew Coventon <mattcoventon@iseinc.biz> wrote:
> > Hi ... I am developing tests in JMeter against a site that uses https.
> > Everything has been working great so far.
> >
> > But, I have a certain page for which I always want to retrieve one
> > particular resource.  It is a javascript resource that renders a map on
> the
> > page.  The javascript is downloaded via https from the map provider's
> site.
> > When I set "Retrieve All Embedded Resources..." the javascript downloads
> > perfectly.
> >
> > The issue is that I don't want to download all the resources from the page
> > because many of them are static.  So I created an HTTP Sampler that uses
> > __regexFunction to populate the path of the javascript file.  But when I
> run
> > this with a View Results Tree listener I get the following exception in
> the
> > response data:
> >
> > java.net.SocketException: Default SSL context init failed: null
> >        at javax.net.ssl.DefaultSSLSocketFactory.createSocket(Unknown
> > Source)
> >        at
> >
> org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket
> > (SSLProtocolSocketFactory.java:81)
> >        at
> >
> org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket
> > (SSLProtocolSocketFactory.java:126)
> >        at
> > org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
> >        at
> >
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethod
> > Director.java:386)
> >        at
> >
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDir
> > ector.java:170)
> >        at
> >
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
> >        at
> >
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
> >        at
> >
> org.apache.jmeter.protocol.http.sampler.HTTPSampler2.sample(HTTPSampler2.jav
> > a:527)
> >        at
> >
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBa
> > se.java:658)
> >        at
> >
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBa
> > se.java:647)
> >        at
> org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)
> >        at java.lang.Thread.run(Unknown Source)
> >
> > Why does it download properly with "Retrieve All Embedded Resources ...",
> > but not as a separate sample?  I confirmed that I can take the link used
> in
> > the failing sampler, paste in a browser, and download the javascript.  So
> > __regexFunction is extracting the link correctly.  Any thoughts?
> >
> > Thanks,
> >
> > matt.
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>
>
>
> ---------------------------------------------------------------------
> 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