Method and system for checking the consistency of application jar files
First Claim
1. A computer system providing consistency of Java application files, comprising:
- a computer routine, executed by a processor, automatically intercepting each class that is loaded into a subject Java application, for each class, the class having a respective Java Archive (JAR) file, and the computer routine retrieving the respective JAR file; and
a Java version detector operatively coupled to the processor;
(i) computing cyclic redundancy check (CRC) of the retrieved respective JAR file, resulting in a computed CRC value of the respective JAR file;
(ii) if the respective JAR file has been previously encountered by the subject Java application, automatically comparing the computed CRC value to a CRC value of at least one other copy of the respective JAR file, wherein the at least one other copy of the respective JAR file is used by the subject Java application; and
(iii) based on results of the comparing, determining consistency of multiple copies of the respective JAR file used by the subject Java application, and alerting a user when the multiple copies of the respective JAR files are determined to be inconsistent, in a manner dynamically ensuring consistency of the subject Java application files.
1 Assignment
0 Petitions
Accused Products
Abstract
A computer method and system dynamically provide consistency of Java application files. A processor executed routine is configured (e.g., instrumented as an agent) to intercept each class that is loaded into a subject Java application or JVM. The system computes a cyclic redundancy check (CRC) of the respective JAR file surrounding the loaded class. The system compares the computed CRC value to a CRC value of at least one other copy of the respective JAR file. Based on results of the comparison, the system determines consistency (e.g., same version) of the multiple copies of the respective JAR file used by the subject Java application. If the multiple copies of the respective JAR file are determined to be inconsistent, the system alerts the user and/or enables the application to abort. The comparative CRC value may be stored in a repository; and the step of comparing looks up the stored CRC value in the repository.
36 Citations
11 Claims
-
1. A computer system providing consistency of Java application files, comprising:
-
a computer routine, executed by a processor, automatically intercepting each class that is loaded into a subject Java application, for each class, the class having a respective Java Archive (JAR) file, and the computer routine retrieving the respective JAR file; and a Java version detector operatively coupled to the processor; (i) computing cyclic redundancy check (CRC) of the retrieved respective JAR file, resulting in a computed CRC value of the respective JAR file; (ii) if the respective JAR file has been previously encountered by the subject Java application, automatically comparing the computed CRC value to a CRC value of at least one other copy of the respective JAR file, wherein the at least one other copy of the respective JAR file is used by the subject Java application; and (iii) based on results of the comparing, determining consistency of multiple copies of the respective JAR file used by the subject Java application, and alerting a user when the multiple copies of the respective JAR files are determined to be inconsistent, in a manner dynamically ensuring consistency of the subject Java application files. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A computer program product ensuring consistency of Java application files, the computer program product comprising:
-
a computer readable non-transitory storage medium having computer readable program code embodied therewith, the computer readable program code comprising computer readable program code configured to; automatically intercept a class that is loaded into a subject Java application, the class having a respective Java Archive (JAR) file; retrieve the respective JAR file; compute cyclic redundancy check (CRC) of the retrieved respective JAR file resulting in a computed CRC value of the respective JAR file; if the respective JAR file has been previously encountered by the subject Java application, automatically compare the computed CRC value to a CRC value of at least one other copy of the respective JAR file, wherein the at least one other copy of the respective JAR file is used by the subject Java application; and based on results of the comparing, determining consistency of multiple copies of the respective JAR file used by the subject Java application and alerting a user when the multiple copies of the respective JAR files are determined to be inconsistent, such that consistency of the subject Java application files is dynamically ensured.
-
Specification