This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JNLP and Web Start and the fly likes Error with Java WebStart Signed Jars on 1.7.0_40 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Error with Java WebStart Signed Jars on 1.7.0_40" Watch "Error with Java WebStart Signed Jars on 1.7.0_40" New topic
Author

Error with Java WebStart Signed Jars on 1.7.0_40

Nayan Son
Greenhorn

Joined: Feb 28, 2014
Posts: 1
We are aware of the issue with jar softlinker
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6967414
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6805618

and have used following class (found on web and modified to take care of JAVA 7 as well.)



When we launch the application with JRE6 it works fine. But the problem is with JRE7. When the application is launched with JRE7 we get below exception in the log. From the exception we know that the jars are not hard referenced and that the user can have problems if the jars get garbage collected. We have a release next week and need to find a work around for this issue.

java.lang.NoSuchMethodException: com.sun.deploy.cache.CachedJarFile.getSigners()
at java.lang.Class.getDeclaredMethod(Unknown Source)
at com.tullib.ui.main.JarSignersHardLinker.callNoArgMethod(JarSignersHardLinker.java:96)
at com.tullib.ui.main.JarSignersHardLinker.makeHardSignersRef(JarSignersHardLinker.java:45)
at com.tullib.ui.main.JarSignersHardLinker$1.run(JarSignersHardLinker.java:262)
at java.lang.Thread.run(Unknown Source)
java.lang.NoSuchFieldException: signersRef
at java.lang.Class.getDeclaredField(Unknown Source)
at com.tullib.ui.main.JarSignersHardLinker.makeHardLink(JarSignersHardLinker.java:69)
at com.tullib.ui.main.JarSignersHardLinker.makeHardSignersRef(JarSignersHardLinker.java:46)
at com.tullib.ui.main.JarSignersHardLinker$1.run(JarSignersHardLinker.java:262)
at java.lang.Thread.run(Unknown Source)
This exception is repeated 52 times (for all the JAR's).

We have made sure that all the 52 jars/files (except the JNLP itself) are signed properly and that the java cache is cleard before the application is launched.

JAVA version used is JDK 7u40 on windows machine.

Options tried are:
Removing the jdk.certpath.disabledAlgorithms=MD2, RSA keySize < 1024 from java.securites file.
Checking the jar signer certificate. Signer certificate uses SHA1withRSA as signing algorithm.


Note:
THE SOURCE CODE IS COMPILED IN JAVA 5u11 AND RUN IN JAVA 7u40
We have observed one more difference. With JRE6, when we run the same piece of code, it first loades JAVAWS.jar, Deploy.jar and plugin .jar from java/jre6/lib path but with JRE7 these jars are not loaded.


This has been tried in both 64 and 32 bits java version with no luck.

Any help here is really appreciated.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error with Java WebStart Signed Jars on 1.7.0_40
 
Similar Threads
Problem reading custom attributes from the manifest file...
TreeSet adding twice null
parse()-Method of NumberFormat-Object throws Exception
SCJP Brainteaser (9)
Classloader and casting, how to?