deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject deltaspike git commit: DELTASPIKE-984 fixed exception-handling in DynamicMBeanWrapper
Date Thu, 03 Sep 2015 17:18:26 GMT
Repository: deltaspike
Updated Branches:
  refs/heads/master b61c4e4e1 -> 65807283e


DELTASPIKE-984 fixed exception-handling in DynamicMBeanWrapper


Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/65807283
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/65807283
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/65807283

Branch: refs/heads/master
Commit: 65807283e61abc9b8288515a28997105ce49a48a
Parents: b61c4e4
Author: gpetracek <gpetracek@apache.org>
Authored: Thu Sep 3 19:16:26 2015 +0200
Committer: gpetracek <gpetracek@apache.org>
Committed: Thu Sep 3 19:16:26 2015 +0200

----------------------------------------------------------------------
 .../deltaspike/core/impl/jmx/DynamicMBeanWrapper.java   | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/65807283/deltaspike/core/impl/src/main/java/org/apache/deltaspike/core/impl/jmx/DynamicMBeanWrapper.java
----------------------------------------------------------------------
diff --git a/deltaspike/core/impl/src/main/java/org/apache/deltaspike/core/impl/jmx/DynamicMBeanWrapper.java
b/deltaspike/core/impl/src/main/java/org/apache/deltaspike/core/impl/jmx/DynamicMBeanWrapper.java
index e0defaa..c6d5a58 100644
--- a/deltaspike/core/impl/src/main/java/org/apache/deltaspike/core/impl/jmx/DynamicMBeanWrapper.java
+++ b/deltaspike/core/impl/src/main/java/org/apache/deltaspike/core/impl/jmx/DynamicMBeanWrapper.java
@@ -25,6 +25,7 @@ import org.apache.deltaspike.core.api.jmx.MBean;
 import org.apache.deltaspike.core.api.jmx.NotificationInfo;
 import org.apache.deltaspike.core.api.provider.BeanManagerProvider;
 import org.apache.deltaspike.core.api.provider.BeanProvider;
+import org.apache.deltaspike.core.util.ExceptionUtils;
 
 import javax.enterprise.context.spi.CreationalContext;
 import javax.enterprise.inject.spi.Bean;
@@ -353,17 +354,10 @@ public class DynamicMBeanWrapper extends NotificationBroadcasterSupport
implemen
             {
                 return operations.get(actionName).invoke(instance(), params);
             }
-            catch (IllegalArgumentException e)
-            {
-                LOGGER.log(Level.SEVERE, actionName + "can't be invoked", e);
-            }
-            catch (IllegalAccessException e)
-            {
-                LOGGER.log(Level.SEVERE, actionName + "can't be invoked", e);
-            }
-            catch (InvocationTargetException e)
+            catch (Exception e)
             {
                 LOGGER.log(Level.SEVERE, actionName + "can't be invoked", e);
+                throw ExceptionUtils.throwAsRuntimeException(e);
             }
             finally
             {


Mime
View raw message