I am not sure whether you have included the below line in your java code. If not, try to add it in code and compile again. Please let me know if you are successfully getting your query response.
HttpService.setSslSecurityProtocol(SSLSecurityProtocol.TLSv1_2);
... View more