tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgallim...@apache.org
Subject [1/3] tomee git commit: Catch any exception, might not just be a naming exception here
Date Sun, 03 Apr 2016 22:15:19 GMT
Repository: tomee
Updated Branches:
  refs/heads/tomee-1.7.x 4f346a2b1 -> 209378d39


Catch any exception, might not just be a naming exception here


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

Branch: refs/heads/tomee-1.7.x
Commit: c3c5d1a237eecd6ba2fcb3749d27f22fddf79a44
Parents: 4f346a2
Author: Jonathan Gallimore <jon@jrg.me.uk>
Authored: Thu Mar 31 10:34:58 2016 +0100
Committer: Jonathan Gallimore <jon@jrg.me.uk>
Committed: Thu Mar 31 10:34:58 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/openejb/assembler/classic/Assembler.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/c3c5d1a2/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
----------------------------------------------------------------------
diff --git a/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
b/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
index b1e69fc..b7093fe 100644
--- a/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
+++ b/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
@@ -2258,8 +2258,8 @@ public class Assembler extends AssemblerTool implements org.apache.openejb.spi.A
         
         try {
             object = globalContext.lookup(name);
-        } catch (final NamingException e) {
-            // if we catch a NamingException, check to see if the resource is a LaztObjectReference
that has not been initialized correctly
+        } catch (final Exception e) {
+            // if we catch an Exception, check to see if the resource is a LaztObjectReference
that has not been initialized correctly
             final String ctx = name.substring(0, name.lastIndexOf("/"));
             final String objName = name.substring(ctx.length() + 1);
             


Mime
View raw message