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

Error FileSystem Attachment Porter extension on Xwiki 3.5

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.5
    • Fix Version/s: None
    • Component/s: Storage
    • Labels:
      None
    • keywords:
      FileSystem,Attachment,Porter,extension,3.5
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Hello,

      I am trying to run the script to migrate the attchments from database to filessytem :
      http://extensions.xwiki.org/xwiki/bin/view/Extension/Filesystem+Attachment+Porter

      The script worked perfectly on xwiki 3.1 but not on 3.5.
      First there was class import problem, that I resolved like that :

      // outdated import com.xpn.xwiki.doc.ListAttachmentArchive;
      import org.xwiki.store.legacy.doc.internal.ListAttachmentArchive
      // outdated import com.xpn.xwiki.store.FilesystemAttachmentStore;
      import org.xwiki.store.legacy.store.internal.FilesystemAttachmentStore;
      // outdated import com.xpn.xwiki.store.XWikiHibernateTransaction;
      import org.xwiki.store.legacy.store.internal.XWikiHibernateTransaction;
      

      Now, I have this error :

      Caused by: javax.script.ScriptException: javax.script.ScriptException: java.lang.RuntimeException: Failed to load component [com.xpn.xwiki.store.XWikiAttachmentStoreInterface] for hint [default]
      	at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:122)
      	at org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.eval(AbstractJSR223ScriptMacro.java:277)
      	at org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.evaluateBlock(AbstractJSR223ScriptMacro.java:209)
      	at org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.evaluateBlock(AbstractJSR223ScriptMacro.java:169)
      	... 100 more
      Caused by: javax.script.ScriptException: java.lang.RuntimeException: Failed to load component [com.xpn.xwiki.store.XWikiAttachmentStoreInterface] for hint [default]
      	at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:323)
      	at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:116)
      	... 103 more
      Caused by: java.lang.RuntimeException: Failed to load component [com.xpn.xwiki.store.XWikiAttachmentStoreInterface] for hint [default]
      	at com.xpn.xwiki.web.Utils.getComponent(Utils.java:646)
      	at com.xpn.xwiki.web.Utils$getComponent$0.call(Unknown Source)
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
      	at Script4.doIt(Script4.groovy:105)
      	at Script4.main(Script4.groovy:76)
      	at Script4.run(Script4.groovy:32)
      	at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:320)
      	... 104 more
      Caused by: org.xwiki.component.manager.ComponentLookupException: Can't find descriptor for the component [role = [com.xpn.xwiki.store.XWikiAttachmentStoreInterface] hint = [default]]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:335)
      	at org.xwiki.component.embed.EmbeddableComponentManager.lookup(EmbeddableComponentManager.java:147)
      	at org.xwiki.component.internal.DefaultComponentManager.lookup(DefaultComponentManager.java:72)
      	at com.xpn.xwiki.web.Utils.getComponent(Utils.java:644)
      	... 112 more
      

      Has anyone succeeded run the script on Xwiki 3.5 ?

      Thanks for your help.

      Fred

        Attachments

          Activity

            People

            • Assignee:
              vmassol Vincent Massol
              Reporter:
              fred29 Fred blabla
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

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