Return-Path: X-Original-To: apmail-accumulo-commits-archive@www.apache.org Delivered-To: apmail-accumulo-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B6D4010157 for ; Thu, 9 Jan 2014 03:05:52 +0000 (UTC) Received: (qmail 53941 invoked by uid 500); 9 Jan 2014 03:05:16 -0000 Delivered-To: apmail-accumulo-commits-archive@accumulo.apache.org Received: (qmail 53907 invoked by uid 500); 9 Jan 2014 03:05:14 -0000 Mailing-List: contact commits-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list commits@accumulo.apache.org Received: (qmail 53787 invoked by uid 99); 9 Jan 2014 03:05:01 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jan 2014 03:05:01 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 627BF828C21; Thu, 9 Jan 2014 03:05:01 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: elserj@apache.org To: commits@accumulo.apache.org Date: Thu, 09 Jan 2014 03:05:02 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/4] git commit: ACCUMULO--2134 Catch the case where we get the TNFE wrapped in an AccumuloException ACCUMULO--2134 Catch the case where we get the TNFE wrapped in an AccumuloException Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/a55ee6eb Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/a55ee6eb Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/a55ee6eb Branch: refs/heads/master Commit: a55ee6ebc0bb807db400c0c1626823b80374d106 Parents: 5d57305 Author: Josh Elser Authored: Wed Jan 8 22:03:29 2014 -0500 Committer: Josh Elser Committed: Wed Jan 8 22:03:29 2014 -0500 ---------------------------------------------------------------------- proxy/src/main/java/org/apache/accumulo/proxy/ProxyServer.java | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo/blob/a55ee6eb/proxy/src/main/java/org/apache/accumulo/proxy/ProxyServer.java ---------------------------------------------------------------------- diff --git a/proxy/src/main/java/org/apache/accumulo/proxy/ProxyServer.java b/proxy/src/main/java/org/apache/accumulo/proxy/ProxyServer.java index 3413c94..de7ca80 100644 --- a/proxy/src/main/java/org/apache/accumulo/proxy/ProxyServer.java +++ b/proxy/src/main/java/org/apache/accumulo/proxy/ProxyServer.java @@ -226,6 +226,10 @@ public class ProxyServer implements AccumuloProxy.Iface { try { throw ex; } catch (AccumuloException e) { + Throwable cause = e.getCause(); + if (null != cause && TableNotFoundException.class.equals(cause.getClass())) { + throw new org.apache.accumulo.proxy.thrift.TableNotFoundException(cause.toString()); + } handleAccumuloException(e); } catch (AccumuloSecurityException e) { handleAccumuloSecurityException(e);