PlainSocketImpl.connect() 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 java.net.PlainSocketImpl.socketConnect
(source)
at java.net.PlainSocketImpl.doConnect
at java.net.PlainSocketImpl.connectToAddress
at java.net.PlainSocketImpl.connect
3 frames hidden

Typical Exception Messages

  1. Connection refused: connect
  2. Connection refused
  3. Connection timed out: connect
  4. Connection timed out
  5. Operation timed out: connect
  6. Operation timed out
  7. Connection refused: no further information
  8. Network is unreachable
  9. Invalid argument
  10. connect: Address is invalid on local machine, or port is not valid on remote machine

Origin

PlainSocketImpl.connectToAddress() has thrown a ConnectException

java.net.ConnectException
2 frames hidden
java.net.PlainSocketImpl.connectToAddress
2864Web pages

Specific cases

External results for this pattern (2845)

  1. Sandrine Beauchevia Google Groups2 weeks ago
    Connection timed out: connect
    Show stack trace
  2. gaganvia Stack Overflow3 weeks ago
    Connection timed out: connect
    Show stack trace
  3. katrinvia Stack Overflow4 weeks ago
    Connection timed out: connect
    Show stack trace
  4. Connection refused. The same thing happens if I use my hostname. The odd thing is that if I hit the endpoint from SoapUI, the request works fine if use 127.0.0.1, my IP address or my hostname. Here's the exception I'm getting... java.net.ConnectException: Connection refused
    Show stack trace
  5. 807591via Oracle Community4 weeks ago
    Connection refused: connect
    Show stack trace
  6. anurag_vidyarthivia Oracle Community1 month ago
  7. skaryuvia Stack Overflow1 month ago
    Connection timed out: connect
    Show stack trace
  8. Alan Leevia Stack Overflow1 month ago
    Connection timed out: connect
    Show stack trace
  9. 747863via Oracle Community1 month ago
    Connection refused: connect
    Show stack trace