netbeans bitbucket invalid hostname with jdk 1.8

i am using jdk 1.8 as default jdk for netbeans. But when i try to connect bitbucket for git pull and push, i couldnt see any local or remote branches in netbeans. After each try i see invalid hostname error in the notification window. After google search i find that there is a bug with https in jdk 1.8 that start with b117. so i downloaded and installed jdk 1.8 b116. Now everything works fine.