CN114090427A - System exception handling method and device - Google Patents

System exception handling method and device Download PDF

Info

Publication number
CN114090427A
CN114090427A CN202111277737.4A CN202111277737A CN114090427A CN 114090427 A CN114090427 A CN 114090427A CN 202111277737 A CN202111277737 A CN 202111277737A CN 114090427 A CN114090427 A CN 114090427A
Authority
CN
China
Prior art keywords
environment information
information
operating environment
abnormal event
user terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111277737.4A
Other languages
Chinese (zh)
Inventor
王小华
骆雪娇
李金龙
孙勇杰
唐畅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Dahengqin Technology Development Co Ltd
Original Assignee
Zhuhai Dahengqin Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Dahengqin Technology Development Co Ltd filed Critical Zhuhai Dahengqin Technology Development Co Ltd
Priority to CN202111277737.4A priority Critical patent/CN114090427A/en
Publication of CN114090427A publication Critical patent/CN114090427A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3644Software debugging by instrumenting at runtime
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/366Software debugging using diagnostics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention provides a method and a device for system exception handling, which comprises the following steps: when an abnormal event of a user terminal in the operation process of a system is detected, acquiring first operation environment information of the user terminal and operation data aiming at the system; establishing a second operation environment according to the first operation environment information, and testing the system by adopting operation data in the second operation environment; determining second operation environment information for processing the abnormal event according to the test result; and generating a processing scheme aiming at the abnormal event according to the second operation environment information and the first operation environment information, and sending the processing scheme to the user terminal for reminding. The embodiment of the invention can generate the processing scheme aiming at the specific abnormal event, so that the user can set the operation environment of the user terminal according to the processing scheme, thereby solving the abnormal event and improving the user experience.

Description

