如果代理设置不正确,Install4j静默更新程序进程将挂起

时间:2016-10-24 11:31:23

标签: install4j

如果Windows配置了"代理脚本"则install4j静默更新检查过程似乎挂起。那已经不存在了。例如:当它设置为http://127.0.0.1:50000/proxy.pac时,IE会给出"连接拒绝错误",但是在尝试下载脚本时,install4j将无限期地等待。

这也会阻止我们自己的应用程序启动,因为它被配置为在静默更新检查后启动。

安装程序和更新程序是在Install4j 6.1.2中创建的。我没有在6.1.3的更改日志中看到任何可以解决此问题的内容。你能看看还是给我们一个解决方法?

"main" #1 prio=5 os_prio=0 tid=0x0000000001f7f000 nid=0x1440 runnable [0x000000000028c000]
   java.lang.Thread.State: RUNNABLE
                at java.io.FileOutputStream.writeBytes(Native Method)
                at java.io.FileOutputStream.write(Unknown Source)
                at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
                at java.io.BufferedOutputStream.flush(Unknown Source)
                - locked <0x00000000d7c99bd0> (a java.io.BufferedOutputStream)
                at java.io.PrintStream.write(Unknown Source)
                - locked <0x00000000d7c99bb0> (a java.io.PrintStream)
                at sun.nio.cs.StreamEncoder.writeBytes(Unknown Source)
                at sun.nio.cs.StreamEncoder.implFlushBuffer(Unknown Source)
                at sun.nio.cs.StreamEncoder.flushBuffer(Unknown Source)
                - locked <0x00000000d7c99cf8> (a java.io.OutputStreamWriter)
                at java.io.OutputStreamWriter.flushBuffer(Unknown Source)
                at java.io.PrintStream.write(Unknown Source)
                - locked <0x00000000d7c99bb0> (a java.io.PrintStream)
                at java.io.PrintStream.print(Unknown Source)
                at java.io.PrintStream.println(Unknown Source)
                - locked <0x00000000d7c99bb0> (a java.io.PrintStream)
                at java.lang.Throwable$WrappedPrintStream.println(Unknown Source)
                at java.lang.Throwable.printStackTrace(Unknown Source)
                - locked <0x00000000d7c99bb0> (a java.io.PrintStream)
                at java.lang.Throwable.printStackTrace(Unknown Source)
                at java.lang.Throwable.printStackTrace(Unknown Source)
                at com.sun.deploy.net.proxy.ProxyConfigException.<init>(Unknown Source)
                at com.sun.deploy.net.proxy.AbstractAutoProxyHandler.getJSFileFromURL(Unknown Source)
                at com.sun.deploy.net.proxy.AbstractAutoProxyHandler.retrieveContentOfPACFile(Unknown Source)
                at com.sun.deploy.net.proxy.AbstractAutoProxyHandler.contructLegacyPACScript_16(Unknown Source)
                at com.sun.deploy.net.proxy.AbstractAutoProxyHandler.init(Unknown Source)
                at com.install4j.runtime.installer.helper.content.DeployProxyHelper.getProxyHostInfoWindows(DeployProxyHelper.java:70)
                at com.install4j.runtime.installer.helper.content.ProxyHelper.getProxyHostInfoUnguarded(ProxyHelper.java:37)
                at com.install4j.runtime.installer.helper.content.ProxyHelper.access$000(ProxyHelper.java:13)
                at com.install4j.runtime.installer.helper.content.ProxyHelper$1.fetchValue(ProxyHelper.java:25)
                at com.install4j.runtime.installer.helper.content.ProxyHelper$1.fetchValue(ProxyHelper.java:22)
                at com.install4j.runtime.installer.helper.comm.actions.FetchObjectAction.execute(FetchObjectAction.java:14)
                at com.install4j.runtime.installer.helper.comm.HelperCommunication.exe

1 个答案:

答案 0 :(得分:0)

该错误在JRE类中,因此我们无法直接修复它。唯一的选择是传递VM参数

-Dinstall4j.noProxyAutoDetect=true

到安装程序,以便关闭代理自动检测。