From 5ba6fb90f5b5897554024fbe64700cac81fb8c75 Mon Sep 17 00:00:00 2001 From: Rasika Perera Date: Sun, 15 Oct 2017 09:44:46 +0530 Subject: [PATCH] Removed redundant rollbackTransaction causing IllegalStateException --- .../carbon/policy/mgt/core/mgt/impl/FeatureManagerImpl.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/impl/FeatureManagerImpl.java b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/impl/FeatureManagerImpl.java index e507999633..dff12ac54f 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/impl/FeatureManagerImpl.java +++ b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/impl/FeatureManagerImpl.java @@ -107,7 +107,6 @@ public class FeatureManagerImpl implements FeatureManager { throw new FeatureManagementException("Error occurred while adding the features to profile id (" + profileId + ")", e); } catch (PolicyManagerDAOException e) { - PolicyManagementDAOFactory.rollbackTransaction(); throw new FeatureManagementException("Error occurred while adding the features to profile id (" + profileId + ") to the database", e); } finally { @@ -133,7 +132,6 @@ public class FeatureManagerImpl implements FeatureManager { throw new FeatureManagementException("Error occurred while updating the features to profile id (" + profileId + ")", e); } catch (PolicyManagerDAOException e) { - PolicyManagementDAOFactory.rollbackTransaction(); throw new FeatureManagementException("Error occurred while updating the features to profile id (" + profileId + ") to the database", e); } finally { @@ -187,7 +185,6 @@ public class FeatureManagerImpl implements FeatureManager { throw new FeatureManagementException("Error occurred while deleting the feature of - profile (" + profile.getProfileName() + ")", e); } catch (PolicyManagerDAOException e) { - PolicyManagementDAOFactory.rollbackTransaction(); throw new FeatureManagementException("Error occurred while deleting the feature of - profile (" + profile.getProfileName() + ") from database", e); } finally {