1 Reply Latest reply: May 3, 2012 9:24 PM by Rajiv Dewan RSS

    OIM 11g Running Custom Query on OIM database.

    785059
      Hi All,

      I am trying to run a custom query in a schedule task. I used the fallowing code in the schedule task to get the database reference.

      private tcDataProvider db;

      public CustomTask() {
      super();
      this.db = new tcDataBaseClient();
      }


      In the log at this line I am getting the fallowing error.

      <May 3, 2012 12:27:36 PM CDT> <Error> <XELLERATE.DATABASE> <BEA-000000> <Class/Method: tcDataBaseClient/bindToInstance encounter some problems: {1}
      java.lang.NullPointerException
           at com.thortech.xl.dataaccess.tcDataBaseClient.bindToInstance(tcDataBaseClient.java:151)
           at com.thortech.xl.dataaccess.tcDataBaseClient.<init>(tcDataBaseClient.java:75)
           at com.ssi.oim.schtasks.CustomTask.execute(CustomTask.java:76)
           at oracle.iam.scheduler.vo.TaskSupport.executeJob(TaskSupport.java:145)
           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 oracle.iam.scheduler.impl.quartz.QuartzJob.execute(QuartzJob.java:196)
           at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
           at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)

      Any suggestions on how to resolve this issue.

      Karthik