Skip to Main Content

Security 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 Prepopulate Adapter For OID in OIM

ruxpinAug 31 2012 — edited Sep 6 2012
I'm just modifying an existing adapter we have to cater for a user type in our system.

the main snippet of the adapter is as below:

// Adapter Variables
String pseudousertype; // Pseudo User type in OIM form
String staff; // Staff field in OIM Form
String student; // Student type in OIM Form
String staffou = "ou=staffxxxxx"; // OU prefix for staff users
String pseudo; // Pseudo value in OIM Form
String pseudoou = "ou=pseudoxxx"; // OU Prefix for Pseudo Users
String studentou = "ou=studentxxx"; // OU prefix for student user

protected void implementation() throws Exception {

try {

if (! initAdapter("105", "adpUSQ_PRE_OID_ORGANIZATIONUNIT", "P"))
return;

// Run Time Variables
pseudousertype = (String)getRunTimeValue(1210, isSreKey,"pseudousertype");
staff = (String)getRunTimeValue(887, isSreKey,"staff");
student = (String)getRunTimeValue(888, isSreKey,"student");
pseudo = (String)getRunTimeValue(890, isSreKey,"pseudo");


// Execute Tasks and store results in Hashtable...

if ((staff).equals("1"))
{
setAdpRetVal(new String(staffou));
}
else if ((student).equals("1"))
{
setAdpRetVal(new String(studentou));
}
else if ((pseudo).equals("1"))
{
if ((pseudousertype).equals("Pre-Employee"))
{
setAdpRetVal(new String(staffou));
}
}
else
{
setAdpRetVal(new String(pseudoou));
}

finalizeAdapter();

} catch (tcAdapterTaskException e) {
e.printStackTrace();
throw e;
} catch (Exception e) {
e.printStackTrace();
throw e;
}

}

The modification to the adapter was adding a new variable pseudousertype, and if pseudousertype equals Pre-Employee, set the user's OU into staffou

I am getting the following error, after I have rebuild the adapter, restarted the application:

ERROR 10:47:12,186, RMICallHandler-108 XELLERATE.ADAPTERS - Class/Method: tcAdapterMappingUtility/getRunTimeVariableMappings encounter some problems: No data available for variable having key = 1210
java.lang.Exception: No data available for variable having key = 1210

ERROR 10:47:12,197, RMICallHandler-108 XELLERATE.SERVER - Class/Method: tcAdapterExecuter/executeRuleGenerators encounter some problems: java.lang.Exception: Error getting run-time variables.
java.lang.Exception: java.lang.Exception: Error getting run-time variables.

I have modified 2 more pre-populate adapter which uses this same information/variable value and its working. Tried re-adding, recompiling all adapters with no success. Just picking any ideas you guys might have.

Edited by: ruxpin on 30-Aug-2012 21:04
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 4 2012
Added on Aug 31 2012
3 comments
719 views