scheduled action in 4.2c community

cancel
Showing results for 
Search instead for 
Did you mean: 
braguzz
Member II

scheduled action in 4.2c community

hi, I have some problem in scheduling a javascript.

I've read something and in particular http://wiki.alfresco.com/wiki/Scheduled_Actions

but if i create the script in the end of the wiki in scheduled-action-services-context.xml I have tomcat errors.

someone can help me?



salve, ho un po di problemi a schedulare un javascript.

Ho letto un po di cose qua e la fra cui http://wiki.alfresco.com/wiki/Scheduled_Actions

ma inserendo lo script di esempio proposto in fondo alla wiki nel file
scheduled-action-services-context.xml

una volta riavviato tomcat, ho questo tipo di errori

————–
2013-06-12 13:22:15,042  ERROR [quartz.core.JobRunShell] [SolrTrackerScheduler_Worker-1] Job Solr.CoreTracker-archive threw an unhandled Exception:
org.alfresco.error.AlfrescoRuntimeException: 05120022 GetModelsDiff return status is 404
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1036)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1790)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1129)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:475)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
2013-06-12 13:22:15,043  ERROR [quartz.core.ErrorLogger] [SolrTrackerScheduler_Worker-1] Job (Solr.CoreTracker-archive threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.alfresco.error.AlfrescoRuntimeException: 05120022 GetModelsDiff return status is 404]
   at org.quartz.core.JobRunShell.run(JobRunShell.java:227)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.alfresco.error.AlfrescoRuntimeException: 05120022 GetModelsDiff return status is 404
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1036)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1790)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1129)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:475)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   … 1 more
————

che fare?
3 Replies
monocromo
Member II

Re: scheduled action in 4.2c community

Ciao, non ho mai schedulato uno script ma l'errore che ti traccia catalina  "05120022 GetModelsDiff return status is 404", per quanto mi è capitato, è legato ad una incorrettezza dei file xml. Prova a controllare meglio gli xml che hai creato o modificato.
Saluti
braguzz
Member II

Re: scheduled action in 4.2c community

Grazie della risposta, ma sinceramente ho copiato pari pari lo script 'Script Action Example' in http://wiki.alfresco.com/wiki/Scheduled_Actions
modificando solo la parte relativa al PATH dello script…

non so assolutamente come fare debug per questo problema se non modificare qualcosa (ma cosa?) nello script e riavviare tomcat… non sembra pero che la cosa stia pagando…

grazie ancora,
P.
braguzz
Member II

Re: scheduled action in 4.2c community

thanks to http://alch3mi5t.blogspot.it/


It seems you’re running Alfresco with Solr engine. You should stop Alfresco, change the index from Solr to Lucene, because of this:

lucene

so, go to alfresco.global.properties and change the line:
index.subsystem.name=solr
into
index.subsystem.name=lucene

Then you should add(or change if you already have it) this:
index.recovery.mode=FULL