Java Web Start:自Java 8 Update 111以来无法通过代理进行隧道传输 [英] Java Web Start: Unable to tunnel through proxy since Java 8 Update 111
问题描述
自Java 8 Update 111以来,我们的一些客户无法再运行Java Web Start客户端了。他们得到:
Some of our customers cannot run our Java Web Start client anymore since Java 8 Update 111. They get:
java.io。 IOException:无法通过代理隧道。代理返回
需要HTTP / 1.1 407代理身份验证
java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required
这可能与此更改有关:
现在,在为HTTPS设置隧道
时需要基本身份验证的代理默认情况下将不再成功。如果需要,此
可以通过从
jdk.http.auth.tunneling.disabledSchemes网络属性中删除Basic来重新激活身份验证方案,或者通过
在$ b上将同名的系统属性设置为(空)来重新激活$ b命令行。
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.
http://www.oracle.com/technetwork/java/javase/8u111-relnotes-3124969.html
但是,我不确定如何使用Java Web Start应用所需的更改。像这样添加属性标记对JNLP没有影响:
However, I am not sure how to appy the needed change with Java Web Start. Adding a property tag to the JNLP like this had no effect:
<resources>
...
<property name="jdk.http.auth.tunneling.disabledSchemes" value=""/>
...
</resources>
有什么想法吗?
更新:看起来这种方式只支持一些属性。这是一个列表:
Update: Looks like there are only some properties supported this way. Here is a list:
http://docs.oracle.com/javase/8/docs/technotes/guides/javaws/developersguide/syntax.html
jdk.http.auth.tunneling.disabledSchemes不在其中:(
"jdk.http.auth.tunneling.disabledSchemes" is not among them :(
因此无法在Java Web中启用基本身份验证代理HTTPS隧道开始?
推荐答案
我发现有一种方法,但不是开发人员的手:用户可以添加
I found out that there is one way, but not in the hands of the developer: The user can add
-Djdk.http.auth.tunneling.disabledSchemes=""
Java控制面板中的Java 8→Java→查看...→运行时参数
for Java 8 in Java Control Panel → Java → View... → Runtime Parameters
Java控制面板中的Java 9→桌面设置→运行时参数
for Java 9 in Java Control Panel → Desktop Settings → Runtime Parameters
这篇关于Java Web Start:自Java 8 Update 111以来无法通过代理进行隧道传输的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!