[ 
https://issues.apache.org/jira/browse/PHOENIX-7290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17831517#comment-17831517
 ] 

Jeff commented on PHOENIX-7290:
-------------------------------

Thanks for the response,

I noticed this same error appeared in this ticket 
https://issues.apache.org/jira/browse/PHOENIX-5231 which was introduced since 
4.15.

 

The error is thrown when guidePostsCacheFactory is null when 
loadAndGetGuidePostsCacheFactory() is called 

[https://github.com/apache/phoenix/blob/5.1.3/phoenix-core/src/main/java/org/apache/phoenix/query/GuidePostsCacheProvider.java#L57]

 

Here's two error stack, one from SQLSquirrel and another using spring-jdbc 
under OSGi framework.

[^spring-jdbc_error_stack.txt]

[^SQLSquirrel_error_stack.txt]

Is there any workaround to resolve this error when using the client jar as a 
third-party library?

 

> 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)

Reply via email to