Webstarts在1.8.0u9x中直接从服务器下载类?

时间:2016-04-25 12:35:47

标签: java java-8 java-web-start

我刚刚将我的java版本更新为1.8.0u92,现在我的小型java webstart应用程序(从https完全签名)启动速度非常慢(超过4分钟)。

我在我的webstart中启用了跟踪,并看到webstart尝试从我的服务器下载每个单独的类文件:

security: Istrusted: http://example.com/deploy/w/w.jnlp true
cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@111b04e: 3
cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@111b04e: 4
network: Cache entry not found [url: http://example.com/deploy/w/org/apache/log4j/Category.class, version: null]
network: Connecting http://example.com/deploy/w/org/apache/log4j/Category.class with proxy=DIRECT
network: Connecting socket://example.com:80 with proxy=DIRECT
network: Cache entry not found [url: http://example.com/deploy/w/org/apache/log4j/Category.class, version: null]
network: Connecting http://example.com/deploy/w/org/apache/log4j/Category.class with proxy=DIRECT
network: Connecting socket://example.com:80 with proxy=DIRECT
network: Cache entry not found [url: http://example.com/deploy/w/org/apache/log4j/spi/AppenderAttachable.class, version: null]
network: Connecting http://example.com/deploy/w/org/apache/log4j/spi/AppenderAttachable.class with proxy=DIRECT
network: Connecting socket://example.com:80 with proxy=DIRECT
network: Cache entry not found [url: http://example.com/deploy/w/org/apache/log4j/spi/AppenderAttachable.class, version: null]
network: Connecting http://example.com/deploy/w/org/apache/log4j/spi/AppenderAttachable.class with proxy=DIRECT
network: Connecting socket://example.com:80 with proxy=DIRECT

...

我创建的一个简单的测试用例工作正常,webstart只下载jar并且启动速度很快。

当我降级到1.8.0u77时,一切都恢复正常。

我当然清理了所有缓存。

此问题似乎与1.8.0u91或1.8.0u92中发生变化的内容有关。我查看了错误修复但找不到多少。

任何人都有一个好主意?

更新 我在我的测试用例中添加了一个jar依赖项

<jar href="mainapp_lib/log4j-1.2.17.jar" />

现在我的webstart开始从服务器下载该依赖项中的每个单个类文件。这导致在服务器端有许多404,因为只有jar可用。

0 个答案:

没有答案