1 Reply Latest reply: Mar 7, 2007 6:58 AM by 807596 RSS

    any one know on quartz scheduling

    807596
      Hi,
      I am getting a problem in rescheduling the job using quartz.
      thhis is my sample code.
      Date newtime=new Date(date.getTime()+(10000L*6L*cim));
           JobDetail job = new JobDetail("job1", "group1",SimpleJob.class);
           SimpleTrigger trigger = new SimpleTrigger ("trigger","group", newtime);
           sched.rescheduleJob("job1","group1",trigger);

      i am getting the exception as :
      org.quartz.SchedulerException: Trigger's related Job's name cannot be null
           at org.quartz.Trigger.validate(Trigger.java:906)
           at org.quartz.SimpleTrigger.validate(SimpleTrigger.java:853)
           at org.quartz.core.QuartzScheduler.rescheduleJob(QuartzScheduler.java:857)
           at org.quartz.impl.StdScheduler.rescheduleJob(StdScheduler.java:314)
           at SchedulerMaint.resetScheduler(SchedulerMaint.java:80)
           at Test.main(Test.java:31)
        • 1. Re: any one know on quartz scheduling
          807596
          you can't use ==>SimpleTrigger(String name, String group, Date startTime) <== Contract not have String jobName


          this right ==>
          SimpleTrigger(String name, String group, String jobName, String jobGroup, Date startTime, Date endTime, int repeatCount, long repeatInterval)