HttpURLConnection.getInputStream() has thrown a ConnectException

java.net.ConnectException
Javadoc
Signals that an error occurred while attempting to connect a socket to a remote address and port. Typically, the connection was refused remotely (e.g., no process is listening on the remote address/port). @since JDK1.1
at weblogic.net.http.HttpClient.openServer
at weblogic.net.http.HttpClient.openServer
at weblogic.net.http.HttpClient.<init>
at weblogic.net.http.HttpClient.New
at weblogic.net.http.HttpURLConnection.connect
at weblogic.net.http.HttpURLConnection.getInputStream
5 frames hidden

Typical Exception Messages

  1. Tried all: '1' addresses, but could not connect over HTTP to server: 'www.bea.com', port: '80'
  2. Tried all: '1' addresses, but could not connect over HTTP to server: 'www.bea.com', port: '80'
  3. Tried all: '1' addresses, but could not connect over HTTP to server: 'jakarta.apache.org', port: '80'
  4. Tried all: '1' addresses, but could not connect over HTTP to server: 'www.bea.com', port: '80'
  5. Tried all: '1' addresses, but could not connect over HTTP to server: 'localhost', port: '7001'
  6. Tried all: '1' addresses, but could not connect over HTTP to server: 'localhost', port: '7001'
  7. Tried all: '1' addresses, but could not connect over HTTP to server: 'java.sun.com', port: '80'
  8. Tried all: '1' addresses, but could not connect over HTTP to server: 'www.bea.com', port: '80'
  9. Tried all: '1' addresses, but could not connect over HTTP to server: 'localhost', port: '9001'
  10. Tried all: '1' addresses, but could not connect over HTTP to server: 'finance.yahoo.com', port: '80'

Origin

HttpURLConnection.connect() has thrown a ConnectException

java.net.ConnectException
4 frames hidden
weblogic.net.http.HttpURLConnection.connect
46Web pages

Similar

Specific cases

Solution

rafael, 1 year ago

Change the listen address attribute of the admin server to it's machine name or IP address or to localhost. Also, check if both managed server and admin server are on the same service pack levels.

External results for this pattern (26)

  1. 3004via Oracle Community5 months ago
    Tried all: '1' addresses, but could not connect over HTTP to server: 'finance.yahoo.com', port: '80'
    Show stack trace
  2. Unknown authorvia itpub.net5 months ago
    Tried all: '1' addresses, but could not connect over HTTP to server: 'localhost', port: '7001'
    Show stack trace
  3. Unknown authorvia theserverside.com5 months ago
    Tried all: '1' addresses, but could not connect over HTTP to server: 'localhost', port: '7001'
    Show stack trace
  4. 666705via Oracle Community5 months ago
    Tried all: '1' addresses, but could not connect over HTTP to server: 'jakarta.apache.org', port: '80'
    Show stack trace
  5. Billvia Google Groups1 year ago
    Tried all: '1' addresses, but could not connect over HTTP to server: 'www.bea.com', port: '80'
    Show stack trace
  6. 3004via Oracle Community1 year ago
    Tried all: '1' addresses, but could not connect over HTTP to server: 'localhost', port: '80'
    Show stack trace
  7. 3004via Oracle Community1 year ago
    Tried all: '1' addresses, but could not connect over HTTP to server: 'localhost', port: '7001'
    Show stack trace
  8. 3004via Oracle Community1 year ago
    Tried all: '1' addresses, but could not connect over HTTP to server: 'www.bea.com', port: '80'
    Show stack trace
  9. 3004via Oracle Community1 year ago
    Tried all: '1' addresses, but could not connect over HTTP to server: 'www.bea.com', port: '80'
    Show stack trace
  10. 3004via Oracle Community1 year ago
    Tried all: '1' addresses, but could not connect over HTTP to server: 'localhost', port: '7001'
    Show stack trace