我正在使用java查看器(applet)在我的.NET應用程序中查看圖像。Java查看器在JRE 1.7.0.21更新後無法工作
它一直工作到最新的JRE更新。 每一個客戶端更新的Java拋出下面的錯誤(在所有瀏覽器):
下面是詳細信息:
Java Plug-in 10.21.2.11 Using JRE version 1.7.0_21-b11 Java
HotSpot(TM) Client VM User home directory = C:\Documents and
Settings\Administrator
---------------------------------------------------- c: clear console window f: finalize objects on finalization queue g:
garbage collect h: display this help message l: dump classloader
list m: print memory usage o: trigger logging q: hide console r:
reload policy configuration s: dump system and deployment properties
t: dump thread list v: dump thread stack x: clear classloader
cache 0-5: set trace level to <n>
----------------------------------------------------
Match: beginTraversal Match: digest selected JREDesc: JREDesc[version 1.4+, heap=-1--1, args=-Xmx512m
-Dsun.security.ssl.allowUnsafeRenegotiation=true, href=http://java.sun.com/products/autodl/j2se, 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, x86 [ x86, 32bit ]
JavaFX runtime is: JavaFX 2.2.21 found at C:\Program Files\Java\jre7\
enabled is: true
registered is: true
system is: true
Match: ignoring maxHeap: -1
Match: ignoring InitHeap: -1
Match: digesting vmargs: -Xmx512m -Dsun.security.ssl.allowUnsafeRenegotiation=true
Match: digested vmargs: [JVMParameters: isSecure: false, args: -Xmx512m
-Dsun.security.ssl.allowUnsafeRenegotiation=true]
Match: selecting maxHeap(2): 536870912
Match: JVM args after accumulation: [JVMParameters: isSecure: false, args:
-Dsun.security.ssl.allowUnsafeRenegotiation=true]
Match: digest LaunchDesc: null
Match: digest properties: []
Match: JVM args: [JVMParameters: isSecure: false, args: -Dsun.security.ssl.allowUnsafeRenegotiation=true]
Match: endTraversal ..
Match: JVM args final: -Xmx512m -Dsun.security.ssl.allowUnsafeRenegotiation=true
Match: Running JREInfo Version match: 1.7.0.21 == 1.7.0.21
Match: Running JVM args match the secure subset: have:<-Xmx512m> satisfy want:<-Xmx512m
-Dsun.security.ssl.allowUnsafeRenegotiation=true>
Match: beginTraversal Match: digest selected JREDesc: JREDesc[version 1.4+, heap=-1--1, args=-Xmx512m
-Dsun.security.ssl.allowUnsafeRenegotiation=true, href=http://java.sun.com/products/autodl/j2se, 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, x86 [ x86, 32bit ]
JavaFX runtime is: JavaFX 2.2.21 found at C:\Program Files\Java\jre7\
enabled is: true
registered is: true
system is: true
Match: ignoring maxHeap: -1
Match: ignoring InitHeap: -1
Match: digesting vmargs: -Xmx512m -Dsun.security.ssl.allowUnsafeRenegotiation=true
Match: digested vmargs: [JVMParameters: isSecure: false, args: -Xmx512m
-Dsun.security.ssl.allowUnsafeRenegotiation=true]
Match: selecting maxHeap(2): 536870912
Match: JVM args after accumulation: [JVMParameters: isSecure: false, args:
-Dsun.security.ssl.allowUnsafeRenegotiation=true]
Match: digest LaunchDesc: null
Match: digest properties: []
Match: JVM args: [JVMParameters: isSecure: false, args: -Dsun.security.ssl.allowUnsafeRenegotiation=true]
Match: endTraversal ..
Match: JVM args final: -Xmx512m -Dsun.security.ssl.allowUnsafeRenegotiation=true
Match: Running JREInfo Version match: 1.7.0.21 == 1.7.0.21
Match: Running JVM args match the secure subset: have:<-Xmx512m> satisfy want:<-Xmx512m
-Dsun.security.ssl.allowUnsafeRenegotiation=true>
由於jatin建議我檢查了靜態塊的初始化文件夾它看起來像問題在這裏:
static {
// This gets rid of exception for not using native acceleration
System.setProperty("com.sun.media.jai.disableMediaLib", "true");
System.setProperty("sun.security.ssl.allowUnsafeRenegotiation", "true");
}
我評論這行,現在java不thr由於erros,但小程序不能正常工作(它不應該加載圖像,因爲它應該)...
因爲我沒有開發這個應用程序,我將不勝感激任何技巧,如何保持此功能,並糾正拋出的異常經過新的JRE 1.7更新21.
請一定幫忙!!
您需要提供堆棧跟蹤。 – 2013-04-22 08:57:40
我上次更新了Java,我的應用程序搞砸了。重要的道德:始終使用最後建立的穩定。這意味着,在生產中使用Java 6。 – Jatin 2013-04-22 09:01:59
問題是,客戶端更新了Java ...我通常禁用自動更新,但一些IT人員往往會改變它....現在我擰了。 – no9 2013-04-22 09:07:46