Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-1802

NoSuchMethodError when upgrading the standard flavor

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 11.9
    • Fix Version/s: None
    • Component/s: Extension
    • Labels:
    • Environment:
      Debian, package xwiki-tomcat9-common
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      This issue was found when upgrading a standard XWiki Debian package from version 11.7 to 11.9. This farm has no particular customization.

      When accessing the main wiki for the first time after the upgrade, the DW shows up. We can click on "Upgrade" and then "Continue" to upgrade the standard flavor. However, each time we click on "Continue", an error is raised when installing PanelsCode.WebPreferences.

      (note : this is a screenshot that comes from the Extension Updated, not from the DW because I ended up clicking on "Later" at some point, without taking a screenshot. The stacktrace is the same though)

       

      com.xpn.xwiki.doc.merge.MergeConfiguration.setUserReference(Lorg/xwiki/model/reference/EntityReference;)V
      class java.lang. NoSuchMethodError: com.xpn.xwiki.doc.merge.MergeConfiguration.setUserReference(Lorg/xwiki/model/reference/EntityReference;)V
          at org.xwiki.extension.xar.internal.handler.packager.DefaultXWikiDocumentMerger.merge3(DefaultXWikiDocumentMerger.java:214)
          at org.xwiki.extension.xar.internal.handler.packager.DefaultXWikiDocumentMerger.THREEWAYS(DefaultXWikiDocumentMerger.java:158)
          at org.xwiki.extension.xar.internal.handler.packager.DefaultXWikiDocumentMerger.upgrade(DefaultXWikiDocumentMerger.java:122)
          at org.xwiki.extension.xar.internal.handler.packager.DefaultXWikiDocumentMerger.merge(DefaultXWikiDocumentMerger.java:94)
          at org.xwiki.extension.xar.internal.handler.packager.DocumentMergeImporter.importDocument(DocumentMergeImporter.java:112)
          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:201)
          at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.upgrade(XarExtensionHandler.java:185)
          at org.xwiki.extension.handler.internal.DefaultExtensionHandlerManager.upgrade(DefaultExtensionHandlerManager.java:139)
          at org.xwiki.extension.job.internal.AbstractExtensionJob.installExtension(AbstractExtensionJob.java:325)
          at org.xwiki.extension.job.internal.AbstractExtensionJob.applyAction(AbstractExtensionJob.java:209)
          at org.xwiki.extension.job.internal.AbstractExtensionJob.applyActions(AbstractExtensionJob.java:157)
          at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:154)
          at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:240)
          at org.xwiki.job.AbstractJob.run(AbstractJob.java:217)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)
       

        Attachments

          Activity

            People

            • Assignee:
              surli Simon Urli
              Reporter:
              caubin Clément Aubin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: