Hi:

I am using Quartz to schedule a job that runs every 20 seconds to move the 
files from inputdir to outputdir.  I am getting errors.  Please advise.

Thank you,

chandra



Route:

        CamelContext context = new DefaultCamelContext();



            context.addRoutes(new RouteBuilder() {

            public void configure() {

                   from("quartz://myTimer?period=2000").to("file://inputdir")

                   .to("file://output");

            }

        });

  context.start();

        Thread.sleep(10000);

        context.stop();





Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support 
persistence. and is not clustered.



[                          main] StdSchedulerFactory            INFO  Quartz 
scheduler 'DefaultQuartzScheduler-camel-1' initialized from an externally 
provided properties instance.

[                          main] StdSchedulerFactory            INFO  Quartz 
scheduler version: 1.8.5

[                          main] DefaultCamelContext            INFO  Route: 
route1 started and consuming from: 
Endpoint[quartz://myTimer?trigger.repeatCount=-1&trigger.repeatInterval=2000]

[                          main] QuartzComponent                INFO  Starting 
Quartz scheduler: DefaultQuartzScheduler-camel-1

[                          main] QuartzScheduler                INFO  Scheduler 
DefaultQuartzScheduler-camel-1_$_NON_CLUSTERED started.

[                          main] DefaultCamelContext            INFO  Total 1 
routes, of which 1 is started.

[                          main] DefaultCamelContext            INFO  Apache 
Camel 2.10.0 (CamelContext: camel-1) started in 0.625 seconds

[artzScheduler-camel-1_Worker-1] DefaultErrorHandler            ERROR Failed 
delivery for (MessageId: ID-EVG60LT-3-CKALI-52599-1347981629198-0-1 on 
ExchangeId: ID-EVG60LT-3-CKALI-52599-1347981629198-0-2). Exhausted after 
delivery attempt: 1 caught: 
org.apache.camel.component.file.GenericFileOperationFailedException: Cannot 
store file: inputdir\ID-EVG60LT-3-CKALI-52599-1347981629198-0-1

org.apache.camel.component.file.GenericFileOperationFailedException: Cannot 
store file: inputdir\ID-EVG60LT-3-CKALI-52599-1347981629198-0-1

      at 
org.apache.camel.component.file.FileOperations.storeFile(FileOperations.java:246)[camel-core-2.10.0.jar:2.10.0]

      at 
org.apache.camel.component.file.GenericFileProducer.writeFile(GenericFileProducer.java:249)[camel-core-2.10.0.jar:2.10.0]

      at 
org.apache.camel.component.file.GenericFileProducer.processExchange(GenericFileProducer.java:151)[camel-core-2.10.0.jar:2.10.0]

      at 
org.apache.camel.component.file.GenericFileProducer.process(GenericFileProducer.java:76)[camel-core-2.10.0.jar:2.10.0]

      at 
org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)[camel-core-2.10.0.jar:2.10.0]

      at 
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[camel-core-2.10.0.jar:2.10.0]

      at 
org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:120)[camel-core-2.10.0.jar:2.10.0]

      at 
org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:292)[camel-core-2.10.0.jar:2.10.0]

      at o







Reply via email to