Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for detecting robustness of JAVA application program

A technology of application program and detection method, applied in the field of information processing, can solve the problems of poor system stability of JAVA application program, poor robustness of JAVA application program, not found, etc., and achieve the effect of improving robustness

Active Publication Date: 2014-02-05
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF4 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Sometimes, a JAVA application depends on multiple java class files with the same attribute information but different internal logic, because the JVM judges whether the java class file has been loaded according to the attribute information of the java class file when loading the JAVA application program. If it has been loaded, it will not be loaded again. Therefore, it will cause the JAVA application to appear at runtime such as "No such class (java.lang.NoClassDefFoundError)" or "No such method (java.lang.NoSuchMethodException)" errors, and, since the loading order of each java class file in the JAVA application program can only be determined when the JAVA application program is actually running, this type of error can only be found when the JAVA application program is running
[0005] It can be seen that under the existing JVM class loading mechanism, the robustness of the JAVA application is poor, and the robustness of the JAVA application can only be discovered when it is actually running, which is not conducive to improving the robustness of the JAVA application. Causes poor stability of systems based on JAVA applications

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for detecting robustness of JAVA application program
  • Method and device for detecting robustness of JAVA application program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] figure 1 It is a flowchart of a method for detecting the robustness of a JAVA application program provided by an embodiment of the present invention.

[0019] like figure 1 As shown, the process includes:

[0020] Step 101, scan the java class file attribute information contained in each jar package that the JAVA application to be detected depends on, and record the list of java class files contained in each jar package according to the scanning result.

[0021] The java class file attribute information is the information based on which the JVM is used to distinguish different java class files when loading the java class files in the JAVA application program. Because the current JVM distinguishes different java class files based on the file name, signature and path information Therefore, in order to adapt to the current JVM, in the embodiment of the present invention, the attribute information of the java class file generally includes: the file name, signature and pat...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses a method and a device for detecting robustness of a JAVA application program. The method comprises the following steps of scanning java class file attribute information contained in each jar packet on which a to-be-detected JAVA application program depends, and recording the java class file list of each jar packet; respectively comparing the java class file list of each jar packet with java class file lists of other jar packets to determine java class files of which the attribute information contained in two compared jar packets is same; outputting a robustness detection result according to the java class files of which the attribute information is same. By applying the method and the detection disclosed by the invention, the robustness of the JAVA application program can be detected before actual operation, and therefore, the robustness of the JAVA application program and the stability of a system based on the JAVA application program can be helped to be improved.

Description

technical field [0001] The present application relates to the technical field of information processing, in particular to a method and device for detecting the robustness of a JAVA application program. Background technique [0002] JAVA is an object-oriented programming language that can write cross-platform application software. JAVA applications often depend on multiple JAR packages, which usually include java class files. The java class files are mainly used to make Java applications more suitable for the network in terms of platform independence and network mobility. The task of the aspect is to provide Java applications with services in binary form that are independent of the underlying host platform. [0003] When the JAVA virtual machine (Java Virtual Machine, JVM) loads the JAVA application, the JVM judges whether the java class file has been loaded according to the attribute information of the java class file. If the JVM finds that a java class file has been loaded...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/36
Inventor 陈福洪彭定邦张银全
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products