gpt4 book ai didi

java - 在没有互联网连接的网络中生产环境中通过 JNLP 应用程序启动缓慢

转载 作者:太空宇宙 更新时间:2023-11-04 10:41:52 25 4
gpt4 key购买 nike

我正在开发一个通过 JNLP 启动的应用程序,在没有 Internet 访问的网络上的生产环境中运行它时,我发现运行速度很奇怪。
下载并验证后,应用程序会提取 jnlp 文件中列出的 jar 并卡住。
在按 5 激活详细登录后,在 java 控制台中,会出现条目,表明正在从我们的应用程序中使用的 jar 内部搜索 Apache Web 服务器是否存在类文件。

...

10.33.65.110 - - [20/Feb/2018:13:26:03 +0100] "GET /krzysiek/faflute_kr.jnlp HTTP/1.1" 200 92089 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0"
10.33.65.110 - - [20/Feb/2018:13:26:17 +0100] "GET /krzysiek/faflute_kr.jnlp HTTP/1.1" 200 92090 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:17 +0100] "GET /krzysiek/lib/animal-sniffer-annotations-1.14.jar HTTP/1.1" 200 7508 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:17 +0100] "GET /krzysiek/lib/win32/rxtxSerial.dll.jar HTTP/1.1" 200 60720 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:17 +0100] "GET /krzysiek/lib/ant-launcher-1.7.1.jar HTTP/1.1" 200 16282 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:18 +0100] "GET /krzysiek/lib/antlr-2.7.7.jar HTTP/1.1" 200 462659 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:17 +0100] "GET /krzysiek/faflute_kr.jar HTTP/1.1" 200 10313262 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:18 +0100] "GET /krzysiek/lib/aopalliance-1.0.jar HTTP/1.1" 200 8782 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:18 +0100] "GET /krzysiek/lib/avalon-framework-impl-4.2.0.jar HTTP/1.1" 200 66741 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:18 +0100] "GET /krzysiek/lib/axis-jaxrpc-1.4.jar HTTP/1.1" 200 39196 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:18 +0100] "GET /krzysiek/lib/axis-saaj-1.4.jar HTTP/1.1" 200 24784 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:18 +0100] "GET /krzysiek/lib/barcode4j-2.1.jar HTTP/1.1" 200 288807 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:18 +0100] "GET /krzysiek/lib/batik-anim-1.8.jar HTTP/1.1" 200 412567 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:18 +0100] "GET /krzysiek/lib/batik-awt-util-1.8.jar HTTP/1.1" 200 323135 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:18 +0100] "GET /krzysiek/lib/batik-bridge-1.8.jar HTTP/1.1" 200 566207 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:18 +0100] "GET /krzysiek/lib/batik-css-1.8.jar HTTP/1.1" 200 279680 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:19 +0100] "GET /krzysiek/lib/batik-dom-1.8.jar HTTP/1.1" 200 153465 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:19 +0100] "GET /krzysiek/lib/batik-ext-1.8.jar HTTP/1.1" 200 15446 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:17 +0100] "GET /krzysiek/lib/ant-1.7.1.jar HTTP/1.1" 200 1389265 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:19 +0100] "GET /krzysiek/lib/batik-gvt-1.8.jar HTTP/1.1" 200 156356 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:19 +0100] "GET /krzysiek/lib/batik-parser-1.8.jar HTTP/1.1" 200 63542 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:19 +0100] "GET /krzysiek/lib/batik-script-1.8.jar HTTP/1.1" 200 22204 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:19 +0100] "GET /krzysiek/lib/batik-svg-dom-1.8.jar HTTP/1.1" 200 230731 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:19 +0100] "GET /krzysiek/lib/batik-xml-1.8.jar HTTP/1.1" 200 31326 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:19 +0100] "GET /krzysiek/lib/bcmail-jdk14-1.38.jar HTTP/1.1" 200 200414 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:19 +0100] "GET /krzysiek/lib/batik-util-1.8.jar HTTP/1.1" 200 118762 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:19 +0100] "GET /krzysiek/lib/bcmail-jdk14-138.jar HTTP/1.1" 200 200414 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:19 +0100] "GET /krzysiek/lib/bcprov-jdk14-138.jar HTTP/1.1" 200 1596904 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:19 +0100] "GET /krzysiek/lib/bctsp-jdk14-1.38.jar HTTP/1.1" 200 27087 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:18 +0100] "GET /krzysiek/lib/axis-1.4.jar HTTP/1.1" 200 1665622 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:19 +0100] "GET /krzysiek/lib/bcprov-jdk14-1.38.jar HTTP/1.1" 200 1596904 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:19 +0100] "GET /krzysiek/lib/castor-core-1.3.3.jar HTTP/1.1" 200 56959 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:19 +0100] "GET /krzysiek/lib/castor-xml-1.3.3.jar HTTP/1.1" 200 922709 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:20 +0100] "GET /krzysiek/lib/commons-beanutils-1.9.0.jar HTTP/1.1" 200 245717 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:20 +0100] "GET /krzysiek/lib/commons-cli-1.0.jar HTTP/1.1" 200 35256 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:20 +0100] "GET /krzysiek/lib/commons-cli-1.4.jar HTTP/1.1" 200 59514 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:26:20 +0100] "GET /krzysiek/lib/commons-codec-1.5.jar HTTP/1.1" 200 80632 "-" "JNLP/1.7.0 javaws/11.144.2.01 (<internal>) Java/1.8.0_144"

