Unable to create Client-Side Field Level Encryption enabled connection client with ATLAS in Java

Hi @PrasannaVengadesan_santhanagopalan,

[{address=localhost:27020, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.ConnectException: Connection refused (Connection refused

This error message means that the driver is unable to establish connection to the mongocryptd (default port 27020). I’d suggest to check whether:

  • mongocryptd is on the PATH, and it’s running
  • The application is able to connect to the port

Regards,
Wan.

1 Like