Details
-
Bug
-
Resolution: Won't Fix
-
Minor
-
None
-
3.5
-
None
-
FileSystem,Attachment,Porter,extension,3.5
-
Unknown
-
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