Connection Fail on Mongo Atlas Serverless

Please try Java 17. That’s also an LTS release and the JDK bug was fixed before it went GA, so you shouldn’t need the latest patch release (though it’s still recommended).