There is 1 comment.
 
 
XWiki Commons / cid:jira-generated-image-avatar-34edc1d6-deab-46ad-8795-5f11c08e80f4 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-fcfa1b93-856e-49c2-9579-dcbfcecf1436 Nikita Petrenko on 11/Jun/26 09:02
 

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

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.

Once again, XWiki restart resolves the issue.