AnsweredAssumed Answered

errors on scripts execution - convert problem?

Question asked by sprosper on Aug 24, 2007
Hi all.
I've installed a community 2.1 version on a linux suse sles 8.
I have also installed support for records management.

I've seen in the log (catalina and alfresco log), I found everyday errors like this:

02:30:00,154 ERROR [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:597)
        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

I've taked a look in the source, but I can't understand which is the problem here

// create the script string from the byte[]
return executeScriptImpl(resolveScriptImports(new String(bytes)), model);

Could anyone tell me something more about possible problems?

Thank you

Outcomes