I have the exactly same problem it just ignores the username and password
In my case my proxy needs a username and password we tried with
-Dhttp.proxyUser=user
-Dhttp.proxyPassword=pass
java.security.AccessControlException: access denied (“java.net.NetPermission” “requestPasswordAuthentication”)
Cheers,
Elton