org.apache.http.conn.HttpHostConnectException: Connect to www.google-analytics.com:80 [www.google-analytics.com/127.0.0.1] failed: Connection refused: connect

htmlunit | oboguev | 1 year ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd . Or join the community to write better ones.
  1. 0

    Exception in corejs

    htmlunit | 1 year ago | oboguev
    org.apache.http.conn.HttpHostConnectException: Connect to www.google-analytics.com:80 [www.google-analytics.com/127.0.0.1] failed: Connection refused: connect
  2. 0

    HtmlUnit giving javascript.void(0) as ouput

    Stack Overflow | 1 year ago | NikhilEkbote
    org.apache.http.conn.HttpHostConnectException: Connect to localhost.wwbizsrv.alibaba.com:4012 [localhost.wwbizsrv.alibaba.com/127.0.0.1] failed: Connection refused: connect
  3. 0
    samebug tip
    start Appium server
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    You should access rundeck using that 'grails.serverURL' from the config file 'rundeck-config.properties'.
    via GitHub by gschueler
  6. 0
    samebug tip
    Create the HttpClient with setting the credentials in the builder

  1. raytest 3 times, last 3 weeks ago
  2. poroszd 3 times, last 3 weeks ago
  3. Dunmer 6 times, last 4 weeks ago
  4. Pilleo 2 times, last 1 month ago
  5. QrCeric 3 times, last 2 months ago
59 more registered users
36 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.ConnectException

    Connection refused: connect

    at java.net.DualStackPlainSocketImpl.waitForConnect()
  2. Java RT
    Socket.connect
    1. java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
    2. java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
    3. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    4. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    5. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    6. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    7. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    8. java.net.Socket.connect(Socket.java:579)
    8 frames
  3. Apache HttpClient
    CloseableHttpClient.execute
    1. org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:74)
    2. org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134)
    3. org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
    4. org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
    5. org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
    6. org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
    7. org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
    8. org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
    9. org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
    10. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:71)
    10 frames
  4. HtmlUnit
    JavaScriptEngine$HtmlUnitContextAction.run
    1. com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:177)
    2. com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1324)
    3. com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1241)
    4. com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:1031)
    5. com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:974)
    6. com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:399)
    7. com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:277)
    8. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:1002)
    9. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$500(JavaScriptEngine.java:103)
    10. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:949)
    10 frames
  5. HtmlUnit Core JS
    ContextFactory.call
    1. net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:628)
    2. net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:513)
    2 frames
  6. HtmlUnit
    HTMLParser$HtmlUnitDOMBuilder.endElement
    1. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:836)
    2. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:812)
    3. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:800)
    4. com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:910)
    5. com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:354)
    6. com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:415)
    7. com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:277)
    8. com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:293)
    9. com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:799)
    9 frames
  7. Xerces2-j
    AbstractSAXParser.endElement
    1. org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    1 frame
  8. HtmlUnit
    HTMLParser$HtmlUnitDOMBuilder.endElement
    1. com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:756)
    1 frame
  9. Maven
    HTMLConfiguration.parse
    1. org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1170)
    2. org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1072)
    3. org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206)
    4. org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:330)
    5. org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3126)
    6. org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2093)
    7. org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:920)
    8. org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499)
    9. org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452)
    9 frames
  10. Xerces2-j
    XMLParser.parse
    1. org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    1 frame
  11. HtmlUnit
    WebClient.getPage
    1. com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:1039)
    2. com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:252)
    3. com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:198)
    4. com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:271)
    5. com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:159)
    6. com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:478)
    7. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:352)
    8. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:417)
    9. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:402)
    9 frames
  12. my.LJExport
    Main.main
    1. my.LJExport.Test.testHtmlUnit(Test.java:17)
    2. my.LJExport.Main.main(Main.java:54)
    2 frames