Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error in OdiInstance.createInstance

InfoDocJun 21 2017 — edited Aug 2 2017

I am trying my first ODI SDK java program. (below). It just tries to connect.

package dockeryOdi;

import oracle.odi.core.OdiInstance;

import oracle.odi.core.config.MasterRepositoryDbInfo;

import oracle.odi.core.config.OdiInstanceConfig;

import oracle.odi.core.config.PoolingAttributes;

import oracle.odi.core.config.WorkRepositoryDbInfo;

public class Test {

public static void main(String[] args) {

System.out.println("Creating Master and Work Repo objects...");

MasterRepositoryDbInfo masterInfo = new MasterRepositoryDbInfo(

OdiBean.Url, OdiBean.Driver,

OdiBean.Master_User, OdiBean.Master_Pass.toCharArray(),

new PoolingAttributes());

WorkRepositoryDbInfo workInfo = new WorkRepositoryDbInfo(

OdiBean.WorkRepoName, new PoolingAttributes());

System.out.println("Creating Odi Config...");

OdiInstanceConfig odiCfg = new OdiInstanceConfig(masterInfo,workInfo);

System.out.println("Connecting");

OdiInstance odiInstance=OdiInstance.createInstance(odiCfg); // <<< this line error: java.lang.NoClassDefFoundError: org/eclipse/persistence/sessions/Session

}

}

However, I get this error:

java.lang.NoClassDefFoundError: org/eclipse/persistence/sessions/Session

here are the jars I am using

pastedImage_14.png

I am not sure why this small/test program is trying to use org/eclipse/persisence/session

I did not see that class in ANY of my odi jars in this folder

        **C:\\Oracle\\Middleware\\ODI\\odi\\sdk\\lib**

I welcome feedback.

This post has been answered by RagavMaddali-Oracle on Aug 2 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 30 2017
Added on Jun 21 2017
10 comments
950 views