Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error about com.xwiki.macros.internal.ViewFileDisplay while upgrading #293

Open
michitux opened this issue Jul 1, 2024 · 1 comment
Open

Comments

@michitux
Copy link

michitux commented Jul 1, 2024

While upgrading an existing installation of the Pro Macros 1.17.3 to version 1.19.6 on XWiki 16.5.0, I got the following error:

Installing document [Home » Confluence » Macros » ViewFile]
com.xwiki.macros.internal.ViewFileDisplay
class java.lang.ClassNotFoundException: com.xwiki.macros.internal.ViewFileDisplay
    at java.base/java.net.URLClassLoader.findClass(Unknown Source)
    at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
    at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
    at org.xwiki.classloader.xwiki.internal.ContextNamespaceURLClassLoader.loadClass(ContextNamespaceURLClassLoader.java:176)
    at java.base/java.lang.Class.forName0(Native Method)
    at java.base/java.lang.Class.forName(Unknown Source)
    at org.xwiki.component.util.ReflectionUtils.unserializeType(ReflectionUtils.java:548)
    at org.xwiki.rendering.wikimacro.internal.DefaultWikiMacroFactory.buildParameterDescriptors(DefaultWikiMacroFactory.java:302)
    at org.xwiki.rendering.wikimacro.internal.DefaultWikiMacroFactory.buildMacro(DefaultWikiMacroFactory.java:171)
    at org.xwiki.rendering.wikimacro.internal.DefaultWikiMacroFactory.createWikiMacro(DefaultWikiMacroFactory.java:114)
    at org.xwiki.rendering.internal.macro.wikibridge.WikiMacroEventListener.registerMacro(WikiMacroEventListener.java:124)
    at org.xwiki.rendering.internal.macro.wikibridge.WikiMacroEventListener.onEvent(WikiMacroEventListener.java:105)
    at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:338)
    at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:303)
    at com.xpn.xwiki.XWiki.afterSave(XWiki.java:2036)
    at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:2124)
    at org.xwiki.extension.xar.internal.handler.packager.DocumentMergeImporter.saveDocumentSetContextUser(DocumentMergeImporter.java:208)
    at org.xwiki.extension.xar.internal.handler.packager.DocumentMergeImporter.saveDocument(DocumentMergeImporter.java:154)
    at org.xwiki.extension.xar.internal.handler.packager.DocumentMergeImporter.importDocument(DocumentMergeImporter.java:117)
    at org.xwiki.extension.xar.internal.handler.packager.Packager.importDocumentToWiki(Packager.java:230)
    at org.xwiki.extension.xar.internal.handler.packager.Packager.importXARToWiki(Packager.java:184)
    at org.xwiki.extension.xar.internal.handler.packager.Packager.importXARToWiki(Packager.java:157)
    at org.xwiki.extension.xar.internal.handler.packager.Packager.importXAR(Packager.java:148)
    at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.installInternal(XarExtensionHandler.java:189)
    at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.install(XarExtensionHandler.java:150)
    at org.xwiki.extension.handler.internal.DefaultExtensionHandlerManager.install(DefaultExtensionHandlerManager.java:85)
    at org.xwiki.extension.job.internal.AbstractExtensionJob.installExtension(AbstractExtensionJob.java:330)
    at org.xwiki.extension.job.internal.AbstractExtensionJob.applyAction(AbstractExtensionJob.java:233)
    at org.xwiki.extension.job.internal.AbstractExtensionJob.applyActions(AbstractExtensionJob.java:181)
    at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:140)
    at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:246)
    at org.xwiki.job.AbstractJob.run(AbstractJob.java:223)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.base/java.lang.Thread.run(Unknown Source)
Done installing document [Home » Confluence » Macros » ViewFile]

Similar errors were repeated for several documents. I think this might be caused by https://jira.xwiki.org/browse/XWIKI-18965.

@raphj
Copy link
Contributor

raphj commented Jul 17, 2024

@michitux do you know any workaround? Does a XWiki restart fix the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants