This is an automated email from the ASF dual-hosted git repository.

bpatel pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/master by this push:
     new a607f5a  RANGER-3651:Remove jersey1.x version dependency for knox 
plugin
a607f5a is described below

commit a607f5af78f0329a6d34653c3cb2716f9337394c
Author: Ramesh Mani <[email protected]>
AuthorDate: Wed Mar 2 11:59:17 2022 -0800

    RANGER-3651:Remove jersey1.x version dependency for knox plugin
---
 knox-agent/pom.xml                                                  | 6 ------
 .../apache/ranger/admin/client/RangerAdminJersey2RESTClient.java    | 3 +--
 2 files changed, 1 insertion(+), 8 deletions(-)

diff --git a/knox-agent/pom.xml b/knox-agent/pom.xml
index e5d5af6..9cd84e0 100644
--- a/knox-agent/pom.xml
+++ b/knox-agent/pom.xml
@@ -71,12 +71,6 @@
             <artifactId>jersey-client</artifactId>
         </dependency>
         <dependency>
-            <groupId>com.sun.jersey</groupId>
-            <artifactId>jersey-client</artifactId>
-            <type>jar</type>
-            <version>${jersey-bundle.version}</version>
-        </dependency>
-        <dependency>
             <groupId>com.google.code.gson</groupId>
             <artifactId>gson</artifactId>
         </dependency>
diff --git 
a/knox-agent/src/main/java/org/apache/ranger/admin/client/RangerAdminJersey2RESTClient.java
 
b/knox-agent/src/main/java/org/apache/ranger/admin/client/RangerAdminJersey2RESTClient.java
index c60d647..09f46eb 100644
--- 
a/knox-agent/src/main/java/org/apache/ranger/admin/client/RangerAdminJersey2RESTClient.java
+++ 
b/knox-agent/src/main/java/org/apache/ranger/admin/client/RangerAdminJersey2RESTClient.java
@@ -61,7 +61,6 @@ import com.google.gson.JsonDeserializationContext;
 import com.google.gson.JsonDeserializer;
 import com.google.gson.JsonElement;
 import com.google.gson.JsonParseException;
-import com.sun.jersey.api.client.ClientHandlerException;
 
 public class RangerAdminJersey2RESTClient extends AbstractRangerAdminClient {
 
@@ -1192,7 +1191,7 @@ public class RangerAdminJersey2RESTClient extends 
AbstractRangerAdminClient {
                } else if (isLastUrl) {
                        LOG.error("Failed to communicate with all Ranger 
Admin's URL's : [ " + configURLs + " ]");
 
-                       throw new ClientHandlerException("Failed to communicate 
with all Ranger Admin's URL : [ "+ configURLs+" ]", ex);
+                       throw new ProcessingException("Failed to communicate 
with all Ranger Admin's URL : [ "+ configURLs+" ]", ex);
                }
 
                return ret;

Reply via email to