There is 1 comment.
 
 
XWiki Commons / cid:jira-generated-image-avatar-fa8d7401-a075-4518-9ca6-6501c3668aac XCOMMONS-3662 Open

Static service cache retains old extension class instances after classloader reload, causing ClassCastException

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-22c21eef-0dcb-4db8-9ca8-e63948583dfa Nikita Petrenko on 12/Jun/26 08:59
 
Another example of how to reproduce error but in XWiki Extension Manager, install old OIDC version {{2.20.3}} and try to upgrade it to latest version, the upgrade process will fail and log will contain these


{noformat}
Failed to get fields for class [org.xwiki.contrib.oidc.consent.internal.store.OIDCConsentStore] because the class [org/xwiki/contrib/oidc/OIDCException] couldn't be found in the ClassLoader.
Failed to get fields for class [org.xwiki.contrib.oidc.internal.DefaultOAuth2TokenStore] because the class [org/xwiki/contrib/oidc/OAuth2Exception] couldn't be found in the ClassLoader.
Extension [org.xwiki.contrib.oidc:oidc-authenticator/2.20.3] cannot be initialized because its dependency ([org.xwiki.contrib.oidc:oauth2-store-2.20.3]) could not.{noformat}
Once again, XWiki restart resolves the issue.