[ https://issues.apache.org/jira/browse/HBASE-28967?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17896347#comment-17896347 ]
dingbaosheng edited comment on HBASE-28967 at 11/7/24 2:49 PM: --------------------------------------------------------------- Dear [~zhangduo] We are using {{hbase-thirdparty}} in HBase 2.3.4 to resolve the Jetty 9.3 conflict. However, {{hbase-thirdparty-jersey}} only supports object-to-XML conversion and not object-to-JSON. Upon investigation, we found that only {{jersey-media-jaxb}} is included during packaging, while {{jersey-media-json-jackson}} is missing. This causes an exception when the {{reset}} interface is requested to return JSON, as the conversion fails. [HBASE-23834|https://issues.apache.org/jira/browse/HBASE-23834] was (Author: dingbaosheng): Dear [~zhangduo] We are using {{hbase-thirdparty}} in HBase 2.3.4 to resolve the Jetty 9.3 conflict. However, {{hbase-thirdparty-jersey}} only supports object-to-XML conversion and not object-to-JSON. Upon investigation, we found that only {{jersey-media-jaxb}} is included during packaging, while {{jersey-media-json-jackson}} is missing. This causes an exception when the {{reset}} interface is requested to return JSON, as the conversion fails. [HBASE-23834|https://issues.apache.org/jira/browse/HBASE-28967] > [hbase-thirdparty] add jersey-media-json-jackson in hbase-shaded-jersey > ------------------------------------------------------------------------ > > Key: HBASE-28967 > URL: https://issues.apache.org/jira/browse/HBASE-28967 > Project: HBase > Issue Type: Bug > Affects Versions: thirdparty-4.1.9 > Reporter: dingbaosheng > Assignee: dingbaosheng > Priority: Major > Labels: pull-request-available > > In a REST service built using hbase-shaded-jersey.jar, I'm unable to convert > a Response object into a JSON string. > The reason I cannot convert a Response object to a JSON string in my REST > service built with hbase-shaded-jersey.jar is because it lacks the necessary > dependencies from jersey-media-json-jackson. -- This message was sent by Atlassian Jira (v8.20.10#820010)