Bug 46438 - JMeter Proxy: Better error msg
Summary: JMeter Proxy: Better error msg
Status: RESOLVED WONTFIX
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: Nightly (Please specify date)
Hardware: PC Linux
: P2 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-22 08:40 UTC by Rose-Line Werner
Modified: 2009-01-25 02:39 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rose-Line Werner 2008-12-22 08:40:58 UTC
Hi,

When I start the JMeter Http Proxy Server controller (localhost:9090) and call
# lynx http://localhost:9090 -verbose

I get as an answer:

   java.net.UnknownHostException: / at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177) at
   java.net.Socket.connect(Socket.java:520) at java.net.Socket.connect(Socket.java:470) at
   sun.net.NetworkClient.doConnect(NetworkClient.java:157) at sun.net.www.http.HttpClient.openServer(HttpClient.java:388) at
   sun.net.www.http.HttpClient.openServer(HttpClient.java:523) at sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:278)
   at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:335) at
   sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:176)
   at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:765) at
   sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:162) at
   sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:133) at
   org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:433) at
   org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1016) at
   org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:195)



Wouldn't it be better to display a verbose error message instead of the stacktrace?

Possible error message:

"You are talking with a proxy. Please configure your browser accordingly and pass the wished url."

Thanks for your great work.
Comment 1 Sebb 2009-01-24 16:17:34 UTC
It looks to be quite difficult to implement this, so unless someone provides a patch it won't be implemented.
Comment 2 Ralf Hauser 2009-01-25 02:39:55 UTC
see also bug 46436
Comment 3 The ASF infrastructure team 2022-09-24 20:37:42 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2188