System exception handling method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for system exception handling.
Background
In the process of using the computer, abnormal events such as no response, breakdown and the like often occur for some unknown reasons, so that the computer cannot be normally used.
In the existing method, a developer of an application program collects common abnormal events and then provides corresponding common processing methods to be aggregated into user help, such as whether the browser is the latest version, a specified browser, whether a certain plug-in is installed, and the like.
However, for the user, on one hand, it is often difficult to accurately locate the cause of the abnormal event, and the abnormal event and the cause are tried one by one, and on the other hand, the abnormal event and the cause are diversified, and the normal state cannot be recovered after all methods are tried, which is troublesome for the user and affects the experience greatly.
Disclosure of Invention
In view of the above, a method and apparatus are proposed to provide system exception handling that overcomes or at least partially solves the above mentioned problems, comprising:
a method of system exception handling, comprising:
when an abnormal event of a user terminal in the operation process of the system is detected, acquiring first operation environment information of the user terminal and operation data aiming at the system;
establishing a second operation environment according to the first operation environment information, and testing the system by adopting the operation data in the second operation environment;
determining second operation environment information for processing the abnormal event according to the test result;
and generating a processing scheme aiming at the abnormal event according to the second operation environment information and the first operation environment information, and sending the processing scheme to the user terminal for reminding.
Optionally, the testing the system in the second operating environment by using the operation data includes:
determining a corresponding resource configuration list according to the operation data, wherein the resource configuration list comprises one or more resource information;
updating the corresponding target resource in the second operating environment according to the resource configuration list;
and testing the system by adopting the operation data in the updated second operation environment.
Optionally, before determining the corresponding resource configuration list according to the operation data, the method further includes:
verifying the system against the exception event using the operational data in the second runtime environment;
and under the condition that the verification result is judged to be the abnormal event, executing the step of determining the corresponding resource configuration list according to the operation data.
Optionally, the updating the corresponding target resource in the second operating environment according to the resource configuration list includes:
determining a calling sequence of resources corresponding to the resource configuration list according to the operation data;
generating an updating strategy for updating the corresponding target resource in the second operating environment according to the calling sequence;
and updating the corresponding target resource in the second operating environment according to the updating strategy.
Optionally, the generating a processing scheme for the exception event according to the second operating environment information and the first operating environment information includes:
determining difference information between the second operating environment information and the first operating environment information according to the second operating environment information and the first operating environment information;
and generating a processing scheme aiming at the abnormal event according to the difference information.
Optionally, the operation data comprises request information and input information.
Optionally, the method further comprises:
after detecting that the first operating environment information is updated, responding to a preset trigger event, and executing an operation corresponding to the operating data for the system, wherein the preset trigger event comprises a login event of a user identifier for the operating data.
An apparatus for system exception handling, comprising:
the system comprises a first operation environment information and operation data acquisition module, a first operation environment information and operation data acquisition module and a second operation environment information and operation data acquisition module, wherein the first operation environment information and operation data acquisition module is used for acquiring first operation environment information of a user terminal and operation data aiming at the system when detecting an abnormal event of the user terminal in the operation process of the system;
the test module is used for establishing a second operation environment according to the first operation environment information and testing the system by adopting the operation data in the second operation environment;
the second operation environment information determining module is used for determining second operation environment information for processing the abnormal event according to the test result;
and the abnormal event processing module is used for generating a processing scheme aiming at the abnormal event according to the second operating environment information and the first operating environment information and sending the processing scheme to the user terminal for reminding.
An electronic device comprising a processor, a memory and a computer program stored on the memory and capable of running on the processor, the computer program, when executed by the processor, implementing one or more of the methods as described above.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, implements a method according to one or more of the above.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, when an abnormal event of a user terminal in the operation process of the system is detected, first operation environment information of the user terminal is obtained, operation data for the system is further established according to the first operation environment information, the system is tested by adopting the operation data in the second operation environment, so that second operation environment information for processing the abnormal event can be determined according to a test result, finally, a processing scheme for the abnormal event can be generated according to the second operation environment information and the first operation environment information and is sent to the user terminal for reminding, a processing scheme can be generated for a specific abnormal event, and the user can configure the first operation environment of the user terminal according to the reminding of the processing scheme, therefore, abnormal events are solved, and user experience is improved.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the description of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a flow chart of steps of a method of system exception handling according to an embodiment of the present invention;
FIG. 2 is a flow chart of steps of a method of another method of system exception handling provided by an embodiment of the present invention;
fig. 3 is a block diagram of a system exception handling apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart illustrating steps of a method for exception handling of a system according to an embodiment of the present invention is provided, where the system may be an application program for providing business processing, which may have a user-oriented access port, and a server interacting with the access port data. For example, the access port may be a web application or a client. The user can interact with the server of the system through the access port to perform service processing.
Specifically, the method can comprise the following steps:
step 101, when detecting an abnormal event of a user terminal in the operation process of the system, acquiring first operation environment information of the user terminal and operation data aiming at the system;
the abnormal events may include no response, response timeout, stuck, crash, application error, application flash back, and other abnormal events.
The operation data may be data formed by the user terminal performing a corresponding operation on the system, and if the user clicks a login button, operation data for login may be formed, which includes request information for a login process and input information for login.
The user terminal may include a computer or a mobile terminal.
The operational data may include operational steps, request information, input information, and the like. The operation data can be stored in a storage device of the user terminal, and can also be stored in a background database of the system.
In one embodiment of the invention, the operational data may include request information and input information.
The operating environment information may include hardware resource configuration information and software resource configuration information of the user terminal. The hardware resource configuration information may include storage disk information, memory resource information, network information, etc., and the software resource configuration information may include plug-in information, registry information, interception setting information, etc.
For the user side, the user terminal, such as a mobile communication device or a computer device, is usually caused by an abnormal event when accessing the system.
In order to implement exception handling, when a preset operation request for the system at the user terminal side is received, for example, when the system is logged in, exception event detection may be performed for the user terminal, and when an exception event generated in the operation process of the system by the user terminal is detected, first operating environment information of the user terminal and operation data for the system may be acquired. The first operating environment information can reflect the resource configuration of the user terminal, the operating data can reflect the resource configuration required by accessing the system through the user terminal, and after the first operating environment information and the operating data are obtained, the operating environment of the user terminal can be tested and allocated, so that the resource configuration capable of solving the abnormal event is determined, the user is prompted, and the abnormal event is quickly solved.
In an embodiment of the present invention, step 101 may include the following sub-steps:
a substep S11, detecting the user terminal in an operation process of the user terminal on the system when receiving a preset trigger instruction for the system, wherein the preset trigger instruction includes an operation instruction/an open/start instruction for the system;
and a substep S12 of acquiring first operating environment information of the user terminal and operation data for the system when an abnormal event for the system is detected.
The detection of the abnormal event is started when the user terminal accesses the system, and the abnormal event can be detected from the beginning, so that the range of processing the abnormal event is widened.
102, establishing a second operation environment according to the first operation environment information, and testing the system by adopting the operation data in the second operation environment;
after the first operating environment information is obtained, a virtual second operating environment may be configured according to the first operating environment information. The operating environment corresponding to the first operating environment information is a first operating environment, and a second operating environment established according to the first operating environment information is a mirror image of the first operating environment, wherein the difference between the second operating environment and the first operating environment is that the second operating environment and the first operating environment are carried in different hardware devices.
The resource configuration in the second runtime environment can be changed, such as a plug-in version update, other plug-in installation, interception setting, registry information modification, and the like. The system may be accessed in a second runtime environment, such as a server of the system may be accessed through an access port in the second runtime environment.
In order to implement exception handling, the system may be subjected to a loop test using the operation data in the second operating environment, so as to obtain a test result. It should be noted that testing the system may be considered accessing the system through the access port. The virtual configurable operating environment is established in the independent environment for testing, the operating environment capable of solving the abnormal event can be quickly determined, so that the resource configuration can be adjusted according to the operating environment by referring to the operating environment of the user terminal, and the user terminal can overcome the abnormal event.
Specifically, a test task may be generated according to the operation data, the test task is executed for the system in the second operating environment, whether the abnormal event occurs is detected in the process of executing the test task, if the abnormal event is detected, the execution of the test may be stopped, and related information in the test process is recorded as the test information.
And then, changing the resource configuration in the second operating environment, executing the test task for the system again in the updated second operating environment, and executing the steps in a circulating manner until the abnormal event is not detected in the process of executing the test task for the system, stopping the circulating test, and generating a test result.
The test result may include one or more pieces of test information for each test, the test information including second operating environment information of the current test, and whether the abnormal event is generated during the test.
Step 103, determining second operation environment information for processing the abnormal event according to the test result;
the test result records that the access system does not generate the abnormal event in a certain second operating environment, in order to implement abnormal processing, target test information can be determined from one or more pieces of test information of the test result, and the target test information is test information of a single test in which the abnormal event cannot be detected in the process of executing the test task by aiming at the system. The operating environment corresponding to the second operating environment information can overcome the abnormal event, and the operating environment of the user terminal is updated by referring to the operating environment of the user terminal and the operating environment corresponding to the second operating environment information, so that the user terminal can overcome the abnormal event.
And 104, generating a processing scheme aiming at the abnormal event according to the second operating environment information and the first operating environment information, and sending the processing scheme to the user terminal for reminding.
The second operating environment is established based on the first operating environment information, and the second operating environment information corresponding to the updated second operating environment has difference information with the first operating environment information, and the difference information can be understood as updating information relative to the first operating environment information, that is, the first operating environment information is updated according to the difference information, so that the second operating environment information can be obtained.
In order to implement exception handling, after the second operating environment information is determined, a handling scheme for the exception event may be generated according to difference information between the second operating environment information and the first operating environment information, and sent to the user terminal for prompting, and the user may change the operating environment of the user terminal according to the handling scheme. Therefore, the user can directly position the scheme for solving the abnormal event without self judgment and one-by-one attempt according to the abnormal problem processing prompt, great convenience is brought to the user, and the user experience is improved.
In the embodiment of the invention, when an abnormal event of the user terminal in the operation process of the system is detected, the first operation environment information of the user terminal is obtained, the operation data of the system is aimed at, the second operation environment is established according to the first operation environment information, the operation data is adopted in the second operation environment to test the system, so that the second operation environment information for processing the abnormal event can be determined according to the test result, finally, the processing scheme aiming at the abnormal event can be generated according to the second operation environment information and the first operation environment information and is sent to the user terminal for reminding, the processing scheme can be generated aiming at the specific abnormal event, so that the user can configure the first operation environment of the user terminal according to the reminding of the processing scheme, therefore, abnormal events are solved, and user experience is improved.
Referring to fig. 2, a flowchart illustrating steps of another method for processing system exception according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 201, when detecting an abnormal event of a user terminal in the operation process of the system, acquiring first operation environment information of the user terminal and operation data aiming at the system;
the first operating environment information can reflect the resource configuration of the user terminal, the operating data can reflect the resource configuration required by accessing the system through the user terminal, and after the first operating environment information and the operating data are obtained, the operating environment of the user terminal can be tested and allocated, so that the resource configuration capable of solving the abnormal event is determined, the user is prompted, and the abnormal event is quickly solved.
Step 202, establishing a second operating environment according to the first operating environment information, and verifying the system for the abnormal event by adopting the operating data in the second operating environment;
when the user terminal accesses the system, the abnormal event may be caused by the abnormal configuration of the hardware resource of the user terminal, or may be caused by the abnormal configuration of the software resource of the user terminal.
The second operating environment established according to the first operating environment information can be understood as a mirror image of the first operating environment, and since the second operating environment and the first operating environment are located in different hardware facilities, the operating data can be used in the second operating environment to verify the system against the abnormal event. That is, in the second operation environment, the system is operated by using the operation data, which can be understood as copying the operation of the user terminal on the system in the second operation environment.
If the verification result does not generate the abnormal event, or the abnormal event is generated in the second operating environment, but the abnormal event is different from the abnormal event generated in the first operating environment, it may be determined that the abnormal event is caused by the abnormal configuration of the hardware resource of the user terminal, and in this case, the user may be prompted to replace the user terminal device. Therefore, the user can be prompted in advance under the condition that the hardware resource configuration of the user terminal is abnormal to cause the abnormal event, the abnormal event processing flow can be contacted, and the effect of saving system resources can be achieved.
Step 203, determining a corresponding resource configuration list according to the operation data under the condition that the verification result is judged to be the abnormal event, wherein the resource configuration list comprises one or more resource information;
if the verification result is the abnormal event, that is, the abnormal event generated by operating the system in the second operating environment by using the operation data is the same as the abnormal event generated in the first operating environment, it may be determined that the abnormal event is caused by software resource configuration of the user terminal, and in this case, a corresponding resource configuration list may be determined according to the operation data, where the resource list includes one or more resource information. Therefore, the resource information required to be called by the operation data can be determined, and further the corresponding resource can be updated, so that the running environment capable of solving the abnormal event can be determined.
The resource information may be resource information for a software resource.
Specifically, one or more request messages may be determined from the operation data, and then, corresponding resource information for the software resource may be determined according to the one or more request messages. If the operation data includes request information for inputting a password, and the request information needs to receive the password through the security input control, it may be determined that the corresponding software resource is the security input control, and then resource information for the software resource of the security input control may be obtained, and the resource information may indicate which security input controls are legal and may be used to receive the password.
Step 204, updating the corresponding target resource in the second operating environment according to the resource configuration list;
the resource information in the resource configuration list is determined according to the operation data, that is, the software resource corresponding to the resource information in the resource configuration list is the software resource necessary for executing the request information in the operation data, and the second operating environment is established based on the first operating environment information, which may include software resources unrelated to the system.
In order to implement exception handling, a corresponding target resource in the second operating environment may be updated according to resource information in the resource configuration list, and if resource information about the security input control is stored in the resource configuration list and a security input control a meeting software resource information about the security input control exists in the second operating environment, the version of the security input control a may be updated, or the security input control a is replaced by a security input control having the same function, or the security input control a is reinstalled according to a default installation path, or the security input control a is installed in the second operating environment under the condition that the security input control a does not exist in the second operating environment. In this way, the resource configuration which needs to be used correspondingly can be updated, and the second operating environment can be rapidly configured to determine the second operating environment information which can solve the abnormal event.
In an embodiment of the present invention, step 201 may include the following sub-steps:
substep S21, determining a calling order of the resources corresponding to the resource configuration list according to the operation data;
a substep S21, generating an update policy for updating the corresponding target resource in the second operating environment according to the calling sequence;
and a substep S21, updating the corresponding target resource in the second operating environment according to the updating policy.
The operational data may include one or more request messages, one request message may correspond to one or more resources, and it is understood that one request may require invocation of one or more resources. The reason for the abnormal event may be that one or more resources are modified because the sequence of triggering the request information is different and the sequence of calling the corresponding resources is also different.
In order to implement exception handling, an order for request information may be determined from the operation data, and then a call order for resources in the resource configuration list may be determined according to the order for request information, further, an update policy for updating corresponding target resources in the second execution environment may be generated according to the call order, for example, the target resources are updated according to a reverse order of the call order, or the target resources are updated according to a forward order of the call order, and finally, the corresponding target resources in the second execution environment may be updated according to the update policy. And the corresponding target resources are updated according to the calling sequence of the resources, so that the efficiency of processing the abnormal events can be improved, and the calculation amount is reduced.
It should be noted that the target resource stated in the embodiment of the present invention may be a single resource in the resource configuration list, that is, each update is only performed on a single resource in the resource configuration list.
It can be understood that: and updating the corresponding single resource in the second operating environment according to the resource configuration list.
Step 205, testing the system by using the operation data in the updated second operating environment;
in a specific implementation, after a single resource in a first operating environment is updated, a test task may be generated by using operation data, the test task is executed for a system in an updated second operating environment, and in the process of executing the test task, whether an abnormal event occurs is detected, if the abnormal event is detected, the execution of the test may be stopped, and related information records in the test process are stored as test information, if the execution of the test task is completed and the abnormal event does not occur, step 204 and step 205 are stopped, and a test result is generated, otherwise, step 204 and step 205 are executed in a loop. Therefore, the system is tested by adopting the operation data in the updated second running environment, whether the current second running environment can solve the abnormal event or not can be detected, after repeated testing, the second running environment information capable of processing the abnormal event can be quickly obtained, then a solution can be generated, and a user is prompted to update the running environment information of the user terminal so as to solve the abnormal event.
The test result may include one or more pieces of test information for each test, the test information including second operating environment information of the current test, and whether an abnormal event is generated during the test.
Step 206, determining second operation environment information for processing the abnormal event according to the test result;
the operating environment corresponding to the second operating environment information can overcome the abnormal event, and the operating environment of the user terminal is updated by referring to the operating environment of the user terminal and the operating environment corresponding to the second operating environment information, so that the user terminal can overcome the abnormal event.
Step 207, generating a processing scheme for the abnormal event according to the second operating environment information and the first operating environment information, and sending the processing scheme to the user terminal for reminding;
therefore, the scheme for solving the abnormal event can be directly positioned, great convenience is brought to the user, and the user experience is improved.
In an embodiment of the present invention, step 207 may include the following sub-steps:
a substep S31 of determining difference information between the second operating environment information and the first operating environment information based on the second operating environment information and the first operating environment information;
and a substep S31 of generating a processing scheme for the abnormal event according to the difference information.
In order to implement exception handling, after determining the second operating environment information, a handling scheme for the exception event may be generated according to difference information between the second operating environment information and the first operating environment information, and if the difference information is the secure input control a, the handling scheme may be generated: and (4) please install the safety input control a, and further the processing scheme can be sent to the user terminal for reminding. Therefore, the processing scheme is generated according to the difference information between the first operating environment information and the second operating environment information, so that the user can quickly update the abnormal resource configuration, the abnormal event is quickly solved, and the user experience is improved.
And step 208, after detecting that the first operating environment information is updated, responding to a preset trigger event, and executing an operation corresponding to the operating data for the system, wherein the preset trigger event comprises a login event of a user identifier for the operating data.
The user can change the first operating environment of the user terminal according to the prompt of the processing scheme, for example, the processing scheme is as follows: please install security input control a. After the user installs the security input control a on the user terminal, the operating environment of the user terminal, namely the first operating environment, is changed, and the first operating environment information is also updated, at this time, the user can enter the system again through the user terminal, when detecting that the user uses the user identifier corresponding to the operating data, namely the user account to log in, the operating data can be adopted to generate an operating task, and the operating task is executed on the user terminal, so that the user can return to the position before the abnormal event occurs. The user can continue the operation between the abnormal events without inputting again, and the user experience is improved.
It can be understood that, in the operation task generated by using the operation data, not only the request information in the operation data but also the input information in the operation data may be included, for example, the operation data includes the operation step for the startup subsidy declaration and the input related information, and then the operation task also includes both of them, so that the user can directly return to the original interface after logging in.
It should be noted that the operation data may include a user identifier.
In the embodiment of the invention, when an abnormal event of a user terminal in the operation process of a system is detected, first operation environment information of the user terminal is obtained, operation data of the system is aimed at, a second operation environment is established according to the first operation environment information, the system is verified aiming at the abnormal event by adopting the operation data in the second operation environment, a corresponding resource configuration list is determined according to the operation data under the condition that the verification result is judged to be the abnormal event, the resource configuration list comprises one or more resource information, the corresponding target resource in the second operation environment is updated according to the resource configuration list, the system is tested by adopting the operation data in the updated second operation environment, second operation environment information for processing the abnormal event is determined according to the test result, and according to the second operation environment information and the first operation environment information, the processing scheme for the abnormal event is generated and sent to the user terminal for reminding, after the first operation environment information is updated according to the processing scheme, the system is operated by adopting the operation data in response to an instruction for accessing the system so as to return to the position before the abnormal event occurs, and the processing scheme can be generated for the specific abnormal event, so that the user can configure the first operation environment of the user terminal according to the reminding of the processing scheme, the abnormal event is solved, and the user experience is improved.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 3, a schematic structural diagram of a system exception handling apparatus according to an embodiment of the present invention is shown, which may specifically include the following modules:
a first operating environment information and operation data obtaining module 301, configured to obtain first operating environment information of a user terminal and operation data for the system when an abnormal event of the user terminal in an operating process of the system is detected;
a testing module 302, configured to establish a second operating environment according to the first operating environment information, and test the system in the second operating environment by using the operation data;
a second operation environment information determining module 303, configured to determine, according to the test result, second operation environment information for processing the abnormal event;
and the abnormal event processing module 304 is configured to generate a processing scheme for the abnormal event according to the second operating environment information and the first operating environment information, and send the processing scheme to the user terminal for reminding.
In an embodiment of the present invention, the test module 302 may further include:
the resource configuration list determining submodule is used for determining a corresponding resource configuration list according to the operation data, and the resource configuration list comprises one or more pieces of resource information;
the target resource updating submodule is used for updating the corresponding target resource in the second operating environment according to the resource configuration list;
and the testing submodule is used for testing the system by adopting the operation data in the updated second operation environment.
In an embodiment of the present invention, the test module 302 may further include:
the verification sub-module is used for verifying the system aiming at the abnormal event by adopting the operation data in the second running environment;
and the resource configuration list execution submodule is used for executing the step of determining the corresponding resource configuration list according to the operation data under the condition that the verification result is judged to be the abnormal event.
In an embodiment of the present invention, the target resource updating sub-module may further include:
a call sequence determining unit, configured to determine, according to the operation data, a call sequence for the resource in the resource configuration list;
the updating strategy generating unit is used for generating an updating strategy for updating the corresponding target resource in the second operating environment according to the calling sequence;
and the updating strategy updating unit is used for updating the corresponding target resource in the second operating environment according to the updating strategy.
In an embodiment of the present invention, the exception handling module 304 may further include:
a difference information determining sub-module, configured to determine difference information between the second operating environment information and the first operating environment information according to the second operating environment information and the first operating environment information;
and the processing scheme generating submodule is used for generating a processing scheme aiming at the abnormal event according to the difference information.
In an embodiment of the present invention, the apparatus may further include:
and the before-return abnormal event module is used for responding to a preset trigger event after detecting that the first running environment information is updated, and executing the operation corresponding to the operation data aiming at the system, wherein the preset trigger event comprises a login event aiming at the user identifier of the operation data.
An embodiment of the present invention further provides an electronic device, which may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the method for implementing the above method for system exception handling is provided.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for implementing the above method for system exception handling is provided.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The method and apparatus for system exception handling, the electronic device, and the storage medium are described in detail above, and a specific example is applied in the present disclosure to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understand the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method of system exception handling, comprising:
when an abnormal event of a user terminal in the operation process of the system is detected, acquiring first operation environment information of the user terminal and operation data aiming at the system;
establishing a second operation environment according to the first operation environment information, and testing the system by adopting the operation data in the second operation environment;
determining second operation environment information for processing the abnormal event according to the test result;
and generating a processing scheme aiming at the abnormal event according to the second operation environment information and the first operation environment information, and sending the processing scheme to the user terminal for reminding.
2. The method of claim 1, wherein said testing said system with said operational data in said second runtime environment comprises:
determining a corresponding resource configuration list according to the operation data, wherein the resource configuration list comprises one or more resource information;
updating the corresponding target resource in the second operating environment according to the resource configuration list;
and testing the system by adopting the operation data in the updated second operation environment.
3. The method of claim 2, further comprising, prior to said determining a corresponding resource configuration list from said operational data:
verifying the system against the exception event using the operational data in the second runtime environment;
and under the condition that the verification result is judged to be the abnormal event, executing the step of determining the corresponding resource configuration list according to the operation data.
4. The method according to claim 2 or 3, wherein the updating the corresponding target resource in the second runtime environment according to the resource configuration list includes:
determining a calling sequence of resources corresponding to the resource configuration list according to the operation data;
generating an updating strategy for updating the corresponding target resource in the second operating environment according to the calling sequence;
and updating the corresponding target resource in the second operating environment according to the updating strategy.
5. The method of claim 1, wherein generating a handling scheme for the exception event based on the second operating environment information and the first operating environment information comprises:
determining difference information between the second operating environment information and the first operating environment information according to the second operating environment information and the first operating environment information;
and generating a processing scheme aiming at the abnormal event according to the difference information.
6. A method according to any of claims 1-3, wherein the operational data comprises request information and input information.
7. The method according to any one of claims 1-3, further comprising:
after detecting that the first operating environment information is updated, responding to a preset trigger event, and executing an operation corresponding to the operating data for the system, wherein the preset trigger event comprises a login event of a user identifier for the operating data.
8. An apparatus for system exception handling, comprising:
the system comprises a first operation environment information and operation data acquisition module, a first operation environment information and operation data acquisition module and a second operation environment information and operation data acquisition module, wherein the first operation environment information and operation data acquisition module is used for acquiring first operation environment information of a user terminal and operation data aiming at the system when detecting an abnormal event of the user terminal in the operation process of the system;
the test module is used for establishing a second operation environment according to the first operation environment information and testing the system by adopting the operation data in the second operation environment;
the second operation environment information determining module is used for determining second operation environment information for processing the abnormal event according to the test result;
and the abnormal event processing module is used for generating a processing scheme aiming at the abnormal event according to the second operating environment information and the first operating environment information and sending the processing scheme to the user terminal for reminding.
9. An electronic device comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor, the computer program, when executed by the processor, implementing a method of system exception handling as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, implements a method of system exception handling as claimed in any one of claims 1 to 7.
CN202111277737.4A 2021-10-29 2021-10-29 System exception handling method and device Pending CN114090427A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111277737.4A CN114090427A (en) 2021-10-29 2021-10-29 System exception handling method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111277737.4A CN114090427A (en) 2021-10-29 2021-10-29 System exception handling method and device

