In my case Charles Mac Os Proxy was the issue.
Steps to resolve -
- If charles is activated/opened then go to "Proxy" menu, unselect "Mac OS X Proxy" option.
- Kill all java processes using "Activity Monitor" app and try again.
In my case Charles Mac Os Proxy was the issue.
Steps to resolve -