incubator-s4-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mmo...@apache.org
Subject [41/50] [abbrv] git commit: Survive when default ClientStub throws an exception
Date Tue, 03 Jan 2012 11:19:16 GMT
Survive when default ClientStub throws an exception


Project: http://git-wip-us.apache.org/repos/asf/incubator-s4/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-s4/commit/64a901f4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-s4/tree/64a901f4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-s4/diff/64a901f4

Branch: refs/heads/dev
Commit: 64a901f4bdea95101b9a40fffce393f10d19cb0a
Parents: 25c0c61
Author: Bruce Robbins <robbins@thosespent.corp.yahoo.com>
Authored: Thu Nov 17 21:47:53 2011 -0800
Committer: Bruce Robbins <robbins@thosespent.corp.yahoo.com>
Committed: Thu Nov 17 21:47:53 2011 -0800

----------------------------------------------------------------------
 .../java/io/s4/client/GenericJsonClientStub.java   |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-s4/blob/64a901f4/s4-core/src/main/java/io/s4/client/GenericJsonClientStub.java
----------------------------------------------------------------------
diff --git a/s4-core/src/main/java/io/s4/client/GenericJsonClientStub.java b/s4-core/src/main/java/io/s4/client/GenericJsonClientStub.java
index 44d6233..ffce5c6 100644
--- a/s4-core/src/main/java/io/s4/client/GenericJsonClientStub.java
+++ b/s4-core/src/main/java/io/s4/client/GenericJsonClientStub.java
@@ -97,6 +97,11 @@ public class GenericJsonClientStub extends ClientStub {
             logger.error("exception while converting event wrapper to bytes.",
                          e);
             return null;
+        } catch (IllegalArgumentException iae) {
+        	logger.error("exception while converting event wrapper to bytes.",
+                    iae);
+        	logger.error(obj);
+        	return null;
         }
     }
 }


Mime
View raw message