Unfortunately the fixes in 42.2.17 weren't quite enough to fix the problem with gssEncMode. 42.2.18 has (hopefully) fixed them. See the details in the [release notes](https://jdbc.postgresql.org/documentation/changelog.html#version_42.2.18)