Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

48 results about "Java program" patented technology

Java null pointer dereference detection method based on static analysis

The invention discloses a Java null pointer de-reference detection method based on static analysis, which realizes more accurate null pointer anomaly detection through combination of a hierarchical analysis framework and reachability verification. A to-be-detected target program is processed, and an intermediate representation IR and an intra-process control flow graph CFG are obtained; null value data flow analysis and alias analysis in the process are carried out based on the IR and the CFG, and a corresponding data flow result is generated; executing flow insensitive pointer analysis according to a data flow result, dynamically constructing a pointer flow graph of a Java program, spreading null values on the graph, and synchronously generating an interprocess control flow graph; potential null variables are extracted from the PFG, dereferencing statements related to the variables are collected, and a statement sequence which conforms to null value propagation of a control flow is searched on an ICFG graph in combination with a CFL-Reach algorithm; and for different code modes, for different types of statement sequences, performing reachability verification by adopting a rule-driven solver, and outputting a defect detection report.
Owner:NANJING UNIV

Memory leak detection method and device, electronic equipment and storage medium

The invention discloses a memory leak detection method and device, electronic equipment and a storage medium, and relates to the technical field of big data or other related fields, and the method comprises the steps that in the execution process of a target process, a memory event of the target process is monitored, and a monitoring result is obtained, the memory event is used for indicating the change conditions of the virtual memory and the physical memory; establishing a virtual memory allocation table and a physical memory allocation table based on a monitoring result; based on a preset detection rule, the virtual memory allocation table and the physical memory allocation table are compared to obtain a comparison result, and the comparison result is used for recording R stack identifiers; and taking R call stacks corresponding to the R stack identifiers as suspected leak memories, and generating a memory leak detection result. According to the method and the device, the technical problem that the memory leak cannot be effectively detected when the Java program runs due to the fact that the monitoring and analysis capability on the Java memory object is insufficient in the related technology is solved.
Owner:INDUSTRIAL AND COMMERCIAL BANK OF CHINA

Java deserialization vulnerability mining method and device

The invention provides a Java deserialization vulnerability mining method and device, and the method comprises the steps: carrying out the static analysis of a Java program file of a to-be-tested software system, so as to construct a program feature map for the Java program file; searching the program feature map to search for a suspicious function call sequence; evaluating the suspicious function call sequence, and updating the program feature map in real time according to an evaluation result; and searching the program feature map updated in real time, and if the search output is a complete call sequence from a deserialization function to a danger function, generating an effective load corresponding to the complete call sequence in a three-dimensional variation mode according to a search result. According to the method, the dynamic test result is utilized to improve the program feature map obtained by static program analysis, the dynamic search strategy is used on the program feature map to screen the suspicious function call sequence, and the search result is more thoroughly verified, so that the accuracy and efficiency of Java deserialization vulnerability mining are improved.
Owner:TSINGHUA UNIVERSITY

Method and system for realizing real-time synchronization of dynamic files based on Linux

The invention relates to a method and a system for realizing real-time synchronization of dynamic files based on Linux, and the method comprises the following steps: recording real-time change of a file system by using a Java program to generate a log file, monitoring the log file by using a real-time synchronization script, and dynamically generating and executing a Linux command according to information in a log to synchronize the file. Checking and creating a target file path, executing a synchronization operation in a background, recording a synchronization result as a synchronization result log file, comparing the log file with the synchronization result log file through a consistency checking script, and re-synchronizing data with wrong data consistency according to a comparison result. Therefore, the technical scheme is adopted. According to the technical scheme disclosed by the invention, the real-time data synchronization time can be shortened, real-time monitoring can be carried out without a complicated real-time monitoring script, and the connection number can be limited, so that the accuracy and consistency of the synchronization file are ensured, and the data credibility of the Linux system is improved.
Owner:CHINA CITIC BANK CO LTD

Method and system for cobol to java program conversion based on syntax tree

