PSQLException: The server does not support SSL

From: Alexandre <psybox(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: PSQLException: The server does not support SSL
Date: 2017-03-21 12:46:51
Message-ID: CAEPSA-fj5hvNkV+dS1ymb_dQk1i+zfgRoP7TvzSCcVQiVcdaeg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

JDBC driver build number: 42
Server version: 9.2
Exact error message and stacktrace: attached

My system runs for 2h and then this exceptions starts and keep happens
until I restart the system.

This happens when I getting a connection from the HikariCP Pool:

public Connection getConnection() throws SQLException
{
return ds.getConnection();
}

I am using this configuration:

ds = new HikariDataSource();
ds.setMaximumPoolSize(poolSize);
ds.setLeakDetectionThreshold(15000);
ds.setDataSourceClassName("org.postgresql.ds.PGSimpleDataSource");
ds.addDataSourceProperty("serverName", serverAddress);
ds.addDataSourceProperty("databaseName", database);
ds.addDataSourceProperty("user", user);
ds.addDataSourceProperty("portNumber", port);
ds.addDataSourceProperty("password", password);

Browse pgsql-jdbc by date

  From Date Subject
Next Message Konstantinos Kougios 2017-03-22 17:13:28 42.0.0.jre7, driver logging takes 30-40% of my server's time
Previous Message Dave Cramer 2017-03-19 20:26:22 [pgjdbc/pgjdbc] 95a3f4: fix callproc escape documentation the specificatio...