Thread: [JDBC] PSQLException: The server does not support SSL

[JDBC] PSQLException: The server does not support SSL

From
Alexandre
Date:
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);