cancel
Showing results for 
Search instead for 
Did you mean: 

Record Management - RM Scheduled Actions Problem

lascaux
Champ on-the-rise
Champ on-the-rise
Hi,

I am playing with the latest version of the RM module with Alfresco 2.1 community.
Its installation went perfectly,
I created my fileplan space,
I setup some properties (cut-off period : 1 day; hold: 5 days; transfer to alfresco space /Company Home/Transfer)
I inserted a record and leave the cutoff date to the proposed value

I modify the RM scheduled tasks to run every 30 min (rather than at 2.30am) but the scripts that should be called are failing


10:00:00,015 ERROR [org.quartz.core.JobRunShell] Job DEFAULT.org_alfresco_module_RecordsManagement_scheduledCutoffJobDetail threw an unhandled Exception:
org.alfresco.service.cmr.repository.ScriptException: Failed to execute script 'alfresco/module/org.alfresco.module.RecordsManagement/script/scheduled/scheduled_cutoff.js': Failed to execute script 'alfresco/module/org.alfresco.module.RecordsManagement/script/scheduled/scheduled_cutoff.js': null
   at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:222)
   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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
   at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:40)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   at org.alfresco.repo.audit.AuditComponentImpl.auditImpl(AuditComponentImpl.java:256)
   at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:191)
   at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
   at $Proxy48.executeScript(Unknown Source)
   at org.alfresco.repo.jscript.ExecuteScriptJob.execute(ExecuteScriptJob.java:86)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: org.alfresco.service.cmr.repository.ScriptException: Failed to execute script 'alfresco/module/org.alfresco.module.RecordsManagement/script/scheduled/scheduled_cutoff.js': null
   at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:116)
   at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:218)
   … 22 more
Caused by: java.lang.NullPointerException
   at org.alfresco.repo.jscript.RhinoScriptProcessor.convertToRhinoModel(RhinoScriptProcessor.java:541)
   at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:468)
   at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:112)
   … 23 more
10:00:00,015 ERROR [org.quartz.core.ErrorLogger] Job (DEFAULT.org_alfresco_module_RecordsManagement_scheduledCutoffJobDetail threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.alfresco.service.cmr.repository.ScriptException: Failed to execute script 'alfresco/module/org.alfresco.module.RecordsManagement/script/scheduled/scheduled_cutoff.js': Failed to execute script 'alfresco/module/org.alfresco.module.RecordsManagement/script/scheduled/scheduled_cutoff.js': null]
   at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: org.alfresco.service.cmr.repository.ScriptException: Failed to execute script 'alfresco/module/org.alfresco.module.RecordsManagement/script/scheduled/scheduled_cutoff.js': Failed to execute script 'alfresco/module/org.alfresco.module.RecordsManagement/script/scheduled/scheduled_cutoff.js': null
   at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:222)
   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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
   at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:40)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   at org.alfresco.repo.audit.AuditComponentImpl.auditImpl(AuditComponentImpl.java:256)
   at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:191)
   at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
   at $Proxy48.executeScript(Unknown Source)
   at org.alfresco.repo.jscript.ExecuteScriptJob.execute(ExecuteScriptJob.java:86)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
   … 1 more
Caused by: org.alfresco.service.cmr.repository.ScriptException: Failed to execute script 'alfresco/module/org.alfresco.module.RecordsManagement/script/scheduled/scheduled_cutoff.js': null
   at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:116)
   at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:218)
   … 22 more
Caused by: java.lang.NullPointerException
   at org.alfresco.repo.jscript.RhinoScriptProcessor.convertToRhinoModel(RhinoScriptProcessor.java:541)
   at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:468)
   at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:112)
   … 23 more

How can we resolve this issue ?

Best regards,
Sylvain
5 REPLIES 5

lascaux
Champ on-the-rise
Champ on-the-rise
hum, nobody has the problem ???

andy
Champ on-the-rise
Champ on-the-rise
Hi

This is a known issue.

Andy

lascaux
Champ on-the-rise
Champ on-the-rise
thx for the answer

Sylvain

xerox
Champ in-the-making
Champ in-the-making
Will it be fixed in the enterprise edition? or isn't there a new release of RMmodule?

marc1911
Champ in-the-making
Champ in-the-making
Hi I've this problem also using Alfresco RecordManagement 2.1.0.amp

Every time it Fails to execute script 'alfresco/module/org.alfresco.module.RecordsManagement/script/scheduled/scheduled_removeHold.js': null

I've seen on JIRA (http://issues.alfresco.com/browse/RM-24) that it's already fixed. when will it be available?

Regards,

Marc