You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by hu...@apache.org on 2014/10/29 17:00:09 UTC

[3/3] git commit: updated refs/heads/master to a265d7b

Fix a bug that prevented me from starting CS.

No idea why this error suddenly pops up, this is old (but wrong) code.

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

Branch: refs/heads/master
Commit: a265d7b505095c52ce33453504142a50e4f8c4de
Parents: cf5b56d
Author: Hugo Trippaers <ht...@schubergphilis.com>
Authored: Wed Oct 29 16:59:00 2014 +0100
Committer: Hugo Trippaers <ht...@schubergphilis.com>
Committed: Wed Oct 29 16:59:00 2014 +0100

----------------------------------------------------------------------
 .../cloudstack/framework/serializer/OnwireClassRegistry.java    | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a265d7b5/framework/ipc/src/org/apache/cloudstack/framework/serializer/OnwireClassRegistry.java
----------------------------------------------------------------------
diff --git a/framework/ipc/src/org/apache/cloudstack/framework/serializer/OnwireClassRegistry.java b/framework/ipc/src/org/apache/cloudstack/framework/serializer/OnwireClassRegistry.java
index c0de7e2..46e5965 100644
--- a/framework/ipc/src/org/apache/cloudstack/framework/serializer/OnwireClassRegistry.java
+++ b/framework/ipc/src/org/apache/cloudstack/framework/serializer/OnwireClassRegistry.java
@@ -168,12 +168,11 @@ public class OnwireClassRegistry {
                         try {
                             Class<?> clz = Class.forName(className.replace('/', '.'));
                             classes.add(clz);
-                        } catch (ClassNotFoundException e) {
-                        } catch (NoClassDefFoundError e) {
+                        } catch (ClassNotFoundException | NoClassDefFoundError e) {
+                            s_logger.warn("Unable to load class from jar file", e);
                         }
                     }
                 }
-                IOUtils.closeQuietly(jarFile);
             }
         } while (jarEntry != null);