https://issues.apache.org/bugzilla/show_bug.cgi?id=46438

           Summary: JMeter Proxy: Better error msg
           Product: JMeter
           Version: Nightly (Please specify date)
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Main
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: wern...@ethz.ch
                CC: hau...@acm.org


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.


-- 
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-unsubscr...@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-h...@jakarta.apache.org

Reply via email to