Buggy code:
public class Activator implements BundleActivator { public static final String PLUGIN_ID = "org.eclipse.ecf.sharedobject" ; protected static final String CLASS_ATTRIBUTE = "class" ; protected static final String NAME_ATTRIBUTE = "name" ; protected static final String PROPERTY_ELEMENT_NAME = "property" ; protected static final String VALUE_ATTRIBUTE = "value" ; protected static final String NAMESPACE_NAME = "sharedObjectFactory" ; protected static final String SHAREDOBJECT_FACTORY_EPOINT = ( ( Activator . PLUGIN_ID ) + "." ) + ( Activator . NAMESPACE_NAME ) ; protected static final String DESCRIPTION_ATTRIBUTE = "description" ; private static final int REMOVE_SHAREDOBJECT_ERRORCODE = 1001 ; private static final int FACTORY_NAME_COLLISION_ERRORCODE = 2001 ; private static Activator plugin ; private BundleContext context = null ; private IRegistryChangeListener registryManager = null ; private ServiceTracker extensionRegistryTracker = null ; private ServiceTracker logServiceTracker = null ; private ServiceTracker adapterManagerTracker = null ; public Activator ( ) { } public IExtensionRegistry getExtensionRegistry ( ) { } public void start ( BundleContext ctxt ) throws Exception { } public void stop ( BundleContext ctxt ) throws Exception { } public static Activator getDefault ( ) { } public Bundle getBundle ( ) { } protected LogService getLogService ( ) { } public void log ( IStatus status ) { } public IAdapterManager getAdapterManager ( ) { } protected void removeSharedObjectExtensions ( IConfigurationElement [ ] members ) { for ( int m = 0 ; m < ( members . length ) ; m ++ ) { IConfigurationElement member = members [ m ] ; String name = null ; try { name = member . getAttribute ( Activator . NAME_ATTRIBUTE ) ; if ( name == null ) { name = member . getAttribute ( Activator . CLASS_ATTRIBUTE ) ; } if ( name == null ) continue ; ISharedObjectFactory factory = SharedObjectFactory . getDefault ( ) ; SharedObjectTypeDescription sd = factory . getDescriptionByName ( name ) ; if ( ( sd == null ) || ( ! ( factory . containsDescription ( sd ) ) ) ) { continue ; } factory . removeDescription ( sd ) ; Trace . trace ( Activator . PLUGIN_ID , DEBUG , ( ( "removeSharedObjectExtensions.removedDescription(" + sd ) + ")" ) ) ; } catch ( Exception e ) { Trace . catching ( Activator . PLUGIN_ID , EXCEPTIONS_CATCHING , Activator . class , "removeSharedObjectExtensions" , e ) ; <START_BUG> Activator . getDefault ( ) . log ( new Status ( IStatus . ERROR , Activator . PLUGIN_ID , Activator . REMOVE_SHAREDOBJECT_ERRORCODE , Messages . Activator_Exception_Removing_Extension , e ) ) ; <END_BUG> } } } protected void addSharedObjectExtensions ( IConfigurationElement [ ] members ) { } protected void setupSharedObjectExtensionPoint ( BundleContext bc ) { } protected Map getProperties ( IConfigurationElement [ ] propertyElements ) { } protected class SharedObjectRegistryManager implements IRegistryChangeListener { public void registryChanged ( IRegistryChangeEvent event ) { } } }

Fix:
Activator . getDefault ( ) . log ( new Status ( IStatus . ERROR , Activator . PLUGIN_ID , Activator . REMOVE_SHAREDOBJECT_ERRORCODE , "Exception<seq2seq4repair_space>removing<seq2seq4repair_space>sharedobject<seq2seq4repair_space>extension" , e ) ) ;