本文介绍了32 位 Windows 7 上的 Java 7 - Java Webstart - 无法加载资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

32 位 Windows 7 上的 Java 7 - Java Webstart - 无法加载资源

我无法在 32 位 Windows 7 系统上启动任何 java webstart 应用程序.例如.ArgoUML - http://argouml-downloads.tigris.org/jws/argouml-latest-stable.jnlpJava 6 一切正常,但 Java 7 出现此类错误:

无法加载资源:java.io.IOException:写入错误服务器java.net.SocketException:连接重置

Java 版本:Java Web Start 10.7.2.11使用 JRE 版本 1.7.0_07-b11 Java HotSpot(TM) 客户端 VM

这是跟踪日志:

日志开始: pe, 21 syys 2012 21:04:19 +0300基本:Java 部分开始基本:jnlpx.jvm:C:\Program Files\Java\jre7\bin\javaw.exe基本:jnlpx.splashport:52540基本:jnlpx.remove:真基本:jnlpx.heapsize:NULL,512m网络:正在加载用户定义的代理配置...网络:完成.网络:浏览器是 ChromeHTML网络:浏览器是IE网络:正在从 Internet Explorer 加载代理配置...网络:完成.网络:正在加载直接代理配置...网络:完成.网络:代理配置:无代理安全性:属性 package.access 值 sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.安全性:属性 package.access 新值 sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws安全性:属性 package.access 值 sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws安全性:属性 package.access 新值 sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy安全性:属性 package.access 值 sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy安全性:属性 package.access 新值 sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp安全性:属性 package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.安全性:属性 package.definition 新值 sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws安全性:属性 package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws安全性:属性 package.definition 新值 sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy安全性:属性 package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy安全性:属性 package.definition 新值 sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp安全性:属性 package.access 值 sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp安全性:属性 package.access 新值 sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss安全性:属性 package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp安全性:属性 package.definition 新值 sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss基本:运行 JVMParams: [JVMParameters: isSecure: true, args: -Xmx512m]->[JVMParameters: isSecure: true, args: -Xmx512m]网络:创建的版本 ID:1.7.0.07网络:创建的版本 ID:1.7网络:创建的版本 ID:2.2.1临时:带有源的新 XMLParser:temp: <?xml version="1.0" encoding="utf-8"?><!-- 用于使用 WebStart 启动 ArgoUML 的 JNLP 文件 --><jnlp规格=1.0+"代码库="http://argouml-downloads.tigris.org/maven2"href="http://argouml-downloads.tigris.org/jws/argouml-latest-stable.jnlp"><信息><title>ArgoUML 最新稳定版本 0.34</title><vendor>Tigris.org(开源)</vendor><homepage href="http://argouml.tigris.org/"/><描述>ArgoUML 应用程序.这是最新的稳定版本.</描述><description kind="short">ArgoUML 0.34</description><icon href="http://argouml.tigris.org/images/argologo16x16.gif" width="16" height="16"/><icon href="http://argouml.tigris.org/images/argologo32x32.gif" width="32" height="32"/><icon href="http://argouml.tigris.org/images/argologo64x64.gif" width="64" height="64"/><离线允许/></信息><安全><所有权限/></安全><资源><j2se version="1.6+" max-heap-size="512m"/><jar href="http://argouml-downloads.tigris.org/maven2/antlr/antlr/2.7.7-3/antlr-2.7.7-3.jar"/>....<属性名称=argouml.modules"value=";org.argouml.state2.StateDiagramModule;org.argouml.sequence2.SequenceDiagramModule;org.argouml.activity2.ActivityDiagramModule;org.argouml.core.propertypanels.module.XmlPropertyPanelsModule;org.argouml.transformer.TransformerModule;argouml.language.cpp.generator.ModuleCpp;org.argouml.language.cpp.notation.NotationModuleCpp;org.argouml.language.cpp.profile.ProfileModule;org.argouml.language.cpp.reveng.CppImport;org.argouml.language.cpp.ui.SettingsTabCpp;org.argouml.language.csharp.generator.GeneratorCSharp;org.argouml.language.java.cognitive.critics.InitJavaCritics;org.argouml.language.java.generator.GeneratorJava;org.argouml.language.java.profile.ProfileJava;org.argouml.language.java.reveng.JavaImport;org.argouml.language.java.reveng.classfile.ClassfileImport;org.argouml.language.java.ui.JavaTools;org.argouml.language.java.ui.SettingsTabJava;org.argouml.language.php.generator.ModulePHP4;org.argouml.language.php.generator.ModulePHP5;org.argouml.language.sql.SqlInit;org.argouml.uml.reveng.classfile.ClassfileImport;org.argouml.uml.reveng.idl.IDLFileImport"/></资源><application-desc main-class="org.argouml.application.Main"/></jnlp>温度:返回 ROOT 如下:<jnlp spec="1.0+" codebase="http://argouml-downloads.tigris.org/maven2" href="http://argouml-downloads.tigris.org/jws/argouml-latest-stable.jnlp><信息><title>ArgoUML 最新稳定版本 0.34</title><vendor>Tigris.org(开源)</vendor><homepage href="http://argouml.tigris.org/"/><描述>ArgoUML 应用程序.这是最新的稳定版本.</描述><description kind="short">ArgoUML 0.34</description><icon href="http://argouml.tigris.org/images/argologo16x16.gif" width="16" height="16"/><icon href="http://argouml.tigris.org/images/argologo32x32.gif" width="32" height="32"/><icon href="http://argouml.tigris.org/images/argologo64x64.gif" width="64" height="64"/><离线允许/></信息><安全><所有权限/></安全><资源><j2se version="1.6+" max-heap-size="512m"/><jar href="http://argouml-downloads.tigris.org/maven2/antlr/antlr/2.7.7-3/antlr-2.7.7-3.jar"/>...<property name="argouml.modules" value=";org.argouml.state2.StateDiagramModule;org.argouml.sequence2.SequenceDiagramModule;org.argouml.activity2.ActivityDiagramModule;org.argouml.core.propertypanels.module.XmlPropertyPanelsModule;org.argouml.transformer.TransformerModule;org.argouml.language.cpp.generator.ModuleCpp;org.argouml.language.cpp.notation.NotationModuleCpp;org.argouml.language.cpp.profile.ProfileModule;org.argouml.language.cpp.reveng.CppImport;org.argouml.language.cpp.ui.SettingsTabCpp;org.argouml.language.csharp.generator.GeneratorCSharp;org.argouml.language.java.cognitive.critics.InitJavaCritics;org.argouml.language.java.generator.GeneratorJava;org.argouml.language.java.profile.ProfileJava;org.argouml.language.java.reveng.JavaImport;org.argouml.language.java.reveng.classfile.ClassfileImport;org.argouml.language.java.ui.JavaTools;org.argouml.language.java.ui.SettingsTabJava;org.argouml.language.php.generator.ModulePHP4;org.argouml.language.php.generator.ModulePHP5;org.argouml.language.sql.SqlInit;org.argouml.uml.reveng.classfile.ClassfileImport;org.argouml.uml.reveng.idl.IDLFileImport"/></资源><application-desc main-class="org.argouml.application.Main"/></jnlp>临时:从 XMLFormat.parse() 返回 LaunchDesc:<jnlp spec="1.0+" codebase="http://argouml-downloads.tigris.org/maven2/" href="http://argouml-downloads.tigris.org/jws/argouml-latest-stable.jnlp"><信息><title>ArgoUML 最新稳定版本 0.34</title><vendor>Tigris.org(开源)</vendor><homepage href="http://argouml.tigris.org/"/><描述>ArgoUML 应用程序.这是最新的稳定版本.</描述><description kind="short">ArgoUML 0.34</description><icon href="http://argouml.tigris.org/images/argologo16x16.gif" height="16" width="16" kind="default"/><icon href="http://argouml.tigris.org/images/argologo32x32.gif" height="32" width="32" kind="default"/><icon href="http://argouml.tigris.org/images/argologo64x64.gif" height="64" width="64" kind="default"/><离线允许/></信息><安全><所有权限/></安全><update check="timeout" policy="always"/><资源><java max-heap-size="536870912" version="1.6+"/><jar href="http://argouml-downloads.tigris.org/maven2/antlr/antlr/2.7.7-3/antlr-2.7.7-3.jar" download="eager" main="false"/>...<property name="argouml.modules" value=";org.argouml.state2.StateDiagramModule;org.argouml.sequence2.SequenceDiagramModule;org.argouml.activity2.ActivityDiagramModule;org.argouml.core.propertypanels.module.XmlPropertyPanelsModule;org.argouml.transformer.TransformerModule;org.argouml.language.cpp.generator.ModuleCpp;org.argouml.language.cpp.notation.NotationModuleCpp;org.argouml.language.cpp.profile.ProfileModule;org.argouml.language.cpp.reveng.CppImport;org.argouml.language.cpp.ui.SettingsTabCpp;org.argouml.language.csharp.generator.GeneratorCSharp;org.argouml.language.java.cognitive.critics.InitJavaCritics;org.argouml.language.java.generator.GeneratorJava;org.argouml.language.java.profile.ProfileJava;org.argouml.language.java.reveng.JavaImport;org.argouml.language.java.reveng.classfile.ClassfileImport;org.argouml.language.java.ui.JavaTools;org.argouml.language.java.ui.SettingsTabJava;org.argouml.language.php.generator.ModulePHP4;org.argouml.language.php.generator.ModulePHP5;org.argouml.language.sql.SqlInit;org.argouml.uml.reveng.classfile.ClassfileImport;org.argouml.uml.reveng.idl.IDLFileImport"/></资源><application-desc main-class="org.argouml.application.Main"/></jnlp>基本:新启动器:<jnlp spec="1.0+" codebase="http://argouml-downloads.tigris.org/maven2/" href="http://argouml-downloads.tigris.org/jws/argouml-latest-stable.jnlp"><信息><title>ArgoUML 最新稳定版本 0.34</title><vendor>Tigris.org(开源)</vendor><homepage href="http://argouml.tigris.org/"/><描述>ArgoUML 应用程序.这是最新的稳定版本.</描述><description kind="short">ArgoUML 0.34</description><icon href="http://argouml.tigris.org/images/argologo16x16.gif" height="16" width="16" kind="default"/><icon href="http://argouml.tigris.org/images/argologo32x32.gif" height="32" width="32" kind="default"/><icon href="http://argouml.tigris.org/images/argologo64x64.gif" height="64" width="64" kind="default"/><离线允许/></信息><安全><所有权限/></安全><update check="timeout" policy="always"/><资源><java max-heap-size="536870912" version="1.6+"/><jar href="http://argouml-downloads.tigris.org/maven2/antlr/antlr/2.7.7-3/antlr-2.7.7-3.jar" download="eager" main="false"/>....<property name="argouml.modules" value=";org.argouml.state2.StateDiagramModule;org.argouml.sequence2.SequenceDiagramModule;org.argouml.activity2.ActivityDiagramModule;org.argouml.core.propertypanels.module.XmlPropertyPanelsModule;org.argouml.transformer.TransformerModule;org.argouml.language.cpp.generator.ModuleCpp;org.argouml.language.cpp.notation.NotationModuleCpp;org.argouml.language.cpp.profile.ProfileModule;org.argouml.language.cpp.reveng.CppImport;org.argouml.language.cpp.ui.SettingsTabCpp;org.argouml.language.csharp.generator.GeneratorCSharp;org.argouml.language.java.cognitive.critics.InitJavaCritics;org.argouml.language.java.generator.GeneratorJava;org.argouml.language.java.profile.ProfileJava;org.argouml.language.java.reveng.JavaImport;org.argouml.language.java.reveng.classfile.ClassfileImport;org.argouml.language.java.ui.JavaTools;org.argouml.language.java.ui.SettingsTabJava;org.argouml.language.php.generator.ModulePHP4;org.argouml.language.php.generator.ModulePHP5;org.argouml.language.sql.SqlInit;org.argouml.uml.reveng.classfile.ClassfileImport;org.argouml.uml.reveng.idl.IDLFileImport"/></资源><application-desc main-class="org.argouml.application.Main"/></jnlp>网络:prepareToLaunch:offlineOnly=false网络:未找到缓存条目 [网址:http://argouml-downloads.tigris.org/jws/argouml-latest-stable.jnlp,版本:null]网络:未找到缓存条目 [网址:http://argouml-downloads.tigris.org/jws/argouml-latest-stable.jnlp,版本:null]网络:未找到缓存条目 [网址:http://argouml-downloads.tigris.org/jws/argouml-latest-stable.jnlp,版本:null]网络:使用 proxy=DIRECT 连接 http://argouml-downloads.tigris.org/jws/argouml-latest-stable.jnlp网络:使用 proxy=DIRECT 连接 socket://argouml-downloads.tigris.org:80网络:使用 proxy=DIRECT 连接 socket://argouml-downloads.tigris.org:80java.io.IOException:写入服务器时出错在 sun.net.www.protocol.http.HttpURLConnection.writeRequests(来源不明)在 sun.net.www.protocol.http.HttpURLConnection.writeRequests(来源不明)在 sun.net.www.protocol.http.HttpURLConnection.getInputStream(来源不明)在 java.net.HttpURLConnection.getResponseCode(来源不明)在 com.sun.deploy.net.BasicHttpRequest.doRequest(来源不明)在 com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(来源不明)在 com.sun.deploy.net.DownloadEngine.actionDownload(来源不明)在 com.sun.deploy.net.DownloadEngine._downloadCacheEntry(来源不明)在 com.sun.deploy.cache.ResourceProviderImpl.getResourceCacheEntry(来源不明)在 com.sun.deploy.cache.ResourceProviderImpl.getResourceCacheEntry(来源不明)在 com.sun.deploy.cache.ResourceProviderImpl.getResource(来源不明)在 com.sun.javaws.Launcher.updateFinalLaunchDesc(来源不明)在 com.sun.javaws.Launcher.prepareToLaunch(来源不明)在 com.sun.javaws.Launcher.prepareToLaunch(来源不明)在 com.sun.javaws.Launcher.launch(来源不明)在 com.sun.javaws.Main.launchApp(来源不明)在 com.sun.javaws.Main.continueInSecureThread(来源不明)在 com.sun.javaws.Main.access$000(来源不明)在 com.sun.javaws.Main$1.run(来源不明)在 java.lang.Thread.run(未知来源)网络:使用 proxy=DIRECT 连接 http://argouml-downloads.tigris.org/jws/argouml-latest-stable.jnlp网络:使用 proxy=DIRECT 连接 socket://argouml-downloads.tigris.org:80网络:使用 proxy=DIRECT 连接 socket://argouml-downloads.tigris.org:80java.net.SocketException:连接重置在 java.net.SocketInputStream.read(Unknown Source)在 java.net.SocketInputStream.read(Unknown Source)在 java.io.BufferedInputStream.fill(Unknown Source)在 java.io.BufferedInputStream.read1(未知来源)在 java.io.BufferedInputStream.read(Unknown Source)在 sun.net.www.http.HttpClient.parseHTTPHeader(来源不明)在 sun.net.www.http.HttpClient.parseHTTP(来源不明)在 sun.net.www.http.HttpClient.parseHTTP(来源不明)在 sun.net.www.protocol.http.HttpURLConnection.getInputStream(来源不明)在 java.net.HttpURLConnection.getResponseCode(来源不明)在 com.sun.deploy.net.BasicHttpRequest.doRequest(来源不明)在 com.sun.deploy.net.BasicHttpRequest.doRequest(来源不明)在 com.sun.deploy.net.BasicHttpRequest.doGetRequest(来源不明)在 com.sun.deploy.net.DownloadEngine.actionDownload(来源不明)在 com.sun.deploy.net.DownloadEngine._downloadCacheEntry(来源不明)在 com.sun.deploy.cache.ResourceProviderImpl.getResourceCacheEntry(来源不明)在 com.sun.deploy.cache.ResourceProviderImpl.getResourceCacheEntry(来源不明)在 com.sun.deploy.cache.ResourceProviderImpl.getResource(来源不明)在 com.sun.javaws.Launcher.updateFinalLaunchDesc(来源不明)在 com.sun.javaws.Launcher.prepareToLaunch(来源不明)在 com.sun.javaws.Launcher.prepareToLaunch(来源不明)在 com.sun.javaws.Launcher.launch(来源不明)在 com.sun.javaws.Main.launchApp(来源不明)在 com.sun.javaws.Main.continueInSecureThread(来源不明)在 com.sun.javaws.Main.access$000(来源不明)在 com.sun.javaws.Main$1.run(来源不明)在 java.lang.Thread.run(未知来源)预加载器:构建预加载器委托网络:使用 proxy=DIRECT 连接 socket://127.0.0.1:52540#### Java Web 启动错误:#### 无法加载资源:http://argouml-downloads.tigris.org/jws/argouml-latest-stable.jnlp
解决方案

