CN111984444A - Abnormal information processing method and device - Google Patents
Abnormal information processing method and device Download PDFInfo
- Publication number
- CN111984444A CN111984444A CN202010725142.XA CN202010725142A CN111984444A CN 111984444 A CN111984444 A CN 111984444A CN 202010725142 A CN202010725142 A CN 202010725142A CN 111984444 A CN111984444 A CN 111984444A
- Authority
- CN
- China
- Prior art keywords
- target
- exception
- information
- preset
- class name
- 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
Links
- 230000002159 abnormal effect Effects 0.000 title claims abstract description 80
- 230000010365 information processing Effects 0.000 title description 5
- 238000003672 processing method Methods 0.000 title description 2
- 238000000034 method Methods 0.000 claims abstract description 45
- 238000012545 processing Methods 0.000 claims abstract description 31
- 238000012544 monitoring process Methods 0.000 claims description 21
- 230000004044 response Effects 0.000 claims description 18
- 230000005856 abnormality Effects 0.000 claims description 4
- 230000008569 process Effects 0.000 abstract description 13
- 238000004891 communication Methods 0.000 description 9
- 238000004590 computer program Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000012423 maintenance Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 230000003203 everyday effect Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000013467 fragmentation Methods 0.000 description 1
- 238000006062 fragmentation reaction Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000007115 recruitment Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0766—Error or fault reporting or storing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/079—Root cause analysis, i.e. error or fault diagnosis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention provides a method and a device for processing abnormal information, wherein the abnormal information of a target application program is acquired when the target application program does not respond, the abnormal information comprises a target class name and an abnormal reason, then a target business object matched with the target class name can be searched in a preset configuration file, and the target business object and the abnormal reason are displayed, so that an application program abnormal processing platform can quickly and directly read the target business object corresponding to the target class name from the configuration file by configuring the corresponding relation between the class name and the business object in the configuration file, the accuracy of data processing is improved, the target business object and the corresponding abnormal reason can be visually displayed, the efficiency of a developer for checking the abnormal reason is greatly improved, the abnormal processing is facilitated, and in the process of displaying, and the developer can also perform exception handling at the same time, so that the time is saved, and the efficiency is further improved.
Description
Technical Field
The present invention relates to the field of application processing technologies, and in particular, to a method and an apparatus for processing exception information.
Background
With the popularity of mobile terminals, the number and use of applications has also increased explosively. However, as the number and use of the application programs increase, in some cases, abnormal states such as crash and stuck of the application programs may be caused by the code of the application program itself or the operating system, and further the application programs cannot be used, for example, the application programs may be crashed due to runtime exception, execution error (such as memory overflow) and exception thrown by child threads.
Developers can find abnormal states of users in the application program using process by monitoring the application program (crash, blockage and the like), and quickly position and solve abnormal problems according to reported information. However, after collecting the abnormal problem of the application program, a developer cannot directly check which business service of the application program the problem belongs to, and needs to manually perform the work of searching, matching, sorting, classifying, and the like, and then submit the result to a maintenance staff, which is very long in time consumption, low in efficiency, and due to the fact that data is huge, manual errors are easy to occur, data confusion occurs, and the accuracy is low.
Disclosure of Invention
The embodiment of the invention provides a method for processing abnormal information, which aims to solve the problems that the abnormal information of an application program cannot be visually checked and the data accuracy is low in the prior art.
Correspondingly, the embodiment of the invention also provides a device for processing the abnormal information, which is used for ensuring the realization and the application of the method.
In order to solve the above problem, an embodiment of the present invention discloses a method for processing exception information, including:
acquiring abnormal information of a target application program, wherein the abnormal information is information acquired for the target application program without response and comprises a target class name and an abnormal reason;
searching a target service object matched with the target class name in a preset configuration file, wherein the configuration file comprises a corresponding relation between the class name and the service object;
and displaying the target business object and the abnormal reason.
Optionally, the displaying the target business object and the abnormal reason includes:
generating an exception list aiming at the exception information by adopting at least one target business object and the exception reason of the target business object;
and displaying the exception list.
Optionally, the generating, by using at least one target business object and an exception cause of the target business object, an exception list for the exception information includes:
and generating an exception list aiming at the exception information by adopting at least one target service identifier and an exception reason corresponding to the target service identifier.
Optionally, the target application includes a monitoring component, and the exception information is information collected by the monitoring component when the monitoring component monitors that the target application does not respond.
Optionally, the application program includes a plurality of preset service objects, the preset service objects correspond to at least one preset class name, and the configuration file is generated in the following manner:
acquiring a preset service identifier of the preset service object;
and generating the configuration file by adopting the preset service identification and the preset class name according to the corresponding relation between the preset service object and the preset class name.
The embodiment of the invention also discloses a device for processing the abnormal information, which comprises:
the abnormal information acquisition module is used for acquiring abnormal information of the target application program, wherein the abnormal information is information acquired by the target application program without response and comprises a target class name and an abnormal reason;
the business object searching module is used for searching a target business object matched with the target class name in a preset configuration file, and the configuration file comprises a corresponding relation between the class name and the business object;
and the information display module is used for displaying the target business object and the abnormal reason.
Optionally, the information display module includes:
the exception list generation submodule is used for generating an exception list aiming at the exception information by adopting at least one target business object and an exception reason of the target business object;
and the exception list display submodule is used for displaying the exception list.
Optionally, the exception list generation sub-module is specifically configured to:
and generating an exception list aiming at the exception information by adopting at least one target service identifier and an exception reason corresponding to the target service identifier.
Optionally, the target application includes a monitoring component, and the exception information is information collected by the monitoring component when the monitoring component monitors that the target application does not respond.
Optionally, the application program includes a plurality of preset service objects, the preset service objects correspond to at least one preset class name, and the configuration file is generated through the following modules:
a service identifier obtaining module, configured to obtain a preset service identifier of the preset service object;
and the configuration file generation module is used for generating the configuration file by adopting the preset service identifier and the preset class name according to the corresponding relation between the preset service object and the preset class name.
The embodiment of the invention also discloses an electronic device, which comprises:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the electronic device to perform the method as described above.
Embodiments of the invention also disclose one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause the processors to perform the methods as described above.
The embodiment of the invention has the following advantages:
in the embodiment of the present invention, the exception information of the target application program may be acquired by acquiring the exception information of the target application program, where the exception information may be information acquired by the target application program without a response when the target application program has no response, and may include a target class name and an exception reason, and then the target service object matched with the target class name may be searched in a preset configuration file, and the target service object and the exception reason are displayed, so that the application program exception handling platform may quickly and directly read the target service object corresponding to the target class name from the configuration file by configuring the corresponding relationship between the class name and the service object in the configuration file, improve the accuracy of data processing, and visually display the target service object and the corresponding exception reason, not only greatly improve the efficiency of a developer for checking the exception reason, and facilitate exception handling, and when the display is carried out, the developer can also carry out exception handling at the same time, so that the time is saved, and the efficiency is further improved.
Drawings
FIG. 1 is a flow chart illustrating the steps of one embodiment of a method for handling exception information;
FIG. 2 is a flowchart illustrating the steps of one embodiment of a method for handling exception information;
FIG. 3 is a flow chart illustrating exception handling according to an embodiment of the present invention;
FIG. 4 is a block diagram of an embodiment of an exception information processing apparatus according to the present invention;
fig. 5 is a block diagram of an electronic device in an embodiment of the 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.
In the era of mobile internet, along with the popularization of mobile terminals, the number and use of applications are also explosively increasing. As the number and usage of applications increase, the number of crashes and katon phenomena of the applications also increases. Due to fragmentation of Android or IOS equipment, customer service personnel receive many user feedbacks to Crash problems of various different machine types every day, and no method is provided for providing a specific Crash log to developers. The test personnel need to carry out Bug recurrence on the feedback of the user every day and then grab the log, so that the labor cost and the cost of the mobile terminal are very high, and a lot of resources are wasted.
In contrast, in the Development process of the application program, a developer integrates an SDK (Software Development Kit) of the crash information collection platform into the engineering of the application program, and when the user crashes the application program in the process of using the application program, the crash information can be reported to the crash information collection platform, so that the developer can check the cause of the crash of the application program in the platform.
However, in the process, because the crash information displayed by the platform cannot directly browse the cause of the crash, a developer needs to enter a detail page to check the specific cause of the crash, on one hand, when the business services related to the application program are more, the developer needs to manually perform work such as searching, matching, sorting, classifying and the like, and then submits the work to a maintenance staff, which is very long in time consumption and low in efficiency, and because the data is huge, manual errors are easy to occur, the data is disordered, and the accuracy is low.
Therefore, one of the core invention points of the embodiment of the present invention is that a configuration file is generated by establishing a corresponding relationship between a class name and a business object, and when abnormal information of an application program is received, a target business object corresponding to the abnormal information can be searched from a local configuration file, and the target business object and an abnormal reason are displayed, so that the target business object and the corresponding abnormal reason can be visually displayed, which not only greatly improves the efficiency of a developer for checking the abnormal reason and is beneficial to performing abnormal processing, but also saves time and further improves efficiency because the developer can perform abnormal processing simultaneously while displaying.
Specifically, referring to fig. 1, a flowchart illustrating steps of an embodiment of the method for processing exception information according to the present invention is shown, which may specifically include the following steps:
as an example, the SDK of the crash information collection platform may be integrated into the engineering of the application program, and when a user uses the application program and the application program has no response, such as program crash, program stuck, and the like, the corresponding exception information may be collected and reported to the crash information collection platform, so that a developer or a maintenance person may view the corresponding exception information.
In a specific implementation, the Crash information collection platform can monitor the application program through the SDK integrated in the application program to quickly find the Crash occurring in the process of using the application program by the user, and quickly locate and solve the Crash problem according to the information reported by the SDK. Specifically, if the application program has Crash, the exception information corresponding to the Crash may be collected, and the exception information may include a target class name and a corresponding exception reason.
The class name may be a file name created by an application developer in a development process, for example, for a certain business service function of an application, the class name may correspond to a plurality of different folders for storing different business service data, and each folder may correspond to a unique file name. The abnormal reason may be a reason causing no response of the application program, and is associated with the target class name, that is, which class name is crashed when no response of the application program occurs, and the like, for example, when data in a certain folder is abnormal, Crash or file loss or a program error occurs in the application program.
in a specific implementation, the configuration file may include a corresponding relationship between class names and service objects, where a service object may be a service that may be provided by an application program, for example, a certain life class application program may provide different service services such as recruitment, used car, house finding, yellow pages, and the like for a user, and one service object may correspond to at least one class name, that is, under one service object, it may correspond to multiple folders, and is used to store different service data of the service object, such as pictures, videos, cache data, and the like.
After receiving the abnormal information reported by the SDK corresponding to the application program, the abnormal information can be analyzed to obtain a target class name, and then a target service object matched with the target class name is searched in the configuration file, so that the target class name can quickly determine which service of the application program causes no response of the application program from the configuration file, and Crash processing is performed, the collapse information collection platform can quickly and directly read the target service object corresponding to the target class name from the configuration file, and the accuracy of data processing is improved.
And 103, displaying the target business object and the abnormal reason.
After the crash information collection platform finds the target business object matched with the target class name from the configuration file, the target business object and the corresponding abnormal reason can be displayed, for example, the target business object and the abnormal reason can be displayed in a list mode, so that a developer can visually display the target business object and the corresponding abnormal reason, the efficiency of the developer in checking the abnormal reason is greatly improved, the abnormal processing is facilitated, and the developer can simultaneously perform the abnormal processing while displaying, so that the time is saved, and the efficiency is further improved.
In the embodiment of the present invention, the exception information of the target application program may be acquired by acquiring the exception information of the target application program, where the exception information may be information acquired by the target application program without a response when the target application program has no response, and may include a target class name and an exception reason, and then the target service object matched with the target class name may be searched in a preset configuration file, and the target service object and the exception reason are displayed, so that the application program exception handling platform may quickly and directly read the target service object corresponding to the target class name from the configuration file by configuring the corresponding relationship between the class name and the service object in the configuration file, improve the accuracy of data processing, and visually display the target service object and the corresponding exception reason, not only greatly improve the efficiency of a developer for checking the exception reason, and facilitate exception handling, and when the display is carried out, the developer can also carry out exception handling at the same time, so that the time is saved, and the efficiency is further improved.
Referring to fig. 2, a flowchart illustrating steps of an embodiment of a method for processing exception information according to the present invention is shown, and specifically, the method may include the following steps:
in the embodiment of the present invention, the application program may include a monitoring component, the monitoring component may be an SDK of the crash information collection platform, and when the monitoring component monitors that the application program is unresponsive (including crash, stuck, and the like), the monitoring component may collect the unresponsive application program to obtain a target class name causing the unresponsiveness and an abnormal reason of the unresponsiveness of the application program, and then may report the abnormal information including the target class name and the abnormal reason to the crash information collection platform, so that a developer or a maintenance person may process the abnormal information.
in the embodiment of the present invention, an application may correspond to a configuration file, the configuration file may include a correspondence between class names and business objects, and one business object may correspond to a plurality of class names. Specifically, the configuration file may be generated by obtaining a preset service identifier of the preset service object, and then generating the configuration file by using the preset service identifier and the preset class name according to a corresponding relationship between the preset service object and the preset class name.
In one example, all of the service lines (service services) of an application and class names under the respective service lines may be configured as a configuration file. For example, the correspondence between a service line and a class name under a certain application may include:
the house property business line name: the corresponding class names of the House are HSExclusive ListViewController, HSHelpHouseViewController, HSApartmentNPSViewController, and the like.
The name of the second-hand car service line is as follows: UsedCard corresponds to the class names UsedCarListViewController, WBUCNavListViewController, UsedCarImageTypeHelper, etc.
The yellow page service line name is: YellowPage, the corresponding class name is WBYPGuideLinkViewController, WBYPPinCheViewController, WBYPServicePriceCalculateViewController, etc.
Wherein, House can be the business label of the House service line, UsedCar can be the business label of the second-hand car service line, YellowPage can be the business label of the yellow page service line, then configure the relation between service line and class name into the relation shown in table 1:
TABLE 1
Therefore, the service identification and the class name of the service object are configured to obtain the configuration file, so that when Crash occurs to the application program, the Crash information collection platform can quickly and directly read the target service object corresponding to the target class name from the configuration file through the target class name, and the accuracy of data processing is improved.
In the specific implementation, after the configuration file is obtained, the configuration file can be transmitted to the crash information collection platform, and the platform can analyze and traverse the configuration file to obtain all class name data, so that when abnormal information sent by a target application program is received, the target class name reported by the application program can be searched in the configuration file, the whole configuration file is traversed, all class names are returned, and when one class name is the same as the reported target class name, a corresponding target service identifier can be determined, and a target service object is further determined.
For example, when an application program crashes, a class name of the crash is reported, if the class name of the hshellpheujewcontroller is reported, the platform may search in the configuration file according to the class name, traverse the entire configuration file, and return all the class names, and when a certain class name is the same as the reported class name of the hshellpheujewcontroller, the target service identifier may be determined according to the correspondence, and then the service line corresponding to the hshellpheujewjewcontroller is determined as the property service line according to the service identifier. Similarly, other class names are also used to search for the corresponding service line name.
It should be noted that, the embodiment of the present invention includes but is not limited to the foregoing examples, and it is understood that, under the guidance of the idea of the embodiment of the present invention, a person skilled in the art may also establish a corresponding relationship between a class name and a service object in other manners, for example, a key value pair, and the like, which is not limited in this respect.
In the embodiment of the present invention, a service object may correspond to a unique service identifier, and the crash information collection platform may generate an exception list matching the exception information by using at least one target service identifier and an exception cause corresponding to the target service identifier.
For example, for a certain application program, the exception list may include exception reasons corresponding to a house service line, a used car service line, and a yellow page service line, as shown in table 2:
service line | Cause of abnormality |
House | The reason is |
UsedCar | Reason 2 |
YellowPage | Reason (c) |
… | … |
TABLE 2
After the crash information mobile phone platform finds the target service object matched with the target class name from the configuration file, the target service object and the corresponding abnormal reason can be displayed in a list mode, so that a developer can visually display the target service object and the corresponding abnormal reason, the efficiency of the developer for checking the abnormal reason is greatly improved, the abnormal processing is facilitated, the one-to-one correspondence relationship between the service lines and the abnormal reasons can be reduced, the condition that the single developer cannot know the services of other service lines and processes the data wrongly can be avoided, the accuracy of data processing is improved, the time is saved, and the efficiency is further improved.
It should be noted that, the embodiment of the present invention includes but is not limited to the above examples, and it is understood that, under the guidance of the idea of the embodiment of the present invention, a person skilled in the art may also use other forms besides lists to display the service identifier and the reason for the abnormality, and the present invention is not limited to this.
In the embodiment of the present invention, the exception information of the target application program may be acquired by acquiring the exception information of the target application program, where the exception information may be information acquired by the target application program without a response when the target application program has no response, and may include a target class name and an exception reason, and then the target service object matched with the target class name may be searched in a preset configuration file, and the target service object and the exception reason are displayed, so that the application program exception handling platform may quickly and directly read the target service object corresponding to the target class name from the configuration file by configuring the corresponding relationship between the class name and the service object in the configuration file, improve the accuracy of data processing, and visually display the target service object and the corresponding exception reason, not only greatly improve the efficiency of a developer for checking the exception reason, and facilitate exception handling, and when the display is carried out, the developer can also carry out exception handling at the same time, so that the time is saved, and the efficiency is further improved.
In order to enable those skilled in the art to better understand the embodiments of the present application, the following description is given by way of an example:
referring to fig. 3, which is a schematic flow diagram illustrating exception information processing in an embodiment of the present invention, a developer may configure a service line of an application and a class name file corresponding to the service line locally on a crash information collection platform, and then upload the service line and the class name file to the crash information collection platform. When Crash appears in the application program, the Crash reason and the Crash class name can be reported to a Crash information collection platform, the Crash information collection platform matches the received Crash class name with the class name in the configuration file, if the same class name is found, determining the service line corresponding to the crash class name according to the corresponding relationship between the class name and the service line, then, the name of the service line and the cause of the crash are shown in a list form, so that by configuring the corresponding relation between the class name and the service object in the configuration file, the application program exception handling platform can quickly and directly read the target business object corresponding to the target class name from the configuration file, the accuracy of data processing is improved, and the target business object and the corresponding abnormal reason can be visually displayed, so that the efficiency of a developer for checking the abnormal reason is greatly improved, and the abnormal processing is facilitated.
Moreover, developers of all service lines can check the crash information in the crash list through the crash information collection platform at the same time, so that the crash problem which is consistent with the developers can be selected and processed, the situation that a single developer cannot know the services of other service lines possibly makes data processing errors is avoided, and the accuracy of data processing 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. 4, a block diagram of an embodiment of an exception information processing apparatus according to the present invention is shown, and specifically includes the following modules:
an exception information obtaining module 401, configured to obtain exception information of a target application program, where the exception information is information collected for a target application program without a response, and includes a target class name and an exception reason;
a service object searching module 402, configured to search a preset configuration file for a target service object matched with the target class name, where the configuration file includes a correspondence between the class name and the service object;
an information display module 403, configured to display the target business object and the abnormal reason.
In an optional embodiment of the present invention, the information displaying module 403 includes:
the exception list generation submodule is used for generating an exception list aiming at the exception information by adopting at least one target business object and an exception reason of the target business object;
and the exception list display submodule is used for displaying the exception list.
In an optional embodiment of the present invention, the exception list generating sub-module is specifically configured to:
and generating an exception list aiming at the exception information by adopting at least one target service identifier and an exception reason corresponding to the target service identifier.
In an optional embodiment of the present invention, the target application includes a monitoring component, and the exception information is information collected when the monitoring component monitors that the target application does not respond.
In an optional embodiment of the present invention, the application program includes a plurality of preset service objects, the preset service objects correspond to at least one preset class name, and the configuration file is generated by the following modules:
a service identifier obtaining module, configured to obtain a preset service identifier of the preset service object;
and the configuration file generation module is used for generating the configuration file by adopting the preset service identifier and the preset class name according to the corresponding relation between the preset service object and the preset class name.
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.
For the above device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for the relevant points, refer to the partial description of the method embodiment.
In addition, an embodiment of the present invention further provides an electronic device, as shown in fig. 5, which includes a processor 501, a communication interface 502, a memory 503 and a communication bus 504, where the processor 501, the communication interface 502 and the memory 503 complete mutual communication through the communication bus 504,
a memory 503 for storing a computer program;
the processor 501, when executing the program stored in the memory 503, implements the following steps:
acquiring abnormal information of a target application program, wherein the abnormal information is information acquired for the target application program without response and comprises a target class name and an abnormal reason;
searching a target service object matched with the target class name in a preset configuration file, wherein the configuration file comprises a corresponding relation between the class name and the service object;
and displaying the target business object and the abnormal reason.
In an optional embodiment of the present invention, the displaying the target business object and the reason for the abnormality includes:
generating an exception list aiming at the exception information by adopting at least one target business object and the exception reason of the target business object;
and displaying the exception list.
In an optional embodiment of the present invention, the generating, by using at least one target service object and an exception cause associated with the target service object, an exception list for the exception information includes:
and generating an exception list aiming at the exception information by adopting at least one target service identifier and an exception reason corresponding to the target service identifier.
In an optional embodiment of the present invention, the target application includes a monitoring component, and the exception information is information collected when the monitoring component monitors that the target application does not respond.
In an optional embodiment of the present invention, the application program includes a plurality of preset service objects, the preset service objects correspond to at least one preset class name, and the configuration file is generated as follows:
acquiring a preset service identifier of the preset service object;
and generating the configuration file by adopting the preset service identification and the preset class name according to the corresponding relation between the preset service object and the preset class name.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In yet another embodiment of the present invention, a computer-readable storage medium is further provided, which stores instructions that, when executed on a computer, cause the computer to perform the prediction method of content described in any of the above embodiments.
In a further embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method of predicting content as described in any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is 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 apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Claims (12)
1. A method for processing exception information, comprising:
acquiring abnormal information of a target application program, wherein the abnormal information is information acquired for the target application program without response and comprises a target class name and an abnormal reason;
searching a target service object matched with the target class name in a preset configuration file, wherein the configuration file comprises a corresponding relation between the class name and the service object;
and displaying the target business object and the abnormal reason.
2. The method according to claim 1, wherein said presenting the target business object and the cause of the abnormality comprises:
generating an exception list aiming at the exception information by adopting at least one target business object and the exception reason of the target business object;
and displaying the exception list.
3. The method according to claim 2, wherein the generating an exception list for the exception information by using at least one target business object and an exception reason of the target business object comprises:
and generating an exception list aiming at the exception information by adopting at least one target service identifier and an exception reason corresponding to the target service identifier.
4. The method of claim 1, wherein the target application comprises a monitoring component, and wherein the exception information is information collected by the monitoring component when the monitoring component monitors that the target application is unresponsive.
5. The method according to claim 1, wherein the application program comprises a plurality of preset business objects, the preset business objects correspond to at least one preset class name, and the configuration file is generated by:
acquiring a preset service identifier of the preset service object;
and generating the configuration file by adopting the preset service identification and the preset class name according to the corresponding relation between the preset service object and the preset class name.
6. An apparatus for processing exception information, comprising:
the abnormal information acquisition module is used for acquiring abnormal information of the target application program, wherein the abnormal information is information acquired by the target application program without response and comprises a target class name and an abnormal reason;
the business object searching module is used for searching a target business object matched with the target class name in a preset configuration file, and the configuration file comprises a corresponding relation between the class name and the business object;
and the information display module is used for displaying the target business object and the abnormal reason.
7. The apparatus of claim 6, wherein the information presentation module comprises:
the exception list generation submodule is used for generating an exception list aiming at the exception information by adopting at least one target business object and an exception reason of the target business object;
and the exception list display submodule is used for displaying the exception list.
8. The apparatus of claim 7, wherein the exception list generation submodule is specifically configured to:
and generating an exception list aiming at the exception information by adopting at least one target service identifier and an exception reason corresponding to the target service identifier.
9. The apparatus of claim 6, wherein the target application comprises a monitoring component, and wherein the exception information is information collected by the monitoring component when the monitoring component monitors that the target application is unresponsive.
10. The apparatus according to claim 6, wherein the application program comprises a plurality of preset business objects, the preset business objects correspond to at least one preset class name, and the configuration file is generated by:
a service identifier obtaining module, configured to obtain a preset service identifier of the preset service object;
and the configuration file generation module is used for generating the configuration file by adopting the preset service identifier and the preset class name according to the corresponding relation between the preset service object and the preset class name.
11. An electronic device, comprising:
one or more processors; and
one or more machine-readable media having instructions stored thereon that, when executed by the one or more processors, cause the electronic device to perform the method of any of claims 1-5.
12. One or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause the processors to perform the method of any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010725142.XA CN111984444A (en) | 2020-07-24 | 2020-07-24 | Abnormal information processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010725142.XA CN111984444A (en) | 2020-07-24 | 2020-07-24 | Abnormal information processing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111984444A true CN111984444A (en) | 2020-11-24 |
Family
ID=73438150
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010725142.XA Pending CN111984444A (en) | 2020-07-24 | 2020-07-24 | Abnormal information processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111984444A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113760720A (en) * | 2021-01-07 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Code abnormal information display method and device |
CN113778547A (en) * | 2021-07-30 | 2021-12-10 | 北京达佳互联信息技术有限公司 | Object processing method and device, computer program product and processor |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170212807A1 (en) * | 2014-10-10 | 2017-07-27 | Beijing Kingsoft Internet Security Software Co., Ltd. | Method for detecting abnormal application and mobile terminal |
CN108491320A (en) * | 2018-03-05 | 2018-09-04 | 平安普惠企业管理有限公司 | Exception analysis method, device, computer equipment and the storage medium of application program |
CN110597651A (en) * | 2019-09-18 | 2019-12-20 | 深圳前海微众银行股份有限公司 | Method, device and equipment for troubleshooting business anomaly and computer readable storage medium |
CN110647451A (en) * | 2019-08-30 | 2020-01-03 | 深圳壹账通智能科技有限公司 | Application program abnormity analysis method and generation method |
CN110688285A (en) * | 2019-09-30 | 2020-01-14 | 深圳前海环融联易信息科技服务有限公司 | Method and device for processing abnormal classification of business system, computer equipment and storage medium |
-
2020
- 2020-07-24 CN CN202010725142.XA patent/CN111984444A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170212807A1 (en) * | 2014-10-10 | 2017-07-27 | Beijing Kingsoft Internet Security Software Co., Ltd. | Method for detecting abnormal application and mobile terminal |
CN108491320A (en) * | 2018-03-05 | 2018-09-04 | 平安普惠企业管理有限公司 | Exception analysis method, device, computer equipment and the storage medium of application program |
CN110647451A (en) * | 2019-08-30 | 2020-01-03 | 深圳壹账通智能科技有限公司 | Application program abnormity analysis method and generation method |
CN110597651A (en) * | 2019-09-18 | 2019-12-20 | 深圳前海微众银行股份有限公司 | Method, device and equipment for troubleshooting business anomaly and computer readable storage medium |
CN110688285A (en) * | 2019-09-30 | 2020-01-14 | 深圳前海环融联易信息科技服务有限公司 | Method and device for processing abnormal classification of business system, computer equipment and storage medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113760720A (en) * | 2021-01-07 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Code abnormal information display method and device |
CN113778547A (en) * | 2021-07-30 | 2021-12-10 | 北京达佳互联信息技术有限公司 | Object processing method and device, computer program product and processor |
CN113778547B (en) * | 2021-07-30 | 2024-02-06 | 北京达佳互联信息技术有限公司 | Object processing method, device, computer program product and processor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108683562B (en) | Anomaly detection positioning method and device, computer equipment and storage medium | |
CN110851308A (en) | Test method, test device, electronic equipment and storage medium | |
CN110262918B (en) | Process crash analysis method and device, distributed equipment and storage medium | |
US8055945B2 (en) | Systems, methods and computer program products for remote error resolution reporting | |
CN111563051B (en) | Crawler-based data verification method and device, computer equipment and storage medium | |
CN112491602B (en) | Behavior data monitoring method and device, computer equipment and medium | |
US20220050765A1 (en) | Method for processing logs in a computer system for events identified as abnormal and revealing solutions, electronic device, and cloud server | |
CN110321154B (en) | Micro-service interface information display method and device and electronic equipment | |
CN111460773A (en) | Data processing method, device and system, electronic equipment and storage medium | |
CN107316156B (en) | Data processing method, device, server and storage medium | |
CN111984444A (en) | Abnormal information processing method and device | |
CN111913860A (en) | Operation behavior analysis method and device | |
CN110851471A (en) | Distributed log data processing method, device and system | |
CN110737689A (en) | Data standard conformance detection method, device, system and storage medium | |
CN110647472A (en) | Breakdown information statistical method and device, computer equipment and storage medium | |
CN113014445A (en) | Operation and maintenance method, device and platform for server and electronic equipment | |
CN113642311B (en) | Data comparison method and device, electronic equipment and storage medium | |
JP6565628B2 (en) | Search program, search device, and search method | |
CN111046073A (en) | Test case query method and device and readable storage medium | |
JP2017167578A (en) | Incident management system | |
CN113282496B (en) | Automatic interface testing method, device, equipment and storage medium | |
CN113138974B (en) | Method and device for detecting database compliance | |
CN114064510A (en) | Function testing method and device, electronic equipment and storage medium | |
CN113781068A (en) | Online problem solving method and device, electronic equipment and storage medium | |
CN115098378A (en) | Method and device for classifying and aggregating log fragments based on abnormal breakpoints |
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 |