I got the following exception when try to post a request to a http server:
Here is the code I used
URL url = new URL( \"https://www.abc.com\"
I also faced this issue. I was having JDK 1.8.0_121. I upgraded JDK to 1.8.0_181 and it worked like a charm.
JDK 1.8.0_121
1.8.0_181