Publications (1)

Publication Number Publication Date
CN114090427A true CN114090427A (en) 2022-02-25

Family

ID=80298338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111277737.4A Pending CN114090427A (en) 2021-10-29 2021-10-29 System exception handling method and device

Country Status (1)

Country Link
CN (1) CN114090427A (en)

Similar Documents

Publication Publication Date Title
US9529602B1 (en) Systems and methods for internet recovery and service
KR101691245B1 (en) System and method for web service monitoring
US8997088B2 (en) Methods and systems for automated deployment of software applications on heterogeneous cloud environments
CN108681662B (en) Method and device for installing program
US9665452B2 (en) Systems and methods for smart diagnoses and triage of failures with identity continuity
US20110055636A1 (en) Systems and methods for testing results of configuration management activity
US9870282B2 (en) Systems and methods for providing service and support to computing devices with boot failure
CN106599709B (en) Method, device and terminal for preventing privacy information leakage
US9697013B2 (en) Systems and methods for providing technical support and exporting diagnostic data
US9798606B2 (en) Systems and methods for smart diagnosis using hosted resources with intelligent altering of boot order
US20210326196A1 (en) A remediation system to prevent incompatible program module installation in an information processing system
CN111797400A (en) Method and device for dynamically detecting malicious applications in Internet of vehicles
US20160350132A1 (en) Systems and methods for exporting diagnostic data and securing privileges in a service operating system
CN111538985A (en) Android application running environment detection method and device
US20230315620A1 (en) System and Method for Diagnosing a Computing Device in Safe Mode
EP3841467B1 (en) System and method for configurable and proactive application diagnostics and recovery
CN114090427A (en) System exception handling method and device
CN107491669B (en) Super user permission obtaining method and device
CN114386047A (en) Application vulnerability detection method and device, electronic equipment and storage medium
CN114036042A (en) Model testing method, device, computer and readable storage medium
CN110134558B (en) Method and device for detecting server
CN111737130A (en) Public cloud multi-tenant authentication service test method, device, equipment and storage medium
CN115580641A (en) Equipment control method based on Internet of things platform, electronic equipment and storage medium
CN106354602A (en) Service monitoring method and equipment
CN111142926B (en) Multi-system management method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination