Met java bug JDK-8055829 in netbeans module
I am calling below code in netbeans, and it failed to retrieve any cookies from server. If i run these code in standalone, it got no problem. This only happen in Mac, to fix this by adding “CookieHandler.setDefault(null);” , see more detail https://bugs.openjdk.java.net/browse/JDK-8055829