2013-04-22 32 views
1

我正在使用java查看器(applet)在我的.NET應用程序中查看圖像。Java查看器在JRE 1.7.0.21更新後無法工作

它一直工作到最新的JRE更新。 每一個客戶端更新的Java拋出下面的錯誤(在所有瀏覽器):

enter image description here

下面是詳細信息:

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.

請一定幫忙!!

+1

您需要提供堆棧跟蹤。 – 2013-04-22 08:57:40

+0

我上次更新了Java,我的應用程序搞砸了。重要的道德:始終使用最後建立的穩定。這意味着,在生產中使用Java 6。 – Jatin 2013-04-22 09:01:59

+0

問題是,客戶端更新了Java ...我通常禁用自動更新,但一些IT人員往往會改變它....現在我擰了。 – no9 2013-04-22 09:07:46

回答

6

嘗試使用來自可信認證中心的證書籤署您的小程序。看here更多信息:

在2013年4月與Java SE 7中更新21開始,所有的Java Applet和 Web Start應用程序應該使用受信任的證書籤名。

0

是下列任何真實的:

1)Web服務器使用SSL(看起來是由上面的輸出真實的,只是想確認) 2)Web服務器FQDN不在地址,URL匹配的主機名(即使用DNS別名)

如果2爲真,在地址欄中使用FQDN而不是別名時是否工作?

+0

1)網絡服務器(IIS)未使用SSL。這是一個Intranet網絡應用程序... – no9 2013-04-29 07:27:16

+0

2)用戶連接到webapp作爲http://192.168.1.100/WebApp/login.aspx – no9 2013-04-29 07:28:35

0

轉到控制面板,打開Java控制面板,轉到安全選項卡並降低它。

完成。