@ FFDCIgnore ( Exception . class ) final void shutdownFramework ( ) { Tr . audit ( tc , "httpChain.error.shutdown" , name ) ; try { Bundle bundle = bundleContext . getBundle ( Constants . SYSTEM_BUNDLE_LOCATION ) ; if ( bundle != null ) bundle . stop ( ) ; } catch ( Exception e ) { // do not FFDC this. // exceptions during bundle stop occur if framework is already stopping or stopped } }
When an error occurs during startup and the config variable fail . on . error . enabled is true then this method is used to stop the root bundle thus bringing down the OSGi framework .