Buggy code:
public class RSSManagerClient { private RSSAdminStub stub ; private ResourceBundle bundle ; private static final String BUNDLE = "org.wso2.carbon.rssmanager.ui.i18n.Resources" ; private static final Log log = LogFactory . getLog ( RSSManagerClient . class ) ; private static final String DEFAULT_PROVIDER = "H2" ; public RSSManagerClient ( String cookie , String backendServerUrl , ConfigurationContext configurationContext , Locale locale ) { } public void dropDatabasePrivilegesTemplate ( String environmentName , String templateName ) throws AxisFault { } public void editDatabasePrivilegesTemplate ( String environmentName , DatabasePrivilegeTemplateInfo template ) throws AxisFault { } public void createDatabasePrivilegesTemplate ( String environmentName , DatabasePrivilegeTemplateInfo template ) throws AxisFault { } public DatabasePrivilegeTemplateInfo [ ] getDatabasePrivilegesTemplates ( String environmentName ) throws AxisFault { } public void editUserPrivileges ( String environmentName , DatabasePrivilegeSetInfo privileges , DatabaseUserInfo user , String databaseName ) throws AxisFault { } public void createDatabase ( String environmentName , DatabaseInfo database ) throws AxisFault { } public DatabaseInfo [ ] getDatabaseList ( String environmentName ) throws AxisFault { } public DatabaseInfo getDatabase ( String environmentName , String rssInstanceName , String databaseName , String type ) throws AxisFault { } public void dropDatabase ( String environmentName , String rssInstanceName , String databaseName , String type ) throws AxisFault { } public RSSInstanceInfo [ ] getRSSInstanceList ( String environmentName ) throws AxisFault { } public String getRSSProvider ( ) throws AxisFault { } public DatabaseUserInfo editDatabaseUser ( String environmentName , DatabaseUserInfo databaseUserInfo ) throws AxisFault { } public RSSInstanceInfo [ ] getRSSInstanceList ( ) throws AxisFault { } public void createRSSInstance ( String environmentName , RSSInstanceInfo rssInstance ) throws AxisFault { } public void testConnection ( String driverClass , String jdbcUrl , String username , String password ) throws AxisFault { } public void editRSSInstance ( String environmentName , RSSInstanceInfo rssInstance ) throws AxisFault { } public DatabaseUserInfo getDatabaseUser ( String environmentName , String rssInstance , String username , String type ) throws AxisFault { } public void dropDatabaseUser ( String environmentName , String rssInstance , String username , String type ) throws AxisFault { } public void createCarbonDataSource ( String environmentName , String dataSourceName , UserDatabaseEntryInfo entry ) throws AxisFault { } public void createDatabaseUser ( String environmentName , DatabaseUserInfo user ) throws AxisFault { } public DatabasePrivilegeTemplateInfo getDatabasePrivilegesTemplate ( String environmentName , String templateName ) throws AxisFault { } public RSSInstanceInfo getRSSInstance ( String environmentName , String rssInstanceName , String type ) throws AxisFault { } public DatabaseUserInfo [ ] getDatabaseUsers ( String environmentName ) throws AxisFault { } public void dropRSSInstance ( String environmentName , String instanceName , String type ) throws AxisFault { } public int getSystemRSSInstanceCount ( String environmentName ) throws AxisFault { } public void attachUserToDatabase ( String environmentName , String rssInstance , String databaseName , String username , String templateName , String type ) throws AxisFault { } public void detachUserFromDatabase ( String environmentName , String rssInstance , String databaseName , String username , String type ) throws AxisFault { } public DatabaseUserInfo [ ] getUsersAttachedToDatabase ( String environmentName , String rssInstanceName , String databaseName , String type ) throws AxisFault { } public DatabaseUserInfo [ ] getAvailableUsersToAttachToDatabase ( String environmentName , String rssInstanceName , String databaseName , String type ) throws AxisFault { } public DatabasePrivilegeSetInfo getUserDatabasePermissions ( String environmentName , String rssInstanceName , String databaseName , String username , String type ) throws AxisFault { } public String [ ] getRSSEnvironmentNames ( ) throws AxisFault { } public void createSnapshot ( String environmentName , String databaseName , String type ) throws AxisFault { } private String [ ] handleException ( String msg , Exception e ) throws AxisFault { String errorMessage = "Unknown" ; if ( e instanceof RSSAdminRSSManagerExceptionException ) { RSSAdminRSSManagerExceptionException rssException = ( ( RSSAdminRSSManagerExceptionException ) ( e ) ) ; if ( ( rssException . getFaultMessage ( ) . getRSSManagerException ( ) ) != null ) { errorMessage = msg + ( rssException . getFaultMessage ( ) . getRSSManagerException ( ) . getErrorMessage ( ) ) ; } } else { <START_BUG> errorMessage = msg + ( e . getMessage ( ) ) ; <END_BUG> } RSSManagerClient . log . error ( errorMessage , e ) ; throw new AxisFault ( errorMessage , e ) ; } }

Fix:
errorMessage = msg ;