[JAVA-4533] Exception in encryption library when auto-encryption is enabled Created: 15/Mar/22  Updated: 27/Oct/23  Resolved: 25/Mar/22

Status: Closed
Project: Java Driver
Component/s: Client Side Encryption
Affects Version/s: 4.3.0
Fix Version/s: None

Type: Bug Priority: Unknown
Reporter: Juan David Vargas Guarín Assignee: Jeffrey Yemin
Resolution: Works as Designed Votes: 0
Labels: external-user
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File mongo_error.txt    

 Description   

Summary

Im trying to use CSFLE on my spring project, but when idle so many time, the library libmongocrypt is throwing an exception, but after executing again it works(exception on attachment). Im trying to unsderstand this error on library.

Using:

java driver sync 4.3.0

mongodb-crypt 1.3.0

gcp kms

Atlas mongo enterprise replica set

 



 Comments   
Comment by Jeffrey Yemin [ 25/Mar/22 ]

Glad to hear it.

Comment by Juan David Vargas Guarín [ 25/Mar/22 ]

Adding endpoint with port for key and kms solve the problem.

Comment by Jeffrey Yemin [ 22/Mar/22 ]

The root exception is:

Caused by: java.net.UnknownHostException: cloudkms.googleapis.com: Name or service not known
	at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
	at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:929)
	at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1324)
	at java.net.InetAddress.getAllByName0(InetAddress.java:1277)
	at java.net.InetAddress.getAllByName(InetAddress.java:1193)
	at java.net.InetAddress.getAllByName(InetAddress.java:1127)
	at java.net.InetAddress.getByName(InetAddress.java:1077)
	at com.mongodb.ServerAddress.getSocketAddress(ServerAddress.java:188)

As this is a network error that is beyond the control of the driver, I'm inclined to close this issue.

Generated at Thu Feb 08 09:02:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.