Repository: atlas Updated Branches: refs/heads/master d1b3f21c1 -> 50c3adf15
ATLAS-2794: updated AtlasClient to explicitly specify JacksonJaxbJsonProvider (cherry picked from commit 9097d695c5509b874c86e0eae159cecf2a812de8) Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/50c3adf1 Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/50c3adf1 Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/50c3adf1 Branch: refs/heads/master Commit: 50c3adf1519cb3d4d01ea86c2e90e1bba4df3c46 Parents: d1b3f21 Author: Madhan Neethiraj <mad...@apache.org> Authored: Thu Jul 26 21:51:24 2018 -0700 Committer: Madhan Neethiraj <mad...@apache.org> Committed: Thu Jul 26 22:50:12 2018 -0700 ---------------------------------------------------------------------- client/common/src/main/java/org/apache/atlas/AtlasBaseClient.java | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/atlas/blob/50c3adf1/client/common/src/main/java/org/apache/atlas/AtlasBaseClient.java ---------------------------------------------------------------------- diff --git a/client/common/src/main/java/org/apache/atlas/AtlasBaseClient.java b/client/common/src/main/java/org/apache/atlas/AtlasBaseClient.java index 5144b25..f8e78ee 100644 --- a/client/common/src/main/java/org/apache/atlas/AtlasBaseClient.java +++ b/client/common/src/main/java/org/apache/atlas/AtlasBaseClient.java @@ -19,6 +19,7 @@ package org.apache.atlas; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.ObjectNode; +import com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider; import com.google.common.annotations.VisibleForTesting; import com.sun.jersey.api.client.Client; import com.sun.jersey.api.client.ClientHandlerException; @@ -249,6 +250,7 @@ public abstract class AtlasBaseClient { DefaultClientConfig config = new DefaultClientConfig(); // Enable POJO mapping feature config.getFeatures().put(JSONConfiguration.FEATURE_POJO_MAPPING, Boolean.TRUE); + config.getClasses().add(JacksonJaxbJsonProvider.class); int readTimeout = configuration.getInt("atlas.client.readTimeoutMSecs", 60000); int connectTimeout = configuration.getInt("atlas.client.connectTimeoutMSecs", 60000); if (configuration.getBoolean(TLS_ENABLED, false)) {