AnsweredAssumed Answered

'Records Management' Pb jobs de transfert et de destruction

Question asked by trikimoh on Jan 19, 2009
Bonjour,
Dans le module RM, les sheduled jobs pour le transfert et la destruction relatifs à des actions préplanifiées dans les FilePlans, ne fonctionnent pas correctement,
en effet, si on active le transfret sur un FilePlan, du moment où la date de transfert est atteinte, le script dispositionAction_transfer.js n'arrive pas à faire son job comme l'indiquent les logs suivants :

15:51:00,796 ERROR [org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl] Failed to execute asynchronous action: Action[ id=cb5be662-3d4f-417e-8748-3e8df40e38a0, node=null ]
org.alfresco.scripts.ScriptException: Failed to execute script 'alfresco/module/org.alfresco.module.RecordsManagement/script/action/dispositionAction_transfer.js': Failed to execute script 'alfresco/module/org.alfresco.module.RecordsManagement/script/action/dispositionAction_transfer.js': Wrapped org.alfresco.error.AlfrescoRuntimeException: Failed to execute search: workspace://SpacesStore/7c453ffa-a9d2-497c-8c10-24c6ca8482d0 (AlfrescoScript#40)
   at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:223)
   at sun.reflect.GeneratedMethodAccessor467.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
   at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:40)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
   at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
   at org.alfresco.repo.audit.AuditComponentImpl.auditImpl(AuditComponentImpl.java:301)
   at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:229)
   at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at $Proxy85.executeScript(Unknown Source)
   at org.alfresco.repo.action.executer.ScriptActionExecuter.executeImpl(ScriptActionExecuter.java:165)
   at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:127)
   at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:591)
   at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:528)
   at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1.execute(AsynchronousActionExecutionQueueImpl.java:371)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:294)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:209)
   at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper.run(AsynchronousActionExecutionQueueImpl.java:381)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
   at java.lang.Thread.run(Thread.java:595)
Caused by: org.alfresco.scripts.ScriptException: Failed to execute script 'alfresco/module/org.alfresco.module.RecordsManagement/script/action/dispositionAction_transfer.js': Wrapped org.alfresco.error.AlfrescoRuntimeException: Failed to execute search: workspace://SpacesStore/7c453ffa-a9d2-497c-8c10-24c6ca8482d0 (AlfrescoScript#40)
   at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:118)
   at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:219)
   … 29 more
Caused by: org.alfresco.error.AlfrescoRuntimeException: Wrapped org.alfresco.error.AlfrescoRuntimeException: Failed to execute search: workspace://SpacesStore/7c453ffa-a9d2-497c-8c10-24c6ca8482d0 (AlfrescoScript#40)
   at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:403)
   at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:114)
   … 30 more
Caused by: org.mozilla.javascript.WrappedException: Wrapped org.alfresco.error.AlfrescoRuntimeException: Failed to execute search: workspace://SpacesStore/7c453ffa-a9d2-497c-8c10-24c6ca8482d0 (AlfrescoScript#40)
   at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1757)
   at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:170)
   at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)
   at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
   at org.mozilla.javascript.gen.c3215._c0(AlfrescoScript:40)
   at org.mozilla.javascript.gen.c3215.call(AlfrescoScript)
   at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
   at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
   at org.mozilla.javascript.gen.c3215.call(AlfrescoScript)
   at org.mozilla.javascript.gen.c3215.exec(AlfrescoScript)
   at org.mozilla.javascript.Context.evaluateString(Context.java:1196)
   at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:396)
   … 31 more
Caused by: org.alfresco.error.AlfrescoRuntimeException: Failed to execute search: workspace://SpacesStore/7c453ffa-a9d2-497c-8c10-24c6ca8482d0
   at org.alfresco.repo.jscript.Search.query(Search.java:451)
   at org.alfresco.repo.jscript.Search.xpathSearch(Search.java:209)
   at org.alfresco.repo.jscript.Search.xpathSearch(Search.java:194)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
   … 41 more
Caused by: java.lang.NullPointerException
   at org.alfresco.repo.search.impl.lucene.query.RelativeStructuredFieldPosition.<init>(RelativeStructuredFieldPosition.java:44)
   at org.alfresco.repo.search.impl.lucene.LuceneXPathHandler.addRelative(LuceneXPathHandler.java:428)
   at org.alfresco.repo.search.impl.lucene.LuceneXPathHandler.startNameStep(LuceneXPathHandler.java:354)
   at com.werken.saxpath.XPathReader.nameTest(XPathReader.java:721)
   at com.werken.saxpath.XPathReader.nodeTest(XPathReader.java:604)
   at com.werken.saxpath.XPathReader.step(XPathReader.java:553)
   at com.werken.saxpath.XPathReader.steps(XPathReader.java:454)
   at com.werken.saxpath.XPathReader.relativeLocationPath(XPathReader.java:438)
   at com.werken.saxpath.XPathReader.locationPath(XPathReader.java:349)
   at com.werken.saxpath.XPathReader.pathExpr(XPathReader.java:162)
   at com.werken.saxpath.XPathReader.unionExpr(XPathReader.java:1001)
   at com.werken.saxpath.XPathReader.unaryExpr(XPathReader.java:989)
   at com.werken.saxpath.XPathReader.multiplicativeExpr(XPathReader.java:940)
   at com.werken.saxpath.XPathReader.additiveExpr(XPathReader.java:911)
   at com.werken.saxpath.XPathReader.relationalExpr(XPathReader.java:868)
   at com.werken.saxpath.XPathReader.equalityExpr(XPathReader.java:839)
   at com.werken.saxpath.XPathReader.andExpr(XPathReader.java:817)
   at com.werken.saxpath.XPathReader.orExpr(XPathReader.java:795)
   at com.werken.saxpath.XPathReader.expr(XPathReader.java:788)
   at com.werken.saxpath.XPathReader.parse(XPathReader.java:105)
   at org.alfresco.repo.search.impl.lucene.ADMLuceneSearcherImpl.query(ADMLuceneSearcherImpl.java:353)
   at org.alfresco.repo.search.impl.lucene.ADMLuceneSearcherImpl.query(ADMLuceneSearcherImpl.java:201)
   at org.alfresco.repo.search.SearcherComponent.query(SearcherComponent.java:68)
   at org.alfresco.repo.search.AbstractSearcherComponent.query(AbstractSearcherComponent.java:59)
   at sun.reflect.GeneratedMethodAccessor466.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
   at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
   at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
   at org.alfresco.repo.audit.AuditComponentImpl.auditImpl(AuditComponentImpl.java:301)
   at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:229)
   at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at $Proxy17.query(Unknown Source)
   at org.alfresco.repo.jscript.Search.query(Search.java:434)
   … 48 more
Ceci est du apparament à un problème de recherche de l'emplacement de transfert par xpath.
Si quelqu'un à rencontré le même problème, merci beaucoup de m'eclairer.

Outcomes