[
https://issues.apache.org/jira/browse/PHOENIX-7290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17831651#comment-17831651
]
Istvan Toth commented on PHOENIX-7290:
--------------------------------------
Thank you.
Looking at the code, the problem seems to be that we DO use
PhoenixContextExecutor in CQSI.init(), but we refer to that class in the
constructor, which is not running inside init().
Looks like this would be fixed by moving the cache initialization into the
init() function.
i.e.
This initialization:
https://github.com/apache/phoenix/blob/afdba89b005cb167fafe8530de750ad297f86d5a/phoenix-core-client/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java#L474
should be moved somewhere inside this block:
https://github.com/apache/phoenix/blob/afdba89b005cb167fafe8530de750ad297f86d5a/phoenix-core-client/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java#L3560
I don't have the time to work on this now.
Could you make this change and test to see if it fixes the isse [~zidanej] ?
> Cannot load or instantiate class
> org.apache.phoenix.query.DefaultGuidePostsCacheFactory
> ---------------------------------------------------------------------------------------
>
> Key: PHOENIX-7290
> URL: https://issues.apache.org/jira/browse/PHOENIX-7290
> Project: Phoenix
> Issue Type: Bug
> Reporter: Jeff
> Priority: Major
> Attachments: SQLSquirrel_error_stack.txt, spring-jdbc_error_stack.txt
>
>
> Recently we're trying to update to phoenix 5.1.3 and we're running into an
> issue.
> {code:java}
> org.apache.phoenix.exception.PhoenixNonRetryableRuntimeException: Could not
> load/instantiate class org.apache.phoenix.query.DefaultGuidePostsCacheFactory
> {code}
> I believe there are other areas where this has been brought up such as in SO:
> [https://stackoverflow.com/questions/73194696/phoenixnonretryableruntimeexception-could-not-load-instantiate-class-org-apache]
> The issue seems to have been introduced in 5.1.0, anything in 4.8 or below
> seems to work fine.
> Steps to reproduce:
> # Use Squirrel SQL 4.7.1
> # Create the drivers and load phoenix 5.1.3 into the class path
> # Define alias and test connection
--
This message was sent by Atlassian Jira
(v8.20.10#820010)