You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by su...@apache.org on 2010/11/07 13:15:49 UTC
svn commit: r1032265 -
/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/deployers/ExtensionDeployer.java
Author: supun
Date: Sun Nov 7 12:15:49 2010
New Revision: 1032265
URL: http://svn.apache.org/viewvc?rev=1032265&view=rev
Log:
handling runtime exceptions and throwables in extension deployment
Modified:
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/deployers/ExtensionDeployer.java
Modified: synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/deployers/ExtensionDeployer.java
URL: http://svn.apache.org/viewvc/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/deployers/ExtensionDeployer.java?rev=1032265&r1=1032264&r2=1032265&view=diff
==============================================================================
--- synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/deployers/ExtensionDeployer.java (original)
+++ synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/deployers/ExtensionDeployer.java Sun Nov 7 12:15:49 2010
@@ -126,6 +126,10 @@ public class ExtensionDeployer extends A
} catch (IOException e) {
handleException("I/O error in reading the mediator jar file", e);
+ } catch (Exception e) {
+ handleException("Error occurred while trying to deploy mediator jar file", e);
+ } catch (Throwable t) {
+ handleException("Error occurred while trying to deploy the mediator jar file", t);
} finally {
// restore the class loader back
if (log.isDebugEnabled()) {
@@ -203,4 +207,11 @@ public class ExtensionDeployer extends A
}
throw new DeploymentException(message, e);
}
+
+ private void handleException(String message, Throwable t) throws DeploymentException {
+ if (log.isDebugEnabled()) {
+ log.debug(message, t);
+ }
+ throw new DeploymentException(message, t);
+ }
}