2013-05-02 34 views
3

我有一个小程序,一个月前工作得很好,但现在挂起在启动。它锁定任何浏览器,因此必须终止进程。只有这一个小程序会导致问题。签名JNLP小程序挂载

控制台日志显示jnlp文件的加载和重新加载。不知道这是否是一个问题。没有例外被抛出。我从来没有达到安全检查。底部是这样的:

basic: Relaunch because: [currently running JRE doesn't satisfy (version/args)] 

这是控制台日志的底部部分。

network: Created version ID: 1.7.0.21 
network: Created version ID: 1.7 
network: Created version ID: 2.2.21 
network: Cache entry found [url: http://WS001LT9138PRD/web4/lib/configurator.jnlp, version: null] prevalidated=false/0 
cache: Adding MemoryCache entry: http://WS001LT9138PRD/web4/lib/configurator.jnlp 
temp: new XMLParser with source: 
temp: <?xml version="1.0" encoding="utf-8"?> 
<jnlp spec="6.0+" href="configurator.jnlp"> 

    <security> 
     <all-permissions /> 
    </security> 
    <resources> 
     <java version="1.6+" max-heap-size="512m" java-vm-args="-Xss=256K"/> 
     <jar href="configurator.jar" /> 
    </resources> 
    <applet-desc name="ConfigApplet" main-class="com.configsc.applet.ConfigApplet" 
     width="1152" height="864"> 
    </applet-desc> 
</jnlp> 

temp: 

returning ROOT as follows: 

<jnlp spec="6.0+" href="configurator.jnlp"> 

    <security> 
    <all-permissions/> 
    </security> 
    <resources> 
    <java version="1.6+" max-heap-size="512m" java-vm-args="-Xss=256K"/> 
    <jar href="configurator.jar"/> 
    </resources> 
    <applet-desc name="ConfigApplet" main-class="com.configsc.applet.ConfigApplet" width="1152" height="864"/> 
</jnlp> 
network: Created version ID: 1.6+ 
network: Created version ID: 1.9 
temp: returning LaunchDesc from XMLFormat.parse(): 

<jnlp spec="6.0+" codebase="http://WS001LT9138PRD/web4/lib/" href="http://WS001LT9138PRD/web4/lib/configurator.jnlp"> 

    <security> 
    <all-permissions/> 
    </security> 
    <update check="timeout" policy="always"/> 
    <resources> 
    <java max-heap-size="536870912" java-vm-args="-Xss=256K" version="1.6+"/> 
    <jar href="http://WS001LT9138PRD/web4/lib/configurator.jar" download="eager" main="false"/> 
    </resources> 
    <applet-desc name="ConfigApplet" main-class="com.configsc.applet.ConfigApplet" documentbase="http://ws001lt9138prd/cseg/web/ajax/cfg/config_applet2.jsp?ui=applet&cmd=CFG&username=admin&product_id=TTT" width="1152" height="864"/> 
</jnlp> 
cache: Resource http://WS001LT9138PRD/web4/lib/configurator.jnlp has expired. 
network: Connecting http://WS001LT9138PRD/web4/lib/configurator.jnlp with proxy=DIRECT 
network: Connecting http://WS001LT9138PRD:80/ with proxy=DIRECT 
network: Connecting http://WS001LT9138PRD/web4/lib/configurator.jnlp with cookie "uuid=1a852b20-5ad7-411e-bb1a-837770f71c73; uuidinstance=1" 
network: ResponseCode for http://WS001LT9138PRD/web4/lib/configurator.jnlp : 304 
network: Encoding for http://WS001LT9138PRD/web4/lib/configurator.jnlp : null 
network: Disconnect connection to http://WS001LT9138PRD/web4/lib/configurator.jnlp 
temp: new XMLParser with source: 
temp: <?xml version="1.0" encoding="utf-8"?> 
<jnlp spec="6.0+" href="configurator.jnlp"> 

    <security> 
     <all-permissions /> 
    </security> 
    <resources> 
     <java version="1.6+" max-heap-size="512m" java-vm-args="-Xss=256K"/> 
     <jar href="configurator.jar" /> 
    </resources> 
    <applet-desc name="ConfigApplet" main-class="com.configsc.applet.ConfigApplet" 
     width="1152" height="864"> 
    </applet-desc> 
</jnlp> 

temp: 

returning ROOT as follows: 

<jnlp spec="6.0+" href="configurator.jnlp"> 

    <security> 
    <all-permissions/> 
    </security> 
    <resources> 
    <java version="1.6+" max-heap-size="512m" java-vm-args="-Xss=256K"/> 
    <jar href="configurator.jar"/> 
    </resources> 
    <applet-desc name="ConfigApplet" main-class="com.configsc.applet.ConfigApplet" width="1152" height="864"/> 
</jnlp> 
network: Created version ID: 1.6+ 
network: Created version ID: 1.9 
temp: returning LaunchDesc from XMLFormat.parse(): 

<jnlp spec="6.0+" codebase="http://WS001LT9138PRD/web4/lib/" href="http://WS001LT9138PRD/web4/lib/configurator.jnlp"> 

    <security> 
    <all-permissions/> 
    </security> 
    <update check="timeout" policy="always"/> 
    <resources> 
    <java max-heap-size="536870912" java-vm-args="-Xss=256K" version="1.6+"/> 
    <jar href="http://WS001LT9138PRD/web4/lib/configurator.jar" download="eager" main="false"/> 
    </resources> 
    <applet-desc name="ConfigApplet" main-class="com.configsc.applet.ConfigApplet" documentbase="http://ws001lt9138prd/cseg/web/ajax/cfg/config_applet2.jsp?ui=applet&cmd=CFG&username=admin&product_id=TTT" width="1152" height="864"/> 
</jnlp>  

cache: JNLPPreverifyClassLoader.initialize: FAILED: http://WS001LT9138PRD/web4/lib/configurator.jar 
    basic: Plugin2ClassLoader.addURL2 called for http://WS001LT9138PRD/web4/lib/configurator.jar 
    basic: Plugin2ClassLoader.drainPendingURLs addURL called for http://WS001LT9138PRD/web4/lib/configurator.jar 
    network: LaunchDownload: concurrent downloads from LD: 4 
    network: Total size to download: -1 
    security: Security check for progress jars: allSigned=true 
    security: Blacklist revocation check is enabled 
    security: blacklist: created: NEED_LOAD, lastModified: 1367506003185 
    security: blacklist: hasBeenModifiedSince 0 (we have 1367506003185) 
    cache: Trying to update in place C:\Users\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\3\149e9b83-2d476b62.idx 
    cache: Upgrade writing to disk for C:\Users\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\3\149e9b83-2d476b62 
    security: blacklist: check contains 3COxySh3Q4+QRZlBYHxrjd5s0shhO2/5P3Oghwz5s0U=, state now NEED_LOAD 
    security: blacklist: loadCache 
    security: blacklist: not found in cache 
    security: Trusted libraries list check is enabled 
    security: Trusted libraries list file not found 
    cache: Create from verifier: JarSigningData{hasOnlySignedEntries=true, hasSingleCodeSource=true, hasMissingSignedEntries=false} 
    cache: Upgrade of entry done 
    cache: readIndexFile returning success 
    network: Cache entry found [url: http://WS001LT9138PRD/web4/lib/configurator.jar, version: null] prevalidated=false/0 
    cache: Adding MemoryCache entry: http://WS001LT9138PRD/web4/lib/configurator.jar 
    cache: Resource http://WS001LT9138PRD/web4/lib/configurator.jar has expired. 
    network: Connecting http://WS001LT9138PRD/web4/lib/configurator.jar with proxy=DIRECT 
    network: Connecting http://WS001LT9138PRD/web4/lib/configurator.jar with cookie "uuid=1a852b20-5ad7-411e-bb1a-837770f71c73; uuidinstance=1" 
    network: ResponseCode for http://WS001LT9138PRD/web4/lib/configurator.jar : 304 
    network: Encoding for http://WS001LT9138PRD/web4/lib/configurator.jar : null 
    network: Disconnect connection to http://WS001LT9138PRD/web4/lib/configurator.jar 
    network: Download Progress: jarsDone: 1 
     Match: beginTraversal 
    network: Created version ID: 1.6+ 
    network: Created version ID: 1.7 
    Match: digest selected JREDesc: JREDesc[version 1.6+, heap=-1-536870912, args=-Xss=256K, href=null, sel=false, null, null], JREInfo: JREInfo for index 0: 
     platform is: 1.7 
     product is: 1.7.0_21 
     location is: http://java.sun.com/products/autodl/j2se 
     path is: C:\Program Files\Java\jre7\bin\javaw.exe 
     args is: 
     native platform is: Windows, amd64 [ x86_64, 64bit ] 
     JavaFX runtime is: JavaFX 2.2.21 found at C:\Program Files\Java\jre7\ 
     enabled is: true 
     registered is: true 
     system is: true 

     Match: selecting maxHeap: 536870912 
     Match: ignoring InitHeap: -1 
     Match: digesting vmargs: -Xss=256K 
    security: --- parseCommandLine converted : -Xss=256K 
    into: 
    [-Xss=256K] 
     Match: digested vmargs: [JVMParameters: isSecure: true, args: -Xss=256K] 
     Match: JVM args after accumulation: [JVMParameters: isSecure: true, args: -Xss=256K] 
     Match: digest LaunchDesc: http://WS001LT9138PRD/web4/lib/configurator.jnlp 
     Match: digest properties: [] 
     Match: JVM args: [JVMParameters: isSecure: true, args: -Xss=256K] 
     Match: endTraversal .. 
     Match: JVM args final: -Xmx512m -Xss=256K 
    network: Created version ID: 1.7.0.21 
    network: Created version ID: 1.7 
    network: Created version ID: 2.2.21 
     Match: Running JREInfo Version match: 1.7.0.21 == 1.7.0.21 
     Match: Running JVM args mismatch: have:<-Xmx512m -Xss256K> !satisfy want:<-Xmx512m -Xss=256K> 
    basic: LaunchDesc location: http://WS001LT9138PRD/web4/lib/configurator.jnlp 
    network: Created version ID: 6.0+ 
    network: Created version ID: 7.0 
    basic: Relaunch because: [currently running JRE doesn't satisfy (version/args)] 
    basic: Saving session state to C:\Users\JONATH~1.BRI\AppData\Local\Temp\session7801545931076966323 
    basic: Remote relaunch: LaunchJVMAppletMessage{appletID=1, conversationID=1, javaHome=C:\Program Files\Java\jre7, launchTime=15798419052, sendKill=false, [sun.plugin2.main.client.PluginMain, write_pipe_name=jpi2_pid8472_pipe5,read_pipe_name=jpi2_pid8472_pipe4]} 
    security: --- parseCommandLine converted : 
    into: 
    [] 
    security: --- parseCommandLine converted : -Xmx512m -Xss=256K 
    into: 
    [-Xmx512m, -Xss=256K] 
    network: Created version ID: 2.0+ 
    network: Created version ID: 1.6.0.10 
    basic: RemoteJVMLauncher.start(), pipe=Pipe{transport=WindowsNamedPipe: server: false; readPipe: jpi2_pid8472_pipe2, readBufferSz: 4096; writePipe: jpi2_pid8472_pipe3, writeBufferSz: 4096, initiatingSide=false} message: LaunchJVMAppletMessage{appletID=1, conversationID=1, javaHome=C:\Program Files\Java\jre7, launchTime=15798419052, sendKill=false, [sun.plugin2.main.client.PluginMain, write_pipe_name=jpi2_pid8472_pipe5,read_pipe_name=jpi2_pid8472_pipe4]} 
    basic: Thread[RemoteJVMLauncher-1,5,main] running... 
    basic: RemoteJVMLauncher.afterStart(): initializing streamers 
    handleLaunchJVM(): RemoteJVMLauncer.setCallBack for 1 
    security: blacklist: hasBeenModifiedSince 1367517921973 (we have 1367506003185) 
    network: CleanupThread used 36730 us 
    handleLaunchJVM(): now unregisterApplet 1 
    basic: PluginMain.unregisterApplet: 1 from mananger [email protected] 
+0

请尝试遵循Oracle的[Java SE 7桌面技术疑难解答指南](http://docs.oracle.com/javase/7/docs/webnotes/tsg/TSG-Desktop/html/plugin.html)并查看是否它有助于诊断您的问题。从描述中,也许Java 7u21与您的应用程序不兼容,并且将Java系统更新为Java 7u21已导致您的问题。 – jewelsea 2013-05-02 19:56:00

+0

我相信是这样。我们将在不久的将来更新为非自行注册的小程序。在开发过程中,我相信我们可以通过不致电JNLP启动 – jebrick 2013-05-03 13:20:34

+0

解决此问题吗? – jsosnowski 2017-08-02 06:40:02

回答

1

答案是,从Java 7_21的,可以不再使用自签名applet与JNLP。我们的开发工作是不使用JNLP来调用applet。

+1

*“您不能再使用JNLP使用自签名applet”*我认为这是不正确的,并且通过测试我自己的一个自签名应用程序来证实它不正确。 - 只要用户在可怕的对话框出现时单击确定,它就可以在标准安全设置下正常工作。有关更多信息,请参见[Java 7 Update 21详细安全性改进](http://blog.eisele.net/2013/04/java-7-update-21-security-improvements.html)。 – 2013-05-03 16:14:27

0

你在你的java-VM-ARGS指定-Xss = 256K时,你应该已经指定-Xss256K(没有等号)。