ACCUMULO-3438 Log an error when AuthenticationToken converter fails.

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

Branch: refs/heads/master
Commit: 27d79c2651277c465a497c68ec238771692a6fa0
Parents: cb97321
Author: Josh Elser <els...@apache.org>
Authored: Thu Dec 18 21:11:38 2014 -0500
Committer: Josh Elser <els...@apache.org>
Committed: Thu Dec 18 21:11:38 2014 -0500

----------------------------------------------------------------------
 .../java/org/apache/accumulo/core/util/shell/ShellOptionsJC.java    | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/27d79c26/core/src/main/java/org/apache/accumulo/core/util/shell/ShellOptionsJC.java
----------------------------------------------------------------------
diff --git 
a/core/src/main/java/org/apache/accumulo/core/util/shell/ShellOptionsJC.java 
b/core/src/main/java/org/apache/accumulo/core/util/shell/ShellOptionsJC.java
index 38692a0..4787693 100644
--- a/core/src/main/java/org/apache/accumulo/core/util/shell/ShellOptionsJC.java
+++ b/core/src/main/java/org/apache/accumulo/core/util/shell/ShellOptionsJC.java
@@ -126,6 +126,7 @@ public class ShellOptionsJC {
         return 
Class.forName(value).asSubclass(AuthenticationToken.class).newInstance();
       } catch (Exception e) {
         // Catching ClassNotFoundException, ClassCastException, 
InstantiationException and IllegalAccessException
+        log.error("Could not instantiate AuthenticationToken " + value, e);
         throw new ParameterException(e);
       }
     }

Reply via email to