PendingCN122411953APathPingSource code file
The application discloses a COBOL-to-Java program conversion method and system based on a syntax tree, belongs to the technical field of computer program language conversion, and comprises the following steps: obtaining a COBOL source program file to be converted and configuration rules; performing lexical analysis and syntax analysis to generate an abstract syntax tree; converting COBOL syntax elements into corresponding Java semantic representations according to pre-defined semantic mapping rules; establishing an accurate access chain of a main program and COPYBOOK internal variables through variable path tracking; detecting and solving naming conflicts of COBOL different-level same-name variables based on a scope tree, and renaming variables by adding a parent class name prefix; and generating the converted Java semantic representations into a Java source code file. The application realizes high-fidelity and high-automation COBOL-to-Java conversion, significantly reduces the migration cost of a legacy system, and generates code with strong readability and excellent performance.
Owner:SHANDONG CITY COMMERCIAL BANK COOP ALLIANCE CO LTD

A method for database proxy protection and dynamic setting

The present invention relates to a method for database proxy protection and dynamic configuration. The method includes: obtaining data sources, user configuration information, and rule configuration information by periodically calling an external interface, and dynamically creating database proxy services with different proxy ports; the proxy service periodically obtains relevant data with its own proxy port as a key from the process that created the proxy service, and periodically obtains the current data source, user configuration information, and rule configuration information; after the proxy service obtains the information, it compares it with the last cached information, modifies the data source generation library, and sets the access users of the proxy database according to changes in user data; for users who need to be configured through YAML, the yamlConfig in the context reading part of the source code is modified, so that the information in the Java program memory variables actually read is changed, thereby realizing dynamic modification of the user. Through this solution, a secure database proxy can be realized, and users accessing the proxy database can be dynamically controlled.
Owner:CHINA ELECTRONICS CLOUD DIGITAL INTELLIGENCE TECH CO LTD +1

Container resource quota recommendation method and system for Java program optimization

The invention discloses a container resource quota recommendation method for Java program optimization, and belongs to the technical field of computers. The method comprises the following steps: acquiring monitoring data; the monitoring data comprises a CPU utilization rate and a memory usage amount; performing CPU resource quota recommendation according to the CPU utilization rate; and performing memory resource quota recommendation according to the memory usage amount. According to the method, the peak value of the memory usage amount of the JVM heap is accurately predicted through the LSTM model on the basis of the operation characteristics and the actual monitoring data of the Java program, and a more accurate CPU and memory quota recommendation method is provided. Compared with a traditional method, the resource demand of the Java program can be predicted more accurately, the problems of waste and insufficiency of resources are avoided, and the resource utilization rate of the Kubernetes cluster is remarkably improved.
Owner:HANGZHOU HARMONYCLOUD TECH CO LTD

CRON-based routing machines and processes to schedule and execute java code excerpts across fault-tolerant load-balanced distributed servers running JVM namespaces

A routing process schedules and executes Java code excerpts across backend servers. A route table contains routes to be executed in JVM namespaces on servers and identifies for each route a Jar file containing applicable classes and methods to be executed at a CRON time. During execution, methods are retrieved from each applicable class and are executed to extract data from backend devices. The servers transform the extracted data into frontend data and load it onto frontend storage devices. Only the classes and methods in the Jar file for a route need be executed. Complete Java programs need not be run.
Owner:BANK OF AMERICA CORP

A method for simplifying the addition, deletion, modification and query of one-to-many association tables in Java

The present invention discloses a method for simplifying the addition, deletion, modification, and query of one-to-many association tables in a Java program. The method comprises the following steps: S1: designing an association table; S2: defining a basic entity class; S3: defining a business entity class; S4: defining a basic database access layer interface; S5: defining an association table database access interface; S6: defining an association table operation interface; and S7: adding addition, deletion, modification, and query methods for the association table to the association table operation interface, and completing the logic code in Java. The present invention reduces the need for repeated method definitions and SQL writing in association table functions during Java business development, shortening R&D time and saving development costs. The unified definition increases code readability, facilitates subsequent unified modification and logic iteration, and improves the versatility and reusability of association tables.
Owner:CHENGDU FANGLIAN CLOUD CODE TECH CO LTD

Method and device for rapidly collecting and analyzing slow query reason of MySQL database in Java

The invention discloses a method and device for rapidly collecting and analyzing slow query reasons of a MySQL database in Java, and relates to the technical field of database analysis. The method comprises the steps that a service thread is constructed, and the service thread is achieved through a database access framework mybatis interceptor and used for processing a query method with execution time exceeding a specified threshold value; and constructing an acquisition thread, and when the acquisition thread is triggered by the service thread, acquiring an execution plan and table establishment information in a database according to the SQL information transmitted by the service thread, and then outputting the execution plan and the table establishment information. According to the method and device for rapidly collecting and analyzing the slow query reason of the MySQL database in the Java, the slow query information and reason of the MySQL database are actively collected and analyzed at the Java program end, the collected information is more accurate, the information content is richer, noise is lower, and the method and device are very suitable for analyzing the problems of unreasonable database SQL and the like.
Owner:VTION ANZHUO TECH CO LTD

A feedback method and device based on ring deployment

The present invention discloses a feedback method and device based on ring deployment, which relates to the field of computer technology. It is used to solve the problems that in the actual deployment process of a Java program, running in a single-process manner cannot achieve load balancing, and a Java program using single-node deployment cannot be highly available. In response to a first message carrying a request sent by a client, a first Docker container IP address matching the first source IP address included in the first message is selected from the IP addresses of multiple Docker containers included in a server cluster, and the first Docker container IP address is used as a second destination IP address to replace the first destination IP address to form a second message; the second message carrying the request is sent to a first Docker container corresponding to the second destination IP address, so that a load balancer runs the request from multiple JAVA programs included in the first Docker container according to the request and selects a currently available first JAVA program to obtain a data packet corresponding to the request.
Owner:XIAN SECLOVER INFORMATION TECH CO LTD

Intermediate representation construction method for Java program analysis

PendingCN120315756AReverse engineeringCreation/generation of source codeLattice algorithmTranslation algorithm
The invention discloses a Java program analysis-oriented intermediate representation construction method, which comprises the following steps of: performing single assignment form conversion on a Java bytecode to be processed to obtain a single assignment Java bytecode, and constructing a typeless intermediate representation through an abstract interpretation translation algorithm based on the single assignment Java bytecode. Constructing a type constraint and a type constraint graph by using the typeless intermediate representation based on a Java type check rule, and solving the type constraint graph by using a pruned lattice algorithm to obtain a typeless intermediate representation; according to the method, a common byte code mode is well utilized through single assignment transformation and a pruning-based lattice algorithm. Java byte codes based on a stack type virtual machine are converted into typeless three-address code intermediate representation based on a register virtual machine based on abstract interpretation, and generation of redundant statements is avoided as much as possible. And a pruning lattice algorithm is adopted, so that the type of an unknown type variable can be accurately and quickly determined, and a type reasoning result is ensured to be safe.
Owner:NANJING UNIV

Method and device for loading byte code file and electronic equipment

The invention relates to the technical field of data processing, and discloses a method for loading a bytecode file, which comprises the following steps: identifying a performance bottleneck point of a code according to an obtained original bytecode file; judging whether the code has a performance bottleneck according to the performance bottleneck point; and according to a judgment result, obtaining a target bytecode file, and loading the target bytecode file through the virtual machine to run the code. According to the method, the byte code execution level is deeply optimized, and the Java byte code is dynamically analyzed and optimized, so that the code execution efficiency is improved, and the performance of a Java program is improved. The invention further discloses a device for loading the bytecode file and electronic equipment.
Owner:QINGDAO HAIER TECH +2

Method and apparatus for automatically generating authorization script of data operation right

The application relates to the field of financial technology, and provides a data operation permission authorization script automatic generation method and related equipment, the data operation permission authorization script automatic generation method obtains all business data tables related to a storage process through a target interface of the storage process, so that all data operations performed on each business data table are obtained through matching processing of the business data tables in the storage process, and finally, a data control script template is preset to automatically generate permissions for granting a user of a business system to perform related data operations on the business data tables, so that in the conversion process from the storage process to a java program code, the authorization script of the related data operation permission on the business data table can be automatically generated, the human consumption in the conversion process is reduced, and the efficiency of converting the storage process is improved.
Owner:CHINA PING AN LIFE INSURANCE CO LTD

Score management system and operation method thereof

The invention discloses a score management system and an operation method thereof, and the system comprises an input module which transmits an input score signal to a processing module; the processing module is used for executing a preset processing operation on the input score signal by utilizing a webpage front-end technology when receiving the input score signal to obtain a plurality of single-family original scores, and transmitting the plurality of single-family original scores to the network database; the network database is used for storing the original score of the single family; the input module transmits an export signal to the network database and the export module; and the export module is used for calling a preset Java program by utilizing a go language according to the export signal and a network database to generate an export file. According to the system, input score signals are processed through a webpage front-end technology, and single-family original scores are generated; and the preset Java program is called through the go language, so that the score file in a complex format is generated, and the requirements of the system in more scenes are met.
Owner:上海公安学院

A Java program dynamic update method, device, equipment, medium and product

The present invention discloses a method, apparatus, device, medium and product for dynamically updating a Java program. The method for dynamically updating a Java program comprises: in response to a target class file being called, obtaining information about a class loader associated with the latest version of the target class file in a class knowledge graph; the class knowledge graph includes class files and class knowledge information associated with the class files, and the class knowledge information includes information about the path where the class file is located and the class loader associated with the path; if information about a class loader associated with the latest version of the target class file does not exist in the class knowledge graph, searching a class loader associated with the target class file in a class loader decision tree as a target class loader; the class loader decision tree is constructed based on the execution order of a custom class loader and the default loading system of the current application; and loading the target class file through the target class loader. The technical solution of the embodiment of the present invention can meet the requirements for dynamic updating of applications.
Owner:HANGZHOU NEWGRAND TECHNOLOGY CO LTD

Dynamic updating method, device and equipment for java program, medium and product

The invention discloses a java program dynamic updating method and device, equipment, a medium and a product. The java program dynamic updating method comprises the steps that in response to the fact that a target class file is called, information of a class loader associated with the latest version of the target class file is obtained in a class knowledge graph; the class knowledge graph comprises class files and class knowledge information associated with the class files, and the class knowledge information comprises paths where the class files are located and information of class loaders associated with the paths; under the condition that the information of the class loader associated with the latest version of the target class file does not exist in the class knowledge graph, searching the class loader associated with the target class file in the class loader decision tree to serve as a target class loader; the class loader decision tree is constructed based on the execution sequence of the user-defined class loaders and the default loading system of the current application program; and loading the target class file through the target class loader. According to the technical scheme, the dynamic updating requirement of the application program can be met.
Owner:HANGZHOU NEWGRAND TECHNOLOGY CO LTD

A method to complete the customized development of business system forms without modifying the code

The present invention discloses a method for completing customized development of business system forms without modifying code. The method comprises the following steps: a user selects a business form to be edited on a visual editing page for editing; the background stores the modified form elements in Redis storage and modifies the database table structure corresponding to the business form; the user restarts the business system to which the business form belongs; operates the customized form page in the business system and clicks "Save"; a Java program reads the modified element set of the business form stored in Redis storage and dynamically writes the modified elements into a Class file; a Java Agent loads the modified Class file into a JVM; and the Java program dynamically generates an SQL statement based on the data in the new form and saves the data. The present invention can complete form customization without changing any code, simply by performing a visual drag-and-drop operation on the page and restarting the business system.
Owner:江苏数兑科技有限公司

Automated inspection and alarm method and system

The present invention relates to the field of monitoring and operation and maintenance technology, and specifically to an automated inspection and alarm method and system, wherein the system includes: a generation module for generating an SQL data table requiring configuration of inspection points; an integration module for integrating the XXL-JOB scheduled task tool or a custom Java internal scheduled task into a Java program; a storage module for storing the SQL data table requiring inspection into the inspection point table via the XXL-JOB scheduled task tool or a custom Java internal scheduled task; a run module for executing data in the inspection point table in the Java program to obtain operation data, and using an ORM framework to query the data source corresponding to the operation data for the data requiring inspection to obtain the query results; and an analysis module for analyzing and comparing the query results with the expected results, and printing the analysis and comparison results to a log using a Java program. The present invention solves the technical problems of low efficiency and low accuracy of inspection and alarm in the prior art.
Owner:重庆富民银行股份有限公司

A method and system for automatically uploading images without IE browser

The present invention provides an automatic image uploading method and system skipping the IE browser, comprising: using a background Java program of a security system server to receive order information from a client, and generating a JS file of image data in the order information; encrypting the image data based on a dynamic encryption code table, and generating a digital signature for the encrypted image data; using the background Java program to automatically trigger an image uploading program driven by an ActiveX control by executing the JS file, and uploading the encrypted image data and the digital signature to a target storage location. The present invention executes the JS file of the image data through the background Java program, directly calls a third-party ActiveX control for image transmission, skips the IE browser where the control is located, and uses an upload tool to automatically find the image file for upload, thereby improving the automation of image uploading; and ensures the security of data transmission through encrypted transmission and digital signature verification.
Owner:BAO DAFANG TECH CO LTD

Siemens PLC data acquisition system and method

The invention relates to a Siemens PLC data acquisition system and method, and belongs to the technical field of automatic control systems and methods. According to the technical scheme, the system comprises a point location configuration module, a data acquisition module, a data processing module and a user interface, wherein the point location configuration module, the data acquisition module, the data processing module and the user interface are connected in sequence; the point location configuration module configures a PLC point location address, and the data acquisition module establishes communication connection with a Siemens PLC through a Java program and acquires data in the PLC; the user interface is provided with a user interaction interface. The method has the advantages that data interaction is carried out through the Java program and the Siemens PLC, real-time monitoring and data collection of the operation state of the industrial equipment are achieved, the efficiency and accuracy of data collection are improved, good expandability and usability are achieved, and the method is suitable for various application scenes where data needs to be collected from the Siemens PLC.
Owner:HANDAN HANGANG GRP XINGQI TECH DEV CO LTD +1

Transforming a Java program using a symbolic description language model

Techniques for transforming Java source code using a symbolic description language are disclosed, including: obtaining a set of Java source code corresponding to a Java program; generating a symbolic description language (SDL) model of the set of Java source code; generating, based on the SDL model, a transformed program including at least one transformation relative to the Java program.
Owner:ORACLE INT CORP

A lighting system fault diagnosis method based on data analysis

The present invention discloses a lighting system fault diagnosis method based on data analysis, which specifically relates to the field of intelligent lighting, including steps such as data collection, processing, analysis, judgment and feedback. The method first collects data through environmental sensors, lighting equipment sensors and user interaction devices, performs protocol conversion through the edge gateway, and then uses a Python program to clean the data and maps it to a standardized meta-model through a Java program. Then, a linear regression model is used to predict lighting demand, and the equipment status is evaluated through a random forest model to obtain a power prediction value and a health probability prediction value. Then, lighting optimization and fault judgment are performed based on the power prediction value and the health probability prediction value. When the predicted power is lower than the actual power by more than 10%, the lamp is adjusted, and an early warning is triggered when the equipment health probability is ≥0.6. Finally, instructions are sent through the MQTT protocol to automatically adjust the lamp and notify the operation and maintenance personnel to achieve efficient fault diagnosis and energy-saving optimization.
Owner:BWEETECH ELECTRONICS TECH (SHANGHAI) CO LTD

Transforming Java programs using symbolic description language models

The invention discloses a technology for transforming Java source codes by using a symbol description language. The technology comprises the following steps: obtaining a group of Java source codes corresponding to a Java program; generating a symbol description language (SDL) model of the group of Java source codes; a transformed program including at least one transformation with respect to the Java program is generated based on the SDL model.
Owner:ORACLE INT CORP

Instruction-driven Java runtime service logic protection method and system

The invention discloses a Java runtime service logic protection method and system based on instruction driving, and relates to the technical field of Java program protection. In order to solve the defect that the existing Java program protection technology can only realize static protection and has cracking and stealing risks, the method comprises the following steps of: performing unitized splitting on target service logic to form a plurality of service units; protecting the order of execution instructions of the service unit through instruction description, and encrypting and storing an instruction file to form an encrypted instruction file; when the target service logic needs to be executed, the dynamic instruction parser loads the corresponding encrypted instruction file according to the current service scene, and reduces the content of the encrypted instruction file into a structured execution instruction sequence through a decryption process; and extracting the execution instructions in the decrypted execution instruction sequence, and dynamically finishing the target business logic according to the sequence of the execution instructions and the control logic. The service logic protection method and device are mainly used for protecting the service logic written by the Java program.
Owner:YANTAI HAIYI SOFTWARE

Java program code protection method, device, equipment and storage medium

The present invention relates to a Java program code protection method, apparatus, device, and storage medium, comprising establishing an encrypted JAR package and storing the encrypted JAR package in a to-be-called folder; modifying a Java program loader based on the encrypted JAR package in the to-be-called folder; encrypting the Java program code to be encrypted based on the modified JAR package; and modifying a JVM class decryption component to decrypt the encrypted Java program code. The Java program code protection method, apparatus, device, and storage medium provided by the present invention improve the difficulty of exporting bytecode and reduce the probability of program errors by establishing an encrypted JAR package, modifying the program loader based on the encrypted JAR package, encrypting the Java program code to be encrypted based on the modified program loader, and modifying the class decryption component to decrypt the encrypted Java program code.
Owner:WUHAN DAMENG DATABASE

Function call analysis method and device based on ASM bytecode and medium

The invention discloses a function call analysis method and device based on ASM byte codes and a medium, belongs to the technical field of computer software code development, and aims to solve the technical problem of how to analyze Java byte codes and accurately deduce a call relation between functions on the premise of not running a program.The technical scheme includes that a Jav a program analysis configuration file is newly added; function method calling information is collected; regular matching of function method calling information is carried out, wherein an InvokeMetal Matcher class is newly added to define a function matching expression; the method comprises the following steps of: analyzing function method substitute information: calling a newly added InvokeMedia Analyser class analysis function, and calling the newly added InvokeMedia Analyser class analysis function; a function method is output to call an information analysis result; an InvokeMetal ResultOutput class output function call result is newly added to a specified file; and a Java program code analysis process is executed, specifically, the InvokeMedia AnalyserUtils tool class is newly added to load the corresponding configuration file, and the Java program code analysis process is executed.
Owner:SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD

Instruction-driven java runtime business logic protection method and system

The application discloses a Java runtime business logic protection method and system based on instruction driving, and relates to the technical field of Java program protection. In order to solve the defects that the existing Java program protection technology can only be statically protected and has the risk of being cracked and stolen, a target business logic is unitized and split to form a plurality of business units; the order of execution instructions of the business units is protected through instruction description; the instruction files are encrypted and stored to form encrypted instruction files; when the target business logic needs to be executed, a dynamic instruction parser loads the corresponding encrypted instruction file according to a current business scene, and the content of the encrypted instruction file is restored to a structured execution instruction sequence through a decryption process; the execution instructions in the decrypted execution instruction sequence are extracted, and the target business logic is dynamically completed according to the order of the execution instructions and control logic. The application is mainly used for protecting the business logic written by a Java program.
Owner:YANTAI HAIYI SOFTWARE

Remote interaction method and device based on HTTP (Hyper Text Transport Protocol) and medium

The embodiment of the invention discloses a remote interaction method and equipment based on an HTTP (Hyper Text Transport Protocol) and a medium, belongs to the technical field of remote interaction, and solves the problems that an existing remote interaction device is generally single in function and is difficult to meet the remote interaction requirement of a user in a mass data interaction scene. On the remote server, modifying the configuration file and the operation white list based on the client information; the remote server is also provided with a jar package compiled based on a JAVA program and a start-stop script; receiving a remote interaction request sent by a client through an HTTP protocol, and comparing the remote interaction request with the modified configuration file and the operation white list; if the comparison result meets the preset condition, executing corresponding operation on the remote server based on the remote interaction request; the corresponding operation at least comprises one of remote command execution and file uploading or downloading; and after the operation is executed successfully, returning an execution result to the client through HTTP response.
Owner:HIGHGO SOFTWARE

Cross-platform code snippet cutting optimization system

A cross-platform code snippet cutting optimization system comprises an implantation module, a collection module, a detection module, a reproduction module and a screening module, when it is detected that the running performance of a JAVA source code is different on two different target platforms, performance sampling points are implanted in the source code, the source code is divided into a plurality of code blocks, and the code blocks are stored in a database; collecting operation performance data of each code block, and analyzing and cutting out target code blocks causing performance differences; and circularly executing the steps, taking the target code block as a source code, continuing iterative analysis to reduce the scale of the target code block, and finally outputting the target code block with the scale meeting the requirement and causing performance difference. The method is suitable for various tests for checking program defects, the debugging technology is applied to JAVA program performance analysis, and the application scene and efficiency of the JAVA program are automatically optimized.
Owner:SHANGHAI JIAOTONG UNIV