Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-14699

Errors updating the Blog Application in DW when upgrading XWiki from pre 9.3 version

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 8.4.5, 9.7
    • Fix Version/s: None
    • Labels:
    • Environment:
      Windows 10 Pro 64 bit, Chrome v.61, Firefox v.55, IE v.11
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Preconditions: An instance of XWiki v8.4.5 and an instance of XWiki v9.7 (to which will be migrated) are available.

      STEPS TO REPRODUCE:

      1. Delete the 'data' folder from the newer version
      2. Copy the 'data' folder from the older version and paste it in the folder of the newer version
      3. Start XWiki
      4. On Step 3 of the Distribution Wizard, click 'Check for updates' Button
      5. After the checking process is finished, click on 'Upgrade' Button from Blog Application
      6. Click 'Continue'
      7. Observe the install log

      EXPECTED RESULTS

      The extensions are updated as needed and the upgrade to the newer XWiki version (v 9.7) is successfully completed without any errors.

      ACTUAL RESULTS

      When upgrading the Blog Application Extension, some errors/warnings appear in the install log (screenshots attached), regardless of the configured database (HyperSQL, PostGreSQL, MySQL or Oracle).

      Here are the stacktraces for errors:

      ~ No versions available for id [org.xwiki.platform:xwiki-platform-blog-api] and version range [[9.7]]:
      
      class org.xwiki.extension.ResolveException: Failed to resolve version range
          at org.xwiki.extension.repository.aether.internal.AetherExtensionRepository.resolveVersionRange(AetherExtensionRepository.java:302)
          at org.xwiki.extension.repository.aether.internal.AetherExtensionRepository.resolveVersionConstraint(AetherExtensionRepository.java:263)
          at org.xwiki.extension.repository.aether.internal.AetherExtensionRepository.resolveMaven(AetherExtensionRepository.java:355)
          at org.xwiki.extension.repository.aether.internal.AetherExtensionRepository.resolve(AetherExtensionRepository.java:201)
          at org.xwiki.extension.repository.internal.DefaultExtensionRepositoryManager.resolve(DefaultExtensionRepositoryManager.java:357)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.resolveExtension(AbstractInstallPlanJob.java:815)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtensionDependency(AbstractInstallPlanJob.java:647)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installMandatoryExtensionDependency(AbstractInstallPlanJob.java:619)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installOptionalExtensionDependency(AbstractInstallPlanJob.java:530)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:971)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:765)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:309)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:277)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.start(AbstractInstallPlanJob.java:208)
          at org.xwiki.extension.job.internal.InstallPlanJob.runInternal(InstallPlanJob.java:88)
          at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:206)
          at org.xwiki.job.AbstractJob.run(AbstractJob.java:189)
          at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:112)
          at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:206)
          at org.xwiki.job.AbstractJob.run(AbstractJob.java:189)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)
      Caused by: class org.xwiki.extension.ExtensionNotFoundException: No versions available for id [org.xwiki.platform:xwiki-platform-blog-api] and version range [[9.7]]
          at org.xwiki.extension.repository.aether.internal.AetherExtensionRepository.resolveVersionRange(AetherExtensionRepository.java:296)
          at org.xwiki.extension.repository.aether.internal.AetherExtensionRepository.resolveVersionConstraint(AetherExtensionRepository.java:263)
          at org.xwiki.extension.repository.aether.internal.AetherExtensionRepository.resolveMaven(AetherExtensionRepository.java:355)
          at org.xwiki.extension.repository.aether.internal.AetherExtensionRepository.resolve(AetherExtensionRepository.java:201)
          at org.xwiki.extension.repository.internal.DefaultExtensionRepositoryManager.resolve(DefaultExtensionRepositoryManager.java:357)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.resolveExtension(AbstractInstallPlanJob.java:815)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtensionDependency(AbstractInstallPlanJob.java:647)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installMandatoryExtensionDependency(AbstractInstallPlanJob.java:619)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installOptionalExtensionDependency(AbstractInstallPlanJob.java:530)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:971)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:765)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:309)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:277)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.start(AbstractInstallPlanJob.java:208)
          at org.xwiki.extension.job.internal.InstallPlanJob.runInternal(InstallPlanJob.java:88)
          at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:206)
          at org.xwiki.job.AbstractJob.run(AbstractJob.java:189)
          at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:112)
          at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:206)
          at org.xwiki.job.AbstractJob.run(AbstractJob.java:189)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)
      
      ---------------------------------------------------------------------------
      ~ Can't find any version with id [org.xwiki.platform:xwiki-platform-blog-api] matching version constraint [{[9.2,]},{[9.7]}]:
      
      class org.xwiki.extension.ResolveException: Failed to create extension object for extension dependency [org.xwiki.platform:xwiki-platform-blog-api-{[9.2,]},{[9.7]}]
          at org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.resolve(XWikiExtensionRepository.java:377)
          at org.xwiki.extension.repository.internal.DefaultExtensionRepositoryManager.resolve(DefaultExtensionRepositoryManager.java:357)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.resolveExtension(AbstractInstallPlanJob.java:815)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtensionDependency(AbstractInstallPlanJob.java:647)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installMandatoryExtensionDependency(AbstractInstallPlanJob.java:619)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installOptionalExtensionDependency(AbstractInstallPlanJob.java:530)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:971)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:765)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:309)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:277)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.start(AbstractInstallPlanJob.java:208)
          at org.xwiki.extension.job.internal.InstallPlanJob.runInternal(InstallPlanJob.java:88)
          at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:206)
          at org.xwiki.job.AbstractJob.run(AbstractJob.java:189)
          at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:112)
          at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:206)
          at org.xwiki.job.AbstractJob.run(AbstractJob.java:189)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)
      Caused by: class org.xwiki.extension.ExtensionNotFoundException: Can't find any version with id [org.xwiki.platform:xwiki-platform-blog-api] matching version constraint [{[9.2,]},{[9.7]}]
          at org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.resolve(XWikiExtensionRepository.java:361)
          at org.xwiki.extension.repository.internal.DefaultExtensionRepositoryManager.resolve(DefaultExtensionRepositoryManager.java:357)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.resolveExtension(AbstractInstallPlanJob.java:815)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtensionDependency(AbstractInstallPlanJob.java:647)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installMandatoryExtensionDependency(AbstractInstallPlanJob.java:619)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installOptionalExtensionDependency(AbstractInstallPlanJob.java:530)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:971)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:765)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:309)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:277)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.start(AbstractInstallPlanJob.java:208)
          at org.xwiki.extension.job.internal.InstallPlanJob.runInternal(InstallPlanJob.java:88)
          at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:206)
          at org.xwiki.job.AbstractJob.run(AbstractJob.java:189)
          at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:112)
          at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:206)
          at org.xwiki.job.AbstractJob.run(AbstractJob.java:189)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)
      
      ---------------------------------------------------------------------------
      ~ Can't find any version with id [org.xwiki.platform:xwiki-platform-blog-api] matching version constraint [{[9.2,]},{[9.7]}]:
      
      The stacktrace is identical as the one above.
      ---------------------------------------------------------------------------
      
      ~ org.xwiki.notifications.NotificationDisplayer:
      
      class java.lang.NoClassDefFoundError: org/xwiki/notifications/NotificationDisplayer
          at java.lang.ClassLoader.defineClass1(Native Method)
          at java.lang.ClassLoader.defineClass(Unknown Source)
          at java.security.SecureClassLoader.defineClass(Unknown Source)
          at org.xwiki.classloader.URIClassLoader.defineClass(URIClassLoader.java:238)
          at org.xwiki.classloader.URIClassLoader$1.run(URIClassLoader.java:188)
          at org.xwiki.classloader.URIClassLoader$1.run(URIClassLoader.java:180)
          at java.security.AccessController.doPrivileged(Native Method)
          at org.xwiki.classloader.URIClassLoader.findClass(URIClassLoader.java:179)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at org.xwiki.component.annotation.ComponentAnnotationLoader.register(ComponentAnnotationLoader.java:159)
          at org.xwiki.component.annotation.ComponentAnnotationLoader.initialize(ComponentAnnotationLoader.java:136)
          at org.xwiki.extension.jar.internal.handler.JarExtensionHandler.loadComponents(JarExtensionHandler.java:224)
          at org.xwiki.extension.jar.internal.handler.JarExtensionHandler.install(JarExtensionHandler.java:164)
          at org.xwiki.extension.handler.internal.DefaultExtensionHandlerManager.install(DefaultExtensionHandlerManager.java:85)
          at org.xwiki.extension.job.internal.AbstractExtensionJob.installExtension(AbstractExtensionJob.java:306)
          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:206)
          at org.xwiki.job.AbstractJob.run(AbstractJob.java:189)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)
      Caused by: class java.lang.ClassNotFoundException: org.xwiki.notifications.NotificationDisplayer
          at org.xwiki.classloader.URIClassLoader$1.run(URIClassLoader.java:193)
          at org.xwiki.classloader.URIClassLoader$1.run(URIClassLoader.java:180)
          at java.security.AccessController.doPrivileged(Native Method)
          at org.xwiki.classloader.URIClassLoader.findClass(URIClassLoader.java:179)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.defineClass1(Native Method)
          at java.lang.ClassLoader.defineClass(Unknown Source)
          at java.security.SecureClassLoader.defineClass(Unknown Source)
          at org.xwiki.classloader.URIClassLoader.defineClass(URIClassLoader.java:238)
          at org.xwiki.classloader.URIClassLoader$1.run(URIClassLoader.java:188)
          at org.xwiki.classloader.URIClassLoader$1.run(URIClassLoader.java:180)
          at java.security.AccessController.doPrivileged(Native Method)
          at org.xwiki.classloader.URIClassLoader.findClass(URIClassLoader.java:179)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at org.xwiki.component.annotation.ComponentAnnotationLoader.register(ComponentAnnotationLoader.java:159)
          at org.xwiki.component.annotation.ComponentAnnotationLoader.initialize(ComponentAnnotationLoader.java:136)
          at org.xwiki.extension.jar.internal.handler.JarExtensionHandler.loadComponents(JarExtensionHandler.java:224)
          at org.xwiki.extension.jar.internal.handler.JarExtensionHandler.install(JarExtensionHandler.java:164)
          at org.xwiki.extension.handler.internal.DefaultExtensionHandlerManager.install(DefaultExtensionHandlerManager.java:85)
          at org.xwiki.extension.job.internal.AbstractExtensionJob.installExtension(AbstractExtensionJob.java:306)
          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:206)
          at org.xwiki.job.AbstractJob.run(AbstractJob.java:189)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source) 

      ---------------------------------------------------------------------------
      NOTE: However, after all the above steps, if clicked 'Later' and 'Continue', the user is advanced to the XWiki 9.7 upgraded instance where the Blog Application can be upgraded to version 9.5 from the Extension Manager.

      Also, it is to be noted that when upgrading from XWiki 9.6 to 9.7 (even with Blog App installed on 9.6 and downgraded to an older version) the issue is not reproducing, as the Step 3 (update extensions) of the Distribution Wizard is skipped.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                iandriuta Ilie Andriuta
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Date of First Response: