自 Java 8 Update 111 以来,我们的一些客户无法再运行我们的 Java Web Start 客户端。他们得到:
java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required
看起来它与此有关 change :
Now, proxies requiring Basic authentication when setting up a tunnel for HTTPS will no longer succeed by default. If required, this authentication scheme can be reactivated by removing Basic from the jdk.http.auth.tunneling.disabledSchemes networking property, or by setting a system property of the same name to "" ( empty ) on the command line.
如果客户不愿意更改他们的代理验证方式,有什么办法吗?
注意:添加<property name="jdk.http.auth.tunneling.disabledSchemes" value=""/>
至 <resources>
的 JNLP 没有效果。这是因为这种方式只支持少数属性(在 this page 底部附近有一个列表)。 “jdk.http.auth.tunneling.disabledSchemes”不在其中。
最佳答案
我发现有一种方法,但不在开发者手中:用户可以添加
-Djdk.http.auth.tunneling.disabledSchemes=""
对于 Java 8,在 Java 控制面板 → Java → 查看... → 运行时参数
对于 Java 9,在 Java 控制面板 → 桌面设置 → 运行时参数中
关于Java Web 启动 : Unable to tunnel through proxy since Java 8 Update 111,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41806422/