10 Replies Latest reply: Jan 20, 2013 7:16 AM by 961125 RSS

    Exception while running custom scheduler OIM 11g R1

    961125
      I have OIM 11g R1 installed on win 32 platform, and am getting the following exception while running the custom scheduler: Samplescheduledtask


      <Jan 12, 2013 7:37:13 PM IST> <Warning> <oracle.iam.scheduler.impl> <BEA-000000>
      <XSD Validation Exception: org.xml.sax.SAXParseException: cvc-elt.1: Cannot fin
      d the declaration of element 'scheduledTasks'.>
      <Jan 12, 2013 7:37:13 PM IST> <Warning> <oracle.iam.scheduler.impl> <BEA-000000>
      <XSD Validation Exception: org.xml.sax.SAXParseException: cvc-elt.1: Cannot fin
      d the declaration of element 'scheduledTasks'.>
      <Jan 12, 2013 7:37:13 PM IST> <Warning> <oracle.iam.scheduler.impl> <BEA-000000>
      <XSD Validation Exception: org.xml.sax.SAXParseException: cvc-elt.1: Cannot fin
      d the declaration of element 'scheduledTasks'.>
      <Jan 12, 2013 7:37:13 PM IST> <Warning> <oracle.iam.scheduler.impl> <BEA-000000>
      <XSD Validation Exception: org.xml.sax.SAXParseException: cvc-elt.1: Cannot fin
      d the declaration of element 'scheduledTasks'.>
      <Jan 12, 2013 7:37:13 PM IST> <Warning> <oracle.iam.scheduler.impl> <BEA-000000>
      <XSD Validation Exception: org.xml.sax.SAXParseException: cvc-elt.1: Cannot fin
      d the declaration of element 'scheduledTasks'.>
      <Jan 12, 2013 7:37:13 PM IST> <Warning> <oracle.iam.scheduler.impl> <BEA-000000>
      <XSD Validation Exception: org.xml.sax.SAXParseException: cvc-elt.1: Cannot fin
      d the declaration of element 'scheduledTasks'.>
      java.lang.ClassNotFoundException: ADP ClassLoader failed to load: oracle.iam.sam
      ple.scheduledtask.SampleScheduledTask
      at com.thortech.xl.dataobj.tcADPClassLoader.findClass(tcADPClassLoader.j
      ava:219)
      at oracle.iam.transUI.impl.CustomTaskLoaderImpl.getClassInstance(CustomT
      askLoaderImpl.java:12)
      at oracle.iam.scheduler.impl.quartz.QuartzJob.execute(QuartzJob.java:146
      )
      at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
      ava:529)
      java.lang.ClassNotFoundException: ADP ClassLoader failed to load: oracle.iam.sam
      ple.scheduledtask.SampleScheduledTask
      at com.thortech.xl.dataobj.tcADPClassLoader.findClass(tcADPClassLoader.j
      ava:219)
      at oracle.iam.transUI.impl.CustomTaskLoaderImpl.getClassInstance(CustomT
      askLoaderImpl.java:12)
      at oracle.iam.scheduler.impl.quartz.QuartzJob.execute(QuartzJob.java:146
      )
      at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
      ava:529)
      java.lang.ClassNotFoundException: ADP ClassLoader failed to load: oracle.iam.sam
      ple.scheduledtask.SampleScheduledTask
      at com.thortech.xl.dataobj.tcADPClassLoader.findClass(tcADPClassLoader.j
      ava:219)
      at oracle.iam.transUI.impl.CustomTaskLoaderImpl.getClassInstance(CustomT
      askLoaderImpl.java:12)
      at oracle.iam.scheduler.impl.quartz.QuartzJob.execute(QuartzJob.java:146
      )
      at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
      ava:529)

      Following is the code of the custom scheduler:
      package oracle.iam.sample.scheduledtask;

      import java.util.HashMap;

      import oracle.iam.scheduler.vo.TaskSupport;

      public class SampleScheduledTask extends TaskSupport {
      public void execute(HashMap hashMap) throws Exception {
      // Display a message when this scheduled task is run
      System.out.println("Running the OIM Sample Scheduled Task...");
      }

      public HashMap getAttributes() {
      return null;
      }

      public void setAttributes() {
      }
      }
      kindly suggest......

      Regards,
      KK

      Edited by: 958122 on Jan 12, 2013 11:38 PM