[
https://issues.apache.org/jira/browse/HBASE-29768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18044875#comment-18044875
]
Xiao Liu commented on HBASE-29768:
----------------------------------
Hi, [~guluo], after reviewing the code, I found that the issue I mentioned
earlier was a feature introduced in
[HBase-29276|https://issues.apache.org/jira/browse/HBASE-29276], thanks to
[~paksyd] for his hard work in refactoring this part.
> Error occurs when clicking View L2 block cache as json in UI
> ------------------------------------------------------------
>
> Key: HBASE-29768
> URL: https://issues.apache.org/jira/browse/HBASE-29768
> Project: HBase
> Issue Type: Bug
> Components: BlockCache, UI
> Reporter: guluo
> Assignee: Dávid Paksy
> Priority: Major
> Attachments: image-2025-12-10-12-59-22-533.png, screenshot-1.png
>
>
> When L2 BlockCache is enabled, opening the RegionServer’s L2 BlockCache UI
> and clicking `View block cache as JSON` will cause the following errors.
> Caused by:
> org.apache.hbase.thirdparty.com.google.gson.JsonIOException: Failed making
> field 'java.security.AccessControlContext#context' accessible; either
> increase its visibility or write a custom TypeAdapter for its declaring type.
> See
> https://github.com/google/gson/blob/main/Troubleshooting.md#reflection-inaccessible
> at
> org.apache.hbase.thirdparty.com.google.gson.internal.reflect.ReflectionHelper.makeAccessible(ReflectionHelper.java:76)
> at
> org.apache.hbase.thirdparty.com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:388)
> at
> org.apache.hbase.thirdparty.com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:161)
> at org.apache.hbase.thirdparty.com.google.gson.Gson.getAdapter(Gson.java:628)
> at
> org.apache.hbase.thirdparty.com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:201)
> at
> org.apache.hbase.thirdparty.com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:395)
> at
> org.apache.hbase.thirdparty.com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:161)
> at org.apache.hbase.thirdparty.com.google.gson.Gson.getAdapter(Gson.java:628)
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)