As a sysadmin, not developer, I hate Java almost as much as Windows. The error messages Java apps produce are like coded messages that you have to decipher.
I.E. Instead of "<DOMAIN> TLS Handshake failed" it will be something like "ERROR: PKIX failed". So now I have to figure out that PKIX is referring to PKI and it would make too much sense to provide the domain that failed. Instead I have to play the guessing game.
So your issue isn't with Java, just with shit error messages and devs clearing the exception stack.
I hate when tools only produce generic "TLS Handshake failed" instead of saying why exactly it failed, where is the problem.