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

New PDF export is not available in subwikis

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 15.2-rc-1, 14.10.7
    • 14.10.6
    • Export - PDF
    • None
    • package xwiki-tomcat9-mariadb 14.10.6 on Debian 11.6 (bullseye)
    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      When trying to export a wiki page as PDF in a subwiki (domain based), the old style PDF export appears.

      The following errors can be found in the log (actually on every page view, not only when exporting):

       

      [2023-03-08 15:18:38] [info] 2023-03-08 15:18:38,757 [ajp-nio-127.0.0.1-8009-exec-33 - https://testwiki.localhost.local/xwiki/bin/view/Sandbox/TestPage3] ERROR .s.DefaultScri
      ptServiceManager - Failed to lookup script service for role hint [export.pdf]
      [2023-03-08 15:18:38] [info] org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.export.pdf.script.PDFExportScriptService] identified b
      y type [interface org.xwiki.script.service.ScriptService] and hint [export.pdf]
      [2023-03-08 15:18:38] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:204)
      [2023-03-08 15:18:38] [info] #011at org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)
      [2023-03-08 15:18:38] [info] #011at org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)
      [2023-03-08 15:18:38] [info] #011at org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)
      [2023-03-08 15:18:38] [info] #011at org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)
      [2023-03-08 15:18:38] [info] #011at org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)
      [2023-03-08 15:18:38] [info] #011at org.xwiki.script.internal.service.DefaultScriptServiceManager.get(DefaultScriptServiceManager.java:65)
      [[ snip unreasonably long stack trace ]]
      
      [2023-03-08 15:18:38] [info] Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.export.pdf.internal.job.DefaultPDFExportJobRequestFactory] identified by type [interface org.xwiki.export.pdf.job.PDFExportJobRequestFactory] and hint [default]
      [2023-03-08 15:18:38] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:204)
      [2023-03-08 15:18:38] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.getDependencyInstance(EmbeddableComponentManager.java:406)
      [2023-03-08 15:18:38] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:355)
      [2023-03-08 15:18:38] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:451)
      [2023-03-08 15:18:38] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:201)
      [2023-03-08 15:18:38] [info] #011... 249 common frames omitted
      [2023-03-08 15:18:38] [info] Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.export.pdf.internal.DefaultPDFExportConfiguration] identified by type [interface org.xwiki.export.pdf.PDFExportConfiguration] and hint [default]
      [2023-03-08 15:18:38] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:204)
      [2023-03-08 15:18:38] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.getDependencyInstance(EmbeddableComponentManager.java:406)
      [2023-03-08 15:18:38] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:355)
      [2023-03-08 15:18:38] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:451)
      [2023-03-08 15:18:38] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:201)
      [2023-03-08 15:18:38] [info] #011... 253 common frames omitted
      [2023-03-08 15:18:38] [info] Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.export.pdf.internal.PDFExportConfigurationSource] identified by type [interface org.xwiki.configuration.ConfigurationSource] and hint [export/pdf]
      [2023-03-08 15:18:38] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:204)
      [2023-03-08 15:18:38] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.getDependencyInstance(EmbeddableComponentManager.java:406)
      [2023-03-08 15:18:38] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:355)
      [2023-03-08 15:18:38] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:451)
      [2023-03-08 15:18:38] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:201)
      [2023-03-08 15:18:38] [info] #011... 257 common frames omitted
      [2023-03-08 15:18:38] [info] Caused by: org.xwiki.component.phase.InitializationException: Failed to initialize cache
      [2023-03-08 15:18:38] [info] #011at org.xwiki.configuration.internal.AbstractDocumentConfigurationSource.initialize(AbstractDocumentConfigurationSource.java:139)
      [2023-03-08 15:18:38] [info] #011at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
      [2023-03-08 15:18:38] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:365)
      [2023-03-08 15:18:38] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:451)
      [2023-03-08 15:18:38] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:201)
      [2023-03-08 15:18:38] [info] #011... 261 common frames omitted
      [2023-03-08 15:18:38] [info] Caused by: org.xwiki.cache.CacheException: Cache with name [configuration.document.export.pdf] already exist
      [2023-03-08 15:18:38] [info] #011at org.xwiki.cache.infinispan.internal.InfinispanCacheFactory.newCache(InfinispanCacheFactory.java:152)
      [2023-03-08 15:18:38] [info] #011at org.xwiki.cache.internal.DefaultCacheManager.createNewCache(DefaultCacheManager.java:112)
      [2023-03-08 15:18:38] [info] #011at org.xwiki.cache.internal.DefaultCacheManager.createNewCache(DefaultCacheManager.java:85)
      [2023-03-08 15:18:38] [info] #011at org.xwiki.configuration.internal.AbstractDocumentConfigurationSource.initialize(AbstractDocumentConfigurationSource.java:137)
      [2023-03-08 15:18:38] [info] #011... 265 common frames omitted
      

      It seems the PDF export component is registered at wiki level and tries to register a cache for every (sub)wiki with the same name.

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            camil7 Clemens Robbenhaar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: