1.1 --- a/src/share/vm/services/management.cpp Wed Mar 11 13:36:57 2015 -0700 1.2 +++ b/src/share/vm/services/management.cpp Wed Jan 08 20:23:16 2014 -0500 1.3 @@ -155,11 +155,14 @@ 1.4 // Load and initialize the sun.management.Agent class 1.5 // invoke startAgent method to start the management server 1.6 Handle loader = Handle(THREAD, SystemDictionary::java_system_loader()); 1.7 - Klass* k = SystemDictionary::resolve_or_fail(vmSymbols::sun_management_Agent(), 1.8 + Klass* k = SystemDictionary::resolve_or_null(vmSymbols::sun_management_Agent(), 1.9 loader, 1.10 Handle(), 1.11 - true, 1.12 - CHECK); 1.13 + THREAD); 1.14 + if (k == NULL) { 1.15 + vm_exit_during_initialization("Management agent initialization failure: " 1.16 + "class sun.management.Agent not found."); 1.17 + } 1.18 instanceKlassHandle ik (THREAD, k); 1.19 1.20 JavaValue result(T_VOID);