I am using a java viewer (applet) to view images in my .NET application.
It was working until latest JRE update. Every client that updated java is throwing the following error (in all browsers):
Here are the Details:
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>
As jatin suggested i checked the static blocks in the initialize folder and it looks like the problem is here:
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");
}
I commented this rows and now java is not throwing erros, but the applet does not work (its not loading images as it should)...
Since i did not develop this app i would appreciate any tip on how to keep this functionality and correct the exception that is thrown after new JRE 1.7 update 21.
Please some help!!