发明名称 Method and system for automated root-cause analysis for class loading failures in java
摘要 A method and system for automated root-cause analysis for failures in class loading in a Java Virtual Machine (JVM) environment. Specifically, a class loader comprises a class loader for loading classes which comprises an identifier, a search policy object, a configuration policy object, and metadata. The identifier is unique to the JVM environment. The search policy object defines search procedures for discovering and loading a class by the class loader. The configuration policy object manages configuration of the class loader. Metadata describes the interrelationships between the class loader to other class loaders in a class loader tree supporting the JVM environment.
申请公布号 US8799885(B2) 申请公布日期 2014.08.05
申请号 US200912622053 申请日期 2009.11.19
申请人 Oracle International Corporation 发明人 Atsatt Bryan
分类号 G06F9/44 主分类号 G06F9/44
代理机构 Kilpatrick Townsend & Stockton LLP 代理人 Kilpatrick Townsend & Stockton LLP
主权项 1. A method for resolving exceptions thrown by a class loader in a virtual machine environment, the method comprising: augmenting by a policy class loader of a virtual machine environment an exception message being thrown concurrently by the policy class loader for an unloadable missing class when the policy class loader attempts to load the missing class during a class loading process, wherein the policy class loader comprises one of a plurality of policy class loaders, wherein each policy class loader of the plurality of policy class loaders replaces an original class loader in the class loading process and comprises metadata describing interrelationships between the policy class loader and at least one other policy class loader of the plurality of policy class loaders based on a class loader tree of the original class loaders, wherein the class loading process uses the policy class loaders and metadata instead of the original class loaders and wherein augmenting the exception message comprises adding to the exception message the information obtained from the metadata describing interrelationships between the policy class loader and the at least one other policy class loader; identifying by an exception analyzer of the virtual machine environment a name of the missing class that is unloadable in response to and concurrent with the exception message being thrown by the policy class loader for said unloadable missing class; determining by the exception analyzer and concurrent with the exception message being thrown a sequence of policy class loaders involved in trying to return said missing class based on the name of the identified missing class; determining by a query engine of the virtual machine environment and concurrent with the exception message being thrown if said missing class is loadable from any remaining policy class loader, wherein said remaining policy class loader is not in said determined sequence of policy class loaders, and wherein determining whether the missing class is loadable is based on accessing the metadata from any policy class loader not originally in the sequence of policy class loaders; and recommending by a solution generator of the virtual machine environment and concurrent with the exception message being thrown a configuration change based on said determining if said missing class is loadable from any remaining policy class loader supporting said virtual machine environment.
地址 Redwood Shores CA US