...

此应用程序中使用的所有依赖项均通过 Gradle 下载并导出到我们的 Apache Web 服务器上的 lib 文件夹,因此这不应该是依赖项的问题。
并且每次在生产环境中运行在网络上而无法访问Internet时都会出现这种情况。

以下是应用程序在启动期间卡住时来自 Apache 的日志:

...

10.33.65.110 - - [20/Feb/2018:13:33:40 +0100] "HEAD /krzysiek/lib/META-INF/services/javax.xml.parsers.SAXParserFactory HTTP/1.1" 404 194 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:40 +0100] "HEAD /krzysiek/lib/META-INF/services/javax.xml.parsers.SAXParserFactory HTTP/1.1" 404 194 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:40 +0100] "GET /krzysiek/lib/META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration HTTP/1.1" 404 587 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:40 +0100] "GET /krzysiek/lib/META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration HTTP/1.1" 404 588 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:40 +0100] "HEAD /krzysiek/lib/META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration HTTP/1.1" 404 195 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:40 +0100] "HEAD /krzysiek/lib/META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration HTTP/1.1" 404 194 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:40 +0100] "HEAD /krzysiek/lib/META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration HTTP/1.1" 404 194 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:40 +0100] "HEAD /krzysiek/lib/META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration HTTP/1.1" 404 194 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:40 +0100] "HEAD /krzysiek/lib/META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration HTTP/1.1" 404 194 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:40 +0100] "HEAD /krzysiek/lib/META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration HTTP/1.1" 404 194 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:40 +0100] "HEAD /krzysiek/lib/META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration HTTP/1.1" 404 194 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:40 +0100] "HEAD /krzysiek/lib/META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration HTTP/1.1" 404 194 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:40 +0100] "HEAD /krzysiek/lib/META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration HTTP/1.1" 404 194 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:40 +0100] "HEAD /krzysiek/lib/META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration HTTP/1.1" 404 194 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:40 +0100] "HEAD /krzysiek/lib/META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration HTTP/1.1" 404 194 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:40 +0100] "HEAD /krzysiek/lib/META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration HTTP/1.1" 404 194 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:41 +0100] "GET /krzysiek/lib/org/hibernate/cache/spi/QueryCache.class HTTP/1.1" 404 559 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:41 +0100] "GET /krzysiek/lib/org/hibernate/cache/spi/QueryCache.class HTTP/1.1" 404 559 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:41 +0100] "GET /krzysiek/lib/org/hibernate/cache/spi/UpdateTimestampsCache.class HTTP/1.1" 404 570 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:41 +0100] "GET /krzysiek/lib/org/hibernate/cache/spi/UpdateTimestampsCache.class HTTP/1.1" 404 570 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:41 +0100] "GET /krzysiek/lib/org/hibernate/dialect/function/SQLFunctionRegistry.class HTTP/1.1" 404 575 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:41 +0100] "GET /krzysiek/lib/org/hibernate/dialect/function/SQLFunctionRegistry.class HTTP/1.1" 404 575 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:41 +0100] "GET /krzysiek/lib/org/hibernate/internal/TypeLocatorImpl.class HTTP/1.1" 404 563 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:41 +0100] "GET /krzysiek/lib/org/hibernate/internal/TypeLocatorImpl.class HTTP/1.1" 404 563 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:41 +0100] "GET /krzysiek/lib/org/hibernate/engine/query/spi/QueryPlanCache.class HTTP/1.1" 404 570 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:41 +0100] "GET /krzysiek/lib/org/hibernate/engine/query/spi/QueryPlanCache.class HTTP/1.1" 404 570 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:41 +0100] "GET /krzysiek/lib/org/hibernate/internal/CoreMessageLogger_$logger_pl_PL.class HTTP/1.1" 404 579 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:41 +0100] "GET /krzysiek/lib/org/hibernate/internal/CoreMessageLogger_$logger_pl_PL.class HTTP/1.1" 404 579 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:41 +0100] "GET /krzysiek/lib/org/hibernate/internal/CoreMessageLogger_$logger_pl.class HTTP/1.1" 404 576 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:41 +0100] "GET /krzysiek/lib/org/hibernate/internal/CoreMessageLogger_$logger_pl.class HTTP/1.1" 404 576 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:41 +0100] "GET /krzysiek/lib/org/hibernate/internal/util/collections/BoundedConcurrentHashMap.class HTTP/1.1" 404 589 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:41 +0100] "GET /krzysiek/lib/org/hibernate/internal/util/collections/BoundedConcurrentHashMap.class HTTP/1.1" 404 589 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:41 +0100] "GET /krzysiek/lib/org/hibernate/internal/util/collections/BoundedConcurrentHashMap$EvictionListener.class HTTP/1.1" 404 606 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:41 +0100] "GET /krzysiek/lib/org/hibernate/internal/util/collections/BoundedConcurrentHashMap$EvictionListener.class HTTP/1.1" 404 606 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:41 +0100] "GET /krzysiek/lib/org/hibernate/internal/util/collections/BoundedConcurrentHashMap$Eviction.class HTTP/1.1" 404 598 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:41 +0100] "GET /krzysiek/lib/org/hibernate/internal/util/collections/BoundedConcurrentHashMap$Eviction.class HTTP/1.1" 404 598 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:42 +0100] "GET /krzysiek/lib/org/hibernate/internal/util/collections/BoundedConcurrentHashMap$Eviction$1.class HTTP/1.1" 404 600 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:42 +0100] "GET /krzysiek/lib/org/hibernate/internal/util/collections/BoundedConcurrentHashMap$Eviction$1.class HTTP/1.1" 404 600 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:42 +0100] "GET /krzysiek/lib/org/hibernate/internal/util/collections/BoundedConcurrentHashMap$Eviction$2.class HTTP/1.1" 404 600 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:42 +0100] "GET /krzysiek/lib/org/hibernate/internal/util/collections/BoundedConcurrentHashMap$Eviction$2.class HTTP/1.1" 404 600 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:42 +0100] "GET /krzysiek/lib/org/hibernate/internal/util/collections/BoundedConcurrentHashMap$Eviction$3.class HTTP/1.1" 404 600 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:42 +0100] "GET /krzysiek/lib/org/hibernate/internal/util/collections/BoundedConcurrentHashMap$Eviction$3.class HTTP/1.1" 404 600 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:42 +0100] "GET /krzysiek/lib/org/hibernate/internal/util/collections/BoundedConcurrentHashMap$EvictionPolicy.class HTTP/1.1" 404 604 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:42 +0100] "GET /krzysiek/lib/org/hibernate/internal/util/collections/BoundedConcurrentHashMap$EvictionPolicy.class HTTP/1.1" 404 604 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:42 +0100] "GET /krzysiek/lib/org/hibernate/internal/util/collections/BoundedConcurrentHashMap$NullEvictionListener.class HTTP/1.1" 404 610 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:42 +0100] "GET /krzysiek/lib/org/hibernate/internal/util/collections/BoundedConcurrentHashMap$NullEvictionListener.class HTTP/1.1" 404 610 "-" "Java/1.8.0_144"
10.33.65.110 - - [20/Feb/2018:13:33:42 +0100] "GET /krzysiek/lib/org/hibernate/internal/util/collections/BoundedConcurrentHashMap$Segment.class HTTP/1.1" 404 597 "-" "Java/1.8.0_144"

...

当启动此应用程序的主机连接到互联网时,它会快速加载,并将所有 jar 下载到本地计算机后,它会从本地缓存中读取所有内容。

在 Java 控制台的客户端,当应用程序在生产环境中卡住时,如下所示:

...

network: Connecting http://localhost/krzysiek/lib/META-INF/services/javax.xml.parsers.DocumentBuilderFactory with proxy=DIRECT
network: Connecting http://localhost/krzysiek/lib/META-INF/services/javax.xml.parsers.DocumentBuilderFactory with proxy=DIRECT
network: Connecting http://localhost/krzysiek/lib/META-INF/services/javax.xml.parsers.DocumentBuilderFactory with proxy=DIRECT
network: Connecting http://localhost/krzysiek/lib/META-INF/services/javax.xml.parsers.DocumentBuilderFactory with proxy=DIRECT
network: Connecting http://localhost/krzysiek/lib/META-INF/services/javax.xml.transform.TransformerFactory with proxy=DIRECT
network: Connecting http://localhost/krzysiek/lib/META-INF/services/javax.xml.transform.TransformerFactory with proxy=DIRECT
network: Cache entry not found [url: http://localhost/krzysiek/log4j.properties, version: null]
network: Connecting http://localhost/krzysiek/log4j.properties with proxy=DIRECT
network: Cache entry not found [url: http://localhost/krzysiek/lib/org/apache/log4j/PatternLayoutBeanInfo.class, version: null]
network: Connecting http://localhost/krzysiek/lib/org/apache/log4j/PatternLayoutBeanInfo.class with proxy=DIRECT
network: Cache entry not found [url: http://localhost/krzysiek/lib/org/apache/log4j/PatternLayoutBeanInfo.class, version: null]
network: Connecting http://localhost/krzysiek/lib/org/apache/log4j/PatternLayoutBeanInfo.class with proxy=DIRECT
network: Connecting socket://localhost:80 with proxy=DIRECT
network: Cache entry not found [url: http://localhost/krzysiek/lib/org/apache/log4j/PatternLayoutBeanInfo.class, version: null]
network: Connecting http://localhost/krzysiek/lib/org/apache/log4j/PatternLayoutBeanInfo.class with proxy=DIRECT
network: Connecting socket://localhost:80 with proxy=DIRECT
network: Cache entry not found [url: http://localhost/krzysiek/lib/org/apache/log4j/PatternLayoutBeanInfo.class, version: null]
network: Connecting http://localhost/krzysiek/lib/org/apache/log4j/PatternLayoutBeanInfo.class with proxy=DIRECT
network: Connecting socket://localhost:80 with proxy=DIRECT
network: Cache entry not found [url: http://localhost/krzysiek/lib/org/apache/log4j/LayoutBeanInfo.class, version: null]
network: Connecting http://localhost/krzysiek/lib/org/apache/log4j/LayoutBeanInfo.class with proxy=DIRECT
network: Connecting socket://localhost:80 with proxy=DIRECT
network: Cache entry not found [url: http://localhost/krzysiek/lib/org/apache/log4j/LayoutBeanInfo.class, version: null]
network: Connecting http://localhost/krzysiek/lib/org/apache/log4j/LayoutBeanInfo.class with proxy=DIRECT
network: Connecting socket://localhost:80 with proxy=DIRECT
network: Cache entry not found [url: http://localhost/krzysiek/lib/org/apache/log4j/LayoutBeanInfo.class, version: null]
network: Connecting http://localhost/krzysiek/lib/org/apache/log4j/LayoutBeanInfo.class with proxy=DIRECT
network: Connecting socket://localhost:80 with proxy=DIRECT
network: Cache entry not found [url: http://localhost/krzysiek/lib/org/apache/log4j/LayoutBeanInfo.class, version: null]
network: Connecting http://localhost/krzysiek/lib/org/apache/log4j/LayoutBeanInfo.class with proxy=DIRECT
network: Connecting socket://localhost:80 with proxy=DIRECT

...

在具有 Internet 连接的主机上,如下所示(较旧的日志):

...
security: Grant connect perm for http://localhost/lib/jcalendar.jar : java.security.Permissions@b093f5 (
("java.net.URLPermission" "http://localhost:80/-" "*:*")
("java.net.URLPermission" "http://localhost:80" "*:*")
)

ruleset: finding Deployment Rule Set for appRef=
type: JNLP
title: Faflute Inpolpapier
location: http://localhost/faflute-kr.jnlp
htmlLocation: null
jnlpLocation: http://localhost/faflute-kr.jnlp
anchorURL: http://localhost/faflute-kr.jnlp, codeRef =
jar location: http://localhost/lib/jcalendar.jar
jar version: null
ruleset: no exception applies, returning Rule: DefaultRule
security: JAVAWS AppPolicy Permission requested for: http://localhost/lib/jcalendar.jar
security: Missing Codebase manifest attribute for: http://localhost/lib/jcalendar.jar
security: Missing Application-Library-Allowable-Codebase manifest attribute for: http://localhost/lib/jcalendar.jar
security: Istrusted: http://localhost/faflute-kr.jnlp false
security: Missing Codebase manifest attribute for: http://localhost/lib/jcalendar.jar
security: Missing Application-Library-Allowable-Codebase manifest attribute for: http://localhost/lib/jcalendar.jar
security: Validate the certificate chain using CertPath API
security: Verified non-main jar: http://localhost/lib/jcalendar.jar
cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@f7815ec2: 3
cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@f7815ec2: 4
cache: Clean up the reference queue: http://localhost/lib/commons-beanutils-1.8.3.jar
cache: deregisterReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@6f275de9: 3
cache: Clean up the reference queue: http://localhost/lib/FDBHelper.jar
cache: deregisterReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@ce67b02c: 3
cache: Clean up the reference queue: http://localhost/lib/jcalendar.jar
cache: deregisterReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@f7815ec2: 3
cache: Clean up the reference queue: http://localhost/lib/commons-beanutils-1.8.3.jar
cache: deregisterReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@6f275de9: 2
cache: Clean up the reference queue: http://localhost/lib/FDBHelper.jar
cache: deregisterReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@ce67b02c: 2
cache: Clean up the reference queue: http://localhost/lib/jcalendar.jar
cache: deregisterReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@f7815ec2: 2
security: Grant connect perm for http://localhost/lib/hibernate/antlr-2.7.7.jar : java.security.Permissions@1ba1cb1 (
("java.net.URLPermission" "http://localhost:80/-" "*:*")
("java.net.URLPermission" "http://localhost:80" "*:*")
)

ruleset: finding Deployment Rule Set for appRef=
type: JNLP
title: Faflute Inpolpapier
location: http://localhost/faflute-kr.jnlp
htmlLocation: null
jnlpLocation: http://localhost/faflute-kr.jnlp
anchorURL: http://localhost/faflute-kr.jnlp, codeRef =
jar location: http://localhost/lib/hibernate/antlr-2.7.7.jar
jar version: null
ruleset: no exception applies, returning Rule: DefaultRule
security: JAVAWS AppPolicy Permission requested for: http://localhost/lib/hibernate/antlr-2.7.7.jar
security: Missing Codebase manifest attribute for: http://localhost/lib/hibernate/antlr-2.7.7.jar
security: Missing Application-Library-Allowable-Codebase manifest attribute for: http://localhost/lib/hibernate/antlr-2.7.7.jar
security: Istrusted: http://localhost/faflute-kr.jnlp false
security: Missing Codebase manifest attribute for: http://localhost/lib/hibernate/antlr-2.7.7.jar
security: Missing Application-Library-Allowable-Codebase manifest attribute for: http://localhost/lib/hibernate/antlr-2.7.7.jar
security: Validate the certificate chain using CertPath API
security: Verified non-main jar: http://localhost/lib/hibernate/antlr-2.7.7.jar
cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@a9980041: 3
cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@a9980041: 4
security: Grant connect perm for http://localhost/lib/dynamicreports/dynamicreports-core-5.0.0.jar : java.security.Permissions@334aff (
("java.net.URLPermission" "http://localhost:80/-" "*:*")
("java.net.URLPermission" "http://localhost:80" "*:*")
)

ruleset: finding Deployment Rule Set for appRef=
type: JNLP
title: Faflute Inpolpapier
location: http://localhost/faflute-kr.jnlp
htmlLocation: null
jnlpLocation: http://localhost/faflute-kr.jnlp
anchorURL: http://localhost/faflute-kr.jnlp, codeRef =
jar location: http://localhost/lib/dynamicreports/dynamicreports-core-5.0.0.jar
jar version: null
ruleset: no exception applies, returning Rule: DefaultRule
security: JAVAWS AppPolicy Permission requested for: http://localhost/lib/dynamicreports/dynamicreports-core-5.0.0.jar
security: Missing Codebase manifest attribute for: http://localhost/lib/dynamicreports/dynamicreports-core-5.0.0.jar
security: Missing Application-Library-Allowable-Codebase manifest attribute for: http://localhost/lib/dynamicreports/dynamicreports-core-5.0.0.jar
security: Istrusted: http://localhost/faflute-kr.jnlp false
security: Missing Codebase manifest attribute for: http://localhost/lib/dynamicreports/dynamicreports-core-5.0.0.jar
security: Missing Application-Library-Allowable-Codebase manifest attribute for: http://localhost/lib/dynamicreports/dynamicreports-core-5.0.0.jar
security: Validate the certificate chain using CertPath API
security: Verified non-main jar: http://localhost/lib/dynamicreports/dynamicreports-core-5.0.0.jar
cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@e5c2dec9: 3
cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@e5c2dec9: 4
security: Grant connect perm for http://localhost/lib/dynamicreports/jasperreports-6.4.0.jar : java.security.Permissions@1d67f0e (
("java.net.URLPermission" "http://localhost:80/-" "*:*")
("java.net.URLPermission" "http://localhost:80" "*:*")
)

...

你们的申请中是否有类似的情况?

最佳答案

很难说。几种可能性:尝试在 deployment.properties 中设置超时。文件。

部署.javaws.update.timeout=1;部署.安全.撤销.检查=NO_CHECK部署.security.validation.timeout=1;

关于java - 在没有互联网连接的网络中生产环境中通过 JNLP 应用程序启动缓慢,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48887752/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com