Created
June 5, 2025 09:54
-
-
Save polarnik/16043312d9a4d62fa11fa81f3f7e6bcc to your computer and use it in GitHub Desktop.
Apache JMeter HTTPS connection error because the Port Number was incorrect. I used 403 instead of 443
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| org.apache.http.conn.HttpHostConnectException: Connect to localhost:403 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused | |
| at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:156) | |
| at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl$JMeterDefaultHttpClientConnectionOperator.connect(HTTPHC4Impl.java:409) | |
| at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376) | |
| at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393) | |
| at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) | |
| at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186) | |
| at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) | |
| at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) | |
| at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) | |
| at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) | |
| at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:940) | |
| at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:651) | |
| at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:66) | |
| at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1311) | |
| at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1300) | |
| at org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:651) | |
| at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:570) | |
| at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:501) | |
| at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:268) | |
| at java.base/java.lang.Thread.run(Thread.java:1447) | |
| Caused by: java.net.ConnectException: Connection refused | |
| at java.base/sun.nio.ch.Net.connect0(Native Method) | |
| at java.base/sun.nio.ch.Net.connect(Net.java:535) | |
| at java.base/sun.nio.ch.Net.connect(Net.java:524) | |
| at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:574) | |
| at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:282) | |
| at java.base/java.net.Socket.connect(Socket.java:665) | |
| at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:368) | |
| at org.apache.jmeter.protocol.http.sampler.hc.LazyLayeredConnectionSocketFactory.connectSocket(LazyLayeredConnectionSocketFactory.java:87) | |
| at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142) | |
| ... 19 more |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| java.net.ConnectException: Connection refused | |
| at java.base/sun.nio.ch.Net.connect0(Native Method) | |
| at java.base/sun.nio.ch.Net.connect(Net.java:535) | |
| at java.base/sun.nio.ch.Net.connect(Net.java:524) | |
| at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:574) | |
| at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:282) | |
| at java.base/java.net.Socket.connect(Socket.java:665) | |
| at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:304) | |
| at java.base/sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:181) | |
| at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:166) | |
| at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:516) | |
| at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:604) | |
| at java.base/sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:205) | |
| at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:287) | |
| at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:193) | |
| at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:962) | |
| at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:898) | |
| at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:179) | |
| at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:141) | |
| at org.apache.jmeter.protocol.http.sampler.HTTPJavaImpl.sample(HTTPJavaImpl.java:536) | |
| at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:66) | |
| at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1311) | |
| at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1300) | |
| at org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:651) | |
| at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:570) | |
| at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:501) | |
| at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:268) | |
| at java.base/java.lang.Thread.run(Thread.java:1447) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment