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

33 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

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

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

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

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

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:重庆富民银行股份有限公司

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

Java class file hybrid encryption method based on dynamic blocking and compression

The invention provides a Java file hybrid encryption method based on dynamic blocking and compression, and relates to the technical field of computer security, and the method comprises the following steps: generating an RSA key pair, and encrypting and storing the key through Base64 coding; the method comprises the following steps: converting a Java file into binary data, dividing the binary data into a plurality of blocks according to RSA encryption length limitation, respectively carrying out Base64 coding and RSA encryption, generating encrypted blocks, integrating the encrypted blocks into an encrypted file, and generating a digital signature by using a private key to ensure the integrity. In the loading process, automatic decryption and signature verification are conducted through the user-defined class loader embedded with decryption logic, all encryption and decryption operations are achieved through a C + + dynamic link library, interaction with a Java program is achieved through a JNI interface, and safety and execution efficiency are improved.
Owner:INSPUR GENERSOFT CO LTD

Java program performance analysis method and device, storage medium and computer equipment

This application discloses a method, apparatus, storage medium, and computer device for Java program performance analysis. The method includes: based on the target process ID and installation path information, invoking Linux native commands of the Java program to execute a first processing task, a second processing task, and a third processing task in parallel. The first processing task is used to determine the target thread, the second processing task is used to determine a thread snapshot of the Java program, and the third processing task is used to determine the fully qualified name of the loaded class of the Java program. The method further involves filtering the thread stack information in the thread snapshot according to the thread information of the target thread, the fully qualified name of the loaded class, and the target package name to determine the exception class; decompiling the exception class to obtain the exception code of the Java program; and highlighting the exception code in the Java program's code display interface. This method can accurately locate system performance leaks without intruding on native programs.
Owner:PEOPLE'S INSURANCE COMPANY OF CHINA

Resource efficient full bootstrap

Systems and methods are disclosed for a resource efficient full bootstrap of a destination database. Instead of executing, e.g., a single Apache Spark job that may encounter errors and require restarting the entire job and reallocation of Spark cluster resources, the data pulls from a data source for a full bootstrap may be divided into smaller jobs. Dividing the set of data pulls into smaller jobs (which may be kept as a simpler Java program as compared to an Apache Spark job) allows only the impacted job to again be executed if an error occurs during execution of that job. In addition, resources to execute the job for bootstrapping a database may be allocated only once, which may allow the resources to be less than if estimated and grown based on errors and multiple attempts to execute the job (such as for an Apache Spark job to bootstrap the database).
Owner:INTUIT INC

Method and device for automatically collecting Java program stack information and medium

The invention discloses a method and device for automatically collecting Java program stack information and a medium, and relates to the technical field of containerized deployment. The method is applied to a Java program running in a container and comprises the steps that a first thread is set and used for collecting CPU usage rates at intervals and then storing the CPU usage rates in a CPU usage rate queue; setting a second thread for judging whether the CPU usage rate in the CPU usage rate queue meets a set condition for judging that the CPU usage rate is high or not; and when a set condition is met, acquiring information of all Java threads, organizing the information into stack information and outputting the stack information. According to the method and device for automatically collecting the Java program stack information and the medium, the Java process stack information is automatically stored and output through asynchronous thread processing when the utilization rate of a CPU is increased, and information support is provided for subsequent manual analysis.
Owner:VTION ANZHUO TECH CO LTD

Java program incremental compilation method and related apparatus

Embodiments of the present application relate to the technical field of software development, and disclose a Java program incremental compilation method, which comprises the following steps: obtaining current submitted project code; performing incremental compilation according to a code package file generated by last compilation and the current submitted project code, to generate a current code package; and sending the current code package to a server. Through the above method, the present application can effectively improve the compilation efficiency.
Owner:CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD +1

An enclave-like method and programmable device

Embodiments of the present application disclose a class isolation method and a programmable device, which are used for implementing class isolation of third-party class libraries for a java program and a service governance plug-in of a service governance system. A first jar package and a second jar package are built for a plug-in system framework, and a third jar package is built for the service governance plug-in. The first jar package corresponds to general capability interface definitions of the plug-in system framework, the second jar package corresponds to general capability interface implementations of the plug-in system framework, and the third jar package corresponds to bytecode enhancement logic in the service governance plug-in. The bytecode enhancement logic can call the general capability interface definitions, and the general capability interface definitions can call the general capability interface implementations. An application class loader loads the first jar package, a framework class loader (a subclass of the application class loader) loads the second jar package, and a target class loader (a class loader other than the framework class loader and its subclasses) loads the java program and the third jar package, so that class isolation of the third-party class libraries between the java program and the general capability interface implementations is implemented.
Owner:HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD

Java program integrity measurement and start control method and device based on JavaAgent

The invention discloses a Java program integrity measurement and start control method and device based on JavaAgent, and the method comprises the steps: setting an administrator password, an initialization path of a white list and an environment variable by using a configuration management module, scanning a Java program in the initialization path by using an initialization module after the setting is completed, obtaining an absolute path of a Java program file, and starting the Java program file according to the absolute path; calling an algorithm interface to calculate a hash value of a byte code corresponding to the Java program, and recording the hash value as an expected value and an absolute path into a white list file one by one; and starting the measurement module, loading data in the white list file into a memory, generating a white list cache table, starting an integrity measurement function and starting a control function. According to the method and the device, integrity measurement and start control of the Java program can be realized, and the protection effects of security enhancement, practicability and easiness in use are achieved.
Owner:NO 30 INST OF CHINA ELECTRONIC TECH GRP CORP

Java deserialization vulnerability detection method

The invention provides a method for detecting a Java deserialization vulnerability. Comprising the steps that Java program semantic information is extracted through static analysis, and a code attribute graph is constructed; processing field storage and loading statements by adopting an edge pruning optimization strategy, removing redundant data stream edges, and generating direct connection edges to simplify the topological structure of the call graph; dynamically evaluating pollution propagation weights of method parameters and return values based on a controllability analysis algorithm, and implementing path reachability dynamic pruning; a complete attack chain from a deserialization entrance to a danger method is quickly positioned through a bottom-up reverse traversal mechanism of a graph database. According to the method, the path explosion problem is inhibited through an edge pruning strategy, the call chain tracking precision is improved in combination with context sensitive analysis, the detection efficiency and the path coverage rate are balanced by utilizing controllable dynamic pruning, and the method is suitable for the network threat that serialized data is easy to steal, intercept and tamper in an unsafe network environment. A high-precision and low-false-alarm detection scheme is provided, and collaborative optimization of detection efficiency and reliability is realized.
Owner:BEIJING INST OF TECH

Application program interface document generation method and device, equipment and medium

The invention discloses an application program interface document generation method and device, equipment and a medium, and relates to the technical field of computers. The method comprises the following steps: scanning a source code of a target Java program based on a Java package scanning technology, and identifying a class and a method with a target Java annotation; extracting network interface information defined by the target Java annotation from the identified class and method, and converting the network interface information into structured document model data; the network interface information comprises at least one of a uniform resource locator, a request parameter, a request header and a response parameter of the application program interface; and determining a target document format specified by a user, and generating the document model data into an application program interface document conforming to the target document format by utilizing a corresponding document generation strategy. Through the technical scheme of the invention, the HTTP API documents in various document formats can be automatically generated, and the content of the HTTP API documents is completely consistent with that of the HTTP API.
Owner:CETC CYBERSPACE SECURITY TECH CO LTD