You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2008/11/05 09:47:26 UTC
DO NOT REPLY [Bug 46148] New: HTTP sampler fails on SSL requests
when logging for jmeter.util is set to DEBUG
https://issues.apache.org/bugzilla/show_bug.cgi?id=46148
Summary: HTTP sampler fails on SSL requests when logging for
jmeter.util is set to DEBUG
Product: JMeter
Version: 2.3.2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: HTTP
AssignedTo: jmeter-dev@jakarta.apache.org
ReportedBy: haavard.wigtil@kantega.no
Created an attachment (id=22830)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=22830)
Simple test that gets an exception when log_level.jmeter.util is set to DEBUG
If I set "log_level.jmeter.util=DEBUG" in jmeter.properties, SSL requests in
HTTP Sampler fails with an exception. If log_level.jmeter.util is set to INFO
or not explicitly set, everything works as it should.
This is the stack trace I get as "Response data":
javax.net.ssl.SSLException: Received fatal alert: unexpected_message
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:463)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1021)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1007)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:290)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.net.ssl.SSLException: Received fatal alert: unexpected_message
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(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:203)
... 5 more
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 46148] HTTP sampler fails on SSL requests when
logging for jmeter.util is set to DEBUG
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46148
--- Comment #3 from Sebb <se...@apache.org> 2008-11-05 05:41:34 PST ---
The problem is the debug in HttpSSLProtocolSocketFactory; if you turn that off
using
log_level.jmeter.util.HttpSSLProtocolSocketFactory=INFO
then the test works OK.
There is a comment in the debug code that says:
/* Warning: the next line seems to cause the error
* javax.net.ssl.SSLException: Received fatal alert:
unexpected_message
* with certain sites
*/
SSLSession sslSession = sock.getSession();
Looks like that debug message should be removed.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 46148] HTTP sampler fails on SSL requests when
logging for jmeter.util is set to DEBUG
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46148
Håvard Wigtil <ha...@kantega.no> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #22832|application/octet-stream |text/plain
mime type| |
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 46148] HTTP sampler fails on SSL requests when
logging for jmeter.util is set to DEBUG
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46148
Håvard Wigtil <ha...@kantega.no> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #22831|application/octet-stream |text/plain
mime type| |
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 46148] HTTP sampler fails on SSL requests when
logging for jmeter.util is set to DEBUG
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46148
--- Comment #2 from Håvard Wigtil <ha...@kantega.no> 2008-11-05 00:48:45 PST ---
Created an attachment (id=22832)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=22832)
jmeter.properties
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 46148] HTTP sampler fails on SSL requests when
logging for jmeter.util is set to DEBUG
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46148
--- Comment #1 from Håvard Wigtil <ha...@kantega.no> 2008-11-05 00:48:25 PST ---
Created an attachment (id=22831)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=22831)
Log file from the test
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 46148] HTTP sampler fails on SSL requests when
logging for jmeter.util is set to DEBUG
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46148
Sebb <se...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Sebb <se...@apache.org> 2008-11-05 07:04:26 PST ---
The getSession() method may initiate the handshake, which is presumably what
causes the problem.
The offending code has been removed:
URL: http://svn.apache.org/viewvc?rev=711582&view=rev
Log:
Bug 46148 - HTTP sampler fails on SSL requests when logging for jmeter.util is
set to DEBUG
Remove the debug code, as it has side effects
Thanks for reporting the problem.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 46148] HTTP sampler fails on SSL requests when
logging for jmeter.util is set to DEBUG
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46148
Håvard Wigtil <ha...@kantega.no> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #22830|application/octet-stream |text/plain
mime type| |
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org