问题似乎出在 Windows 环境中的 Java 7 IPv6 中.解决方案是添加:<j2se version="1.6.10+" href="http://java.sun.com/products/autodl/j2se"java-vm-args="-Djava.net.preferIPv4Stack=true"/>

(我还手动将 java.exe 和 javaws.exe 添加到 Windows 防火墙和 F-Secure 的例外列表中.)

感谢 Richard Conway:http://grokkingis.blogspot.fi/2012/08/work-arounds-windows-firewall-blocking.html?showComment=1349808752760#c2225417445483685032

Java 7 on 32-bit Windows 7 - Java Webstart - Unable to load resource

I can't launch any java webstart application on a 32-bit Windows 7 system.E.g. ArgoUML - http://argouml-downloads.tigris.org/jws/argouml-latest-stable.jnlpEverything works fine with Java 6, but with Java 7 I get this kind of errors:

Java version:
Java Web Start 10.7.2.11
Using JRE version 1.7.0_07-b11 Java HotSpot(TM) Client VM

Here is the trace log:

    Log started: pe, 21 syys 2012 21:04:19 +0300
    basic: Java part started
    basic: jnlpx.jvm: C:\Program Files\Java\jre7\bin\javaw.exe
    basic: jnlpx.splashport: 52540
    basic: jnlpx.remove: true
    basic: jnlpx.heapsize: NULL,512m
    network: Loading user-defined proxy configuration ...
    network: Done.
    network: Browser is ChromeHTML
    network: Browser is IE
    network: Loading proxy configuration from Internet Explorer ...
    network: Done.
    network: Loading direct proxy configuration ...
    network: Done.
    network: Proxy Configuration: No proxy
    security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.
    security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
    security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
    security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy
    security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy
    security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
    security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.
    security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
    security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
    security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy
    security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy
    security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
    security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
    security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
    security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
    security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
    basic: Running JVMParams: [JVMParameters: isSecure: true, args: -Xmx512m]
        -> [JVMParameters: isSecure: true, args: -Xmx512m]
    network: Created version ID: 1.7.0.07
    network: Created version ID: 1.7
    network: Created version ID: 2.2.1
    temp: new XMLParser with source:
    temp: <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for launching ArgoUML with WebStart -->
    <jnlp
      spec="1.0+"
      codebase="http://argouml-downloads.tigris.org/maven2"
      href="http://argouml-downloads.tigris.org/jws/argouml-latest-stable.jnlp">
      <information>
        <title>ArgoUML Latest Stable Release 0.34</title>
        <vendor>Tigris.org (Open Source)</vendor>
        <homepage href="http://argouml.tigris.org/"/>
        <description>ArgoUML application.
                     This is the latest stable release.
        </description>
        <description kind="short">ArgoUML 0.34</description>
        <icon href="http://argouml.tigris.org/images/argologo16x16.gif" width="16" height="16" />
        <icon href="http://argouml.tigris.org/images/argologo32x32.gif" width="32" height="32" />
        <icon href="http://argouml.tigris.org/images/argologo64x64.gif" width="64" height="64" />
        <offline-allowed/>
      </information>
      <security>
        <all-permissions/>
      </security>
      <resources>
        <j2se version="1.6+" max-heap-size="512m"/>

        <jar href="http://argouml-downloads.tigris.org/maven2/antlr/antlr/2.7.7-3/antlr-2.7.7-3.jar"/>
        ....
        <property name="argouml.modules"
          value=";org.argouml.state2.StateDiagramModule;org.argouml.sequence2.SequenceDiagramModule;org.argouml.activity2.ActivityDiagramModule;org.argouml.core.propertypanels.module.XmlPropertyPanelsModule;org.argouml.transformer.TransformerModule;org.argouml.language.cpp.generator.ModuleCpp;org.argouml.language.cpp.notation.NotationModuleCpp;org.argouml.language.cpp.profile.ProfileModule;org.argouml.language.cpp.reveng.CppImport;org.argouml.language.cpp.ui.SettingsTabCpp;org.argouml.language.csharp.generator.GeneratorCSharp;org.argouml.language.java.cognitive.critics.InitJavaCritics;org.argouml.language.java.generator.GeneratorJava;org.argouml.language.java.profile.ProfileJava;org.argouml.language.java.reveng.JavaImport;org.argouml.language.java.reveng.classfile.ClassfileImport;org.argouml.language.java.ui.JavaTools;org.argouml.language.java.ui.SettingsTabJava;org.argouml.language.php.generator.ModulePHP4;org.argouml.language.php.generator.ModulePHP5;org.argouml.language.sql.SqlInit;org.argouml.uml.reveng.classfile.ClassfileImport;org.argouml.uml.reveng.idl.IDLFileImport"    />
      </resources>
      <application-desc main-class="org.argouml.application.Main"/>
    </jnlp>

    temp:

    returning ROOT as follows:

    <jnlp spec="1.0+" codebase="http://argouml-downloads.tigris.org/maven2" href="http://argouml-downloads.tigris.org/jws/argouml-latest-stable.jnlp">
      <information>
        <title>ArgoUML Latest Stable Release 0.34</title>
        <vendor>Tigris.org (Open Source)</vendor>
        <homepage href="http://argouml.tigris.org/"/>
        <description>ArgoUML application.
                     This is the latest stable release.
        </description>
        <description kind="short">ArgoUML 0.34</description>
        <icon href="http://argouml.tigris.org/images/argologo16x16.gif" width="16" height="16"/>
        <icon href="http://argouml.tigris.org/images/argologo32x32.gif" width="32" height="32"/>
        <icon href="http://argouml.tigris.org/images/argologo64x64.gif" width="64" height="64"/>
        <offline-allowed/>
      </information>
      <security>
        <all-permissions/>
      </security>
      <resources>
        <j2se version="1.6+" max-heap-size="512m"/>
        <jar href="http://argouml-downloads.tigris.org/maven2/antlr/antlr/2.7.7-3/antlr-2.7.7-3.jar"/>...
        <property name="argouml.modules" value=";org.argouml.state2.StateDiagramModule;org.argouml.sequence2.SequenceDiagramModule;org.argouml.activity2.ActivityDiagramModule;org.argouml.core.propertypanels.module.XmlPropertyPanelsModule;org.argouml.transformer.TransformerModule;org.argouml.language.cpp.generator.ModuleCpp;org.argouml.language.cpp.notation.NotationModuleCpp;org.argouml.language.cpp.profile.ProfileModule;org.argouml.language.cpp.reveng.CppImport;org.argouml.language.cpp.ui.SettingsTabCpp;org.argouml.language.csharp.generator.GeneratorCSharp;org.argouml.language.java.cognitive.critics.InitJavaCritics;org.argouml.language.java.generator.GeneratorJava;org.argouml.language.java.profile.ProfileJava;org.argouml.language.java.reveng.JavaImport;org.argouml.language.java.reveng.classfile.ClassfileImport;org.argouml.language.java.ui.JavaTools;org.argouml.language.java.ui.SettingsTabJava;org.argouml.language.php.generator.ModulePHP4;org.argouml.language.php.generator.ModulePHP5;org.argouml.language.sql.SqlInit;org.argouml.uml.reveng.classfile.ClassfileImport;org.argouml.uml.reveng.idl.IDLFileImport"/>
      </resources>
      <application-desc main-class="org.argouml.application.Main"/>
    </jnlp>
    temp: returning LaunchDesc from XMLFormat.parse():

    <jnlp spec="1.0+" codebase="http://argouml-downloads.tigris.org/maven2/" href="http://argouml-downloads.tigris.org/jws/argouml-latest-stable.jnlp">
      <information>
        <title>ArgoUML Latest Stable Release 0.34</title>
        <vendor>Tigris.org (Open Source)</vendor>
        <homepage href="http://argouml.tigris.org/"/>
        <description>ArgoUML application.
                     This is the latest stable release.
        </description>
        <description kind="short">ArgoUML 0.34</description>
        <icon href="http://argouml.tigris.org/images/argologo16x16.gif" height="16" width="16" kind="default"/>
        <icon href="http://argouml.tigris.org/images/argologo32x32.gif" height="32" width="32" kind="default"/>
        <icon href="http://argouml.tigris.org/images/argologo64x64.gif" height="64" width="64" kind="default"/>
        <offline-allowed/>
      </information>
      <security>
        <all-permissions/>
      </security>
      <update check="timeout" policy="always"/>
      <resources>
        <java max-heap-size="536870912" version="1.6+"/>
        <jar href="http://argouml-downloads.tigris.org/maven2/antlr/antlr/2.7.7-3/antlr-2.7.7-3.jar" download="eager" main="false"/>
        ...
        <property name="argouml.modules" value=";org.argouml.state2.StateDiagramModule;org.argouml.sequence2.SequenceDiagramModule;org.argouml.activity2.ActivityDiagramModule;org.argouml.core.propertypanels.module.XmlPropertyPanelsModule;org.argouml.transformer.TransformerModule;org.argouml.language.cpp.generator.ModuleCpp;org.argouml.language.cpp.notation.NotationModuleCpp;org.argouml.language.cpp.profile.ProfileModule;org.argouml.language.cpp.reveng.CppImport;org.argouml.language.cpp.ui.SettingsTabCpp;org.argouml.language.csharp.generator.GeneratorCSharp;org.argouml.language.java.cognitive.critics.InitJavaCritics;org.argouml.language.java.generator.GeneratorJava;org.argouml.language.java.profile.ProfileJava;org.argouml.language.java.reveng.JavaImport;org.argouml.language.java.reveng.classfile.ClassfileImport;org.argouml.language.java.ui.JavaTools;org.argouml.language.java.ui.SettingsTabJava;org.argouml.language.php.generator.ModulePHP4;org.argouml.language.php.generator.ModulePHP5;org.argouml.language.sql.SqlInit;org.argouml.uml.reveng.classfile.ClassfileImport;org.argouml.uml.reveng.idl.IDLFileImport"/>
      </resources>
      <application-desc main-class="org.argouml.application.Main"/>
    </jnlp>
    basic: new Launcher:
    <jnlp spec="1.0+" codebase="http://argouml-downloads.tigris.org/maven2/" href="http://argouml-downloads.tigris.org/jws/argouml-latest-stable.jnlp">
      <information>
        <title>ArgoUML Latest Stable Release 0.34</title>
        <vendor>Tigris.org (Open Source)</vendor>
        <homepage href="http://argouml.tigris.org/"/>
        <description>ArgoUML application.
                     This is the latest stable release.
        </description>
        <description kind="short">ArgoUML 0.34</description>
        <icon href="http://argouml.tigris.org/images/argologo16x16.gif" height="16" width="16" kind="default"/>
        <icon href="http://argouml.tigris.org/images/argologo32x32.gif" height="32" width="32" kind="default"/>
        <icon href="http://argouml.tigris.org/images/argologo64x64.gif" height="64" width="64" kind="default"/>
        <offline-allowed/>
      </information>
      <security>
        <all-permissions/>
      </security>
      <update check="timeout" policy="always"/>
      <resources>
        <java max-heap-size="536870912" version="1.6+"/>
        <jar href="http://argouml-downloads.tigris.org/maven2/antlr/antlr/2.7.7-3/antlr-2.7.7-3.jar" download="eager" main="false"/>
        ....
        <property name="argouml.modules" value=";org.argouml.state2.StateDiagramModule;org.argouml.sequence2.SequenceDiagramModule;org.argouml.activity2.ActivityDiagramModule;org.argouml.core.propertypanels.module.XmlPropertyPanelsModule;org.argouml.transformer.TransformerModule;org.argouml.language.cpp.generator.ModuleCpp;org.argouml.language.cpp.notation.NotationModuleCpp;org.argouml.language.cpp.profile.ProfileModule;org.argouml.language.cpp.reveng.CppImport;org.argouml.language.cpp.ui.SettingsTabCpp;org.argouml.language.csharp.generator.GeneratorCSharp;org.argouml.language.java.cognitive.critics.InitJavaCritics;org.argouml.language.java.generator.GeneratorJava;org.argouml.language.java.profile.ProfileJava;org.argouml.language.java.reveng.JavaImport;org.argouml.language.java.reveng.classfile.ClassfileImport;org.argouml.language.java.ui.JavaTools;org.argouml.language.java.ui.SettingsTabJava;org.argouml.language.php.generator.ModulePHP4;org.argouml.language.php.generator.ModulePHP5;org.argouml.language.sql.SqlInit;org.argouml.uml.reveng.classfile.ClassfileImport;org.argouml.uml.reveng.idl.IDLFileImport"/>
      </resources>
      <application-desc main-class="org.argouml.application.Main"/>
    </jnlp>
    network: prepareToLaunch: offlineOnly=false
    network: Cache entry not found [url: http://argouml-downloads.tigris.org/jws/argouml-latest-stable.jnlp, version: null]
    network: Cache entry not found [url: http://argouml-downloads.tigris.org/jws/argouml-latest-stable.jnlp, version: null]
    network: Cache entry not found [url: http://argouml-downloads.tigris.org/jws/argouml-latest-stable.jnlp, version: null]
    network: Connecting http://argouml-downloads.tigris.org/jws/argouml-latest-stable.jnlp with proxy=DIRECT
    network: Connecting socket://argouml-downloads.tigris.org:80 with proxy=DIRECT
    network: Connecting socket://argouml-downloads.tigris.org:80 with proxy=DIRECT
    java.io.IOException: Error writing to server
        at sun.net.www.protocol.http.HttpURLConnection.writeRequests(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.writeRequests(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
        at java.net.HttpURLConnection.getResponseCode(Unknown Source)
        at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
        at com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(Unknown Source)
        at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
        at com.sun.deploy.net.DownloadEngine._downloadCacheEntry(Unknown Source)
        at com.sun.deploy.cache.ResourceProviderImpl.getResourceCacheEntry(Unknown Source)
        at com.sun.deploy.cache.ResourceProviderImpl.getResourceCacheEntry(Unknown Source)
        at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
        at com.sun.javaws.Launcher.updateFinalLaunchDesc(Unknown Source)
        at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
        at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
        at com.sun.javaws.Launcher.launch(Unknown Source)
        at com.sun.javaws.Main.launchApp(Unknown Source)
        at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
        at com.sun.javaws.Main.access$000(Unknown Source)
        at com.sun.javaws.Main$1.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
    network: Connecting http://argouml-downloads.tigris.org/jws/argouml-latest-stable.jnlp with proxy=DIRECT
    network: Connecting socket://argouml-downloads.tigris.org:80 with proxy=DIRECT
    network: Connecting socket://argouml-downloads.tigris.org:80 with proxy=DIRECT
    java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(Unknown Source)
        at java.net.SocketInputStream.read(Unknown Source)
        at java.io.BufferedInputStream.fill(Unknown Source)
        at java.io.BufferedInputStream.read1(Unknown Source)
        at java.io.BufferedInputStream.read(Unknown Source)
        at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
        at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
        at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
        at java.net.HttpURLConnection.getResponseCode(Unknown Source)
        at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
        at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
        at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source)
        at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
        at com.sun.deploy.net.DownloadEngine._downloadCacheEntry(Unknown Source)
        at com.sun.deploy.cache.ResourceProviderImpl.getResourceCacheEntry(Unknown Source)
        at com.sun.deploy.cache.ResourceProviderImpl.getResourceCacheEntry(Unknown Source)
        at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
        at com.sun.javaws.Launcher.updateFinalLaunchDesc(Unknown Source)
        at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
        at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
        at com.sun.javaws.Launcher.launch(Unknown Source)
        at com.sun.javaws.Main.launchApp(Unknown Source)
        at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
        at com.sun.javaws.Main.access$000(Unknown Source)
        at com.sun.javaws.Main$1.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
    preloader: Construct preloader delegate
    network: Connecting socket://127.0.0.1:52540 with proxy=DIRECT
    #### Java Web Start Error:
    #### Unable to load resource: http://argouml-downloads.tigris.org/jws/argouml-latest-stable.jnlp
解决方案

Problem seems to be in Java 7 IPv6 in Windows environment.Solution was adding: <j2se version="1.6.10+" href="http://java.sun.com/products/autodl/j2se" java-vm-args="-Djava.net.preferIPv4Stack=true"/>

(I also added manually java.exe and javaws.exe to exception list in Windows Firewall and F-Secure.)

Thanks to Richard Conway: http://grokkingis.blogspot.fi/2012/08/work-arounds-windows-firewall-blocking.html?showComment=1349808752760#c2225417445483685032

这篇关于32 位 Windows 7 上的 Java 7 - Java Webstart - 无法加载资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 19:36