You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by no...@apache.org on 2010/02/16 15:52:18 UTC
svn commit: r910544 - in
/incubator/aries/trunk/jmx/jmx-core/src/main/java/org/apache/aries/jmx:
framework/Framework.java useradmin/UserAdmin.java
Author: not
Date: Tue Feb 16 14:52:18 2010
New Revision: 910544
URL: http://svn.apache.org/viewvc?rev=910544&view=rev
Log:
ARIES-160 Set the initCause of exceptions in Framework.java and UserAdmin.java
Modified:
incubator/aries/trunk/jmx/jmx-core/src/main/java/org/apache/aries/jmx/framework/Framework.java
incubator/aries/trunk/jmx/jmx-core/src/main/java/org/apache/aries/jmx/useradmin/UserAdmin.java
Modified: incubator/aries/trunk/jmx/jmx-core/src/main/java/org/apache/aries/jmx/framework/Framework.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/jmx/jmx-core/src/main/java/org/apache/aries/jmx/framework/Framework.java?rev=910544&r1=910543&r2=910544&view=diff
==============================================================================
--- incubator/aries/trunk/jmx/jmx-core/src/main/java/org/apache/aries/jmx/framework/Framework.java (original)
+++ incubator/aries/trunk/jmx/jmx-core/src/main/java/org/apache/aries/jmx/framework/Framework.java Tue Feb 16 14:52:18 2010
@@ -81,7 +81,7 @@
Bundle bundle = context.installBundle(location);
return bundle.getBundleId();
} catch (BundleException e) {
- throw new IOException("Can't install bundle with location" + location);
+ throw new IOException("Can't install bundle with location " + location, e);
}
}
@@ -102,7 +102,7 @@
}
}
- throw new IOException("Can't install bundle with location" + location);
+ throw new IOException("Can't install bundle with location " + location, e);
}
}
@@ -218,7 +218,7 @@
try {
bundle.update();
} catch (BundleException be) {
- throw new IOException("Failed to restart framework " + be);
+ throw new IOException("Failed to restart framework", be);
}
}
@@ -275,7 +275,7 @@
try {
bundle.stop();
} catch (BundleException be) {
- throw new IOException("Failed to shutdown framework " + be);
+ throw new IOException("Failed to shutdown framework", be);
}
}
@@ -289,7 +289,7 @@
try {
bundle.start();
} catch (BundleException be) {
- throw new IOException("Failed to start bundle with id " + bundleIdentifier);
+ throw new IOException("Failed to start bundle with id " + bundleIdentifier, be);
}
}
}
@@ -320,7 +320,7 @@
try {
bundle.stop();
} catch (BundleException e) {
- throw new IOException("Failed to stop bundle with id " + bundleIdentifier);
+ throw new IOException("Failed to stop bundle with id " + bundleIdentifier, e);
}
}
}
@@ -351,7 +351,7 @@
try {
bundle.uninstall();
} catch (BundleException be) {
- throw new IOException("Failed to uninstall bundle with id " + bundleIdentifier);
+ throw new IOException("Failed to uninstall bundle with id " + bundleIdentifier, be);
}
}
@@ -383,7 +383,7 @@
try {
bundle.update();
} catch (BundleException be) {
- throw new IOException("Failed to update bundle with id " + bundleIdentifier);
+ throw new IOException("Failed to update bundle with id " + bundleIdentifier, be);
}
}
@@ -405,7 +405,7 @@
}
}
- throw new IOException("Can't update system bundle " + be);
+ throw new IOException("Can't update system bundle", be);
}
}
@@ -456,7 +456,7 @@
try {
bundle.update();
} catch (BundleException be) {
- throw new IOException("Failed to update system bundle " + be);
+ throw new IOException("Failed to update system bundle", be);
}
}
Modified: incubator/aries/trunk/jmx/jmx-core/src/main/java/org/apache/aries/jmx/useradmin/UserAdmin.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/jmx/jmx-core/src/main/java/org/apache/aries/jmx/useradmin/UserAdmin.java?rev=910544&r1=910543&r2=910544&view=diff
==============================================================================
--- incubator/aries/trunk/jmx/jmx-core/src/main/java/org/apache/aries/jmx/useradmin/UserAdmin.java (original)
+++ incubator/aries/trunk/jmx/jmx-core/src/main/java/org/apache/aries/jmx/useradmin/UserAdmin.java Tue Feb 16 14:52:18 2010
@@ -255,7 +255,7 @@
try {
roles = userAdmin.getRoles(filter);
} catch (InvalidSyntaxException ise) {
- throw new IOException("Operation fails illegal filter provided" + ise);
+ throw new IOException("Operation fails illegal filter provided: " + filter, ise);
}
if (roles == null) {
@@ -358,7 +358,7 @@
try {
roles = userAdmin.getRoles(filter);
} catch (InvalidSyntaxException ise) {
- throw new IOException("Operation fails illegal filter provided" + ise);
+ throw new IOException("Operation fails illegal filter provided: " + filter, ise);
}
if (roles == null) {
return null;
@@ -397,7 +397,7 @@
try {
roles = userAdmin.getRoles(filter);
} catch (InvalidSyntaxException ise) {
- throw new IOException("Operation fails illegal filter provided" + ise);
+ throw new IOException("Operation fails illegal filter provided: " + filter, ise);
}
if (roles == null) {
return null;