Java Web 启动 : Unable to tunnel through proxy since Java 8 Update 111

标签 java https proxy java-web-start tunneling

自 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/

相关文章:

java - 细胞模型输出未显示

python - ZMQ : No subscription message on XPUB socket for multiple subscribers (Last Value Caching pattern)

java - Web 服务和 IIS 传递/重定向

apache - 使用 apache web 服务器代理到 apache tomcat

java - 将 WildFly 应用程序服务器与 NetBeans IDE 结合使用

java - 为什么在Spring中使用服务实现模式

html - 您可以强制 HTML 表单对相对 URL 使用 HTTPS 吗?

http - HTTPS 中的哪些 HTTP 功能不同?

java - 如何计算总点击数

https - 设置 Identity Server 4 反向代理