2 Replies Latest reply: May 2, 2012 6:14 AM by Powerlad RSS

    OIM 11g  DB error

    Powerlad
      Hi All,

      I am trying to run the following code from eclipse....

      tcDataSet ds = null;
                     
                     final StringBuffer query = new StringBuffer();
                     query.append("select act.ACT_NAME,ugp.UGP_NAME from act,ugp,aad where aad.ACT_KEY = act.ACT_KEY and aad.UGP_KEY = ugp.UGP_KEY");
                     LOGGER("query......"+query);

                     final tcDataProvider dataProvider = XLDatabase.getInstance().getDataBase();
                     LOGGER("Retrieved dataprovider successfully ......");

                     ds = new tcDataSet();
                     ds.setQuery(dataProvider, query.toString());
                     ds.executeQuery();

      But getting the following error.

      Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class com.thortech.xl.util.DirectDB
           at com.thortech.xl.dataaccess.tcDataBase.returnConnection(tcDataBase.java:3231)
           at com.thortech.xl.dataaccess.tcDataBase.getDatabaseProductName(tcDataBase.java:1829)
           at com.thortech.xl.dataobj.tcDataBase.initialize(tcDataBase.java:164)
           at com.thortech.xl.dataobj.tcDataBase.<init>(tcDataBase.java:138)
           at com.thortech.xl.dataobj.util.XLDatabase.<init>(XLDatabase.java:43)
           at com.thortech.xl.dataobj.util.XLDatabase.getInstance(XLDatabase.java:53)
           at GetOrgnisation.main(GetOrgnisation.java:141)

      pls help me

      Thanks.