IO Error: The Network Adapter could not establish the connection

Either:

  1. The database isn’t running
  2. You got the URL wrong
  3. There is a firewall in the way.

(This strange error message is produced by Oracle’s JDBC driver when it can’t connect to the database server. ‘Network adapter’ appears to refer to some component of their code, which isn’t very useful. Real network adapters (NICs) don’t establish connections at all: TCP protocol stacks do that. It would have been a lot more useful if they had just let the original ConnectException be thrown, or at least used its error message and let it appear in the stack trace.)

Leave a Comment