com.sun.mail.util.MailConnectException: Couldn’t connect to host, port: host, 25; timeout -1; nested exception is: java.net.UnknownHostException: host

howtodoinjava.com | 2 months ago
  1. 0

    Java Send Email Example with Gmail SMTP Server - HowToDoInJava

    howtodoinjava.com | 2 months ago
    com.sun.mail.util.MailConnectException: Couldn’t connect to host, port: host, 25; timeout -1; nested exception is: java.net.UnknownHostException: host
  2. 0

    How to send email in java using gmail smtp server - HowToDoInJava

    howtodoinjava.com | 11 months ago
    java.net.UnknownHostException: host
  3. 0

    Unknown Host Exception while authentciating to JIRA server

    Stack Overflow | 2 days ago | Shivam Jari
    com.sun.jersey.api.client.ClientHandlerException: java.net.UnknownHostException: project.atlassian.net
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    bnd can no longer build offline

    GitHub | 3 years ago | fhuberts
    java.net.UnknownHostException: github.com
  6. 0

    issues with offline build

    GitHub | 5 years ago | fhuberts
    java.net.UnknownHostException: raw.github.com

  1. davidvanlaatum 2 times, last 3 months ago
  2. davidvanlaatum 1 times, last 3 months ago
  3. tvrmsmith 1 times, last 4 months ago
  4. aldrinleal 1 times, last 7 months ago
  5. mauritius 2 times, last 4 days ago
7 more registered users
41 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.UnknownHostException

    host

    at java.net.AbstractPlainSocketImpl.connect()
  2. Java RT
    Socket.connect
    1. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:158)
    2. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:154)
    3. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:380)
    4. java.net.Socket.connect(Socket.java:569)
    4 frames
  3. Java JSSE
    BaseSSLSocketImpl.connect
    1. sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:569)
    2. sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)
    2 frames
  4. JavaMail API (compat)
    SMTPTransport.openServer
    1. com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:301)
    2. com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:208)
    3. com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1950)
    3 frames