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!

OIM11g deleting a user instantly

855304Jun 7 2011 — edited Jun 8 2011
In OIM 11g we have set the properties to delayDelete Users to 35 days.
So that all users who are delete actually get disabled and then deleted after 35 days.

However for a small subset of user we would like to perform an immediate delete and not wait for 35 days.
Below if the sample code that I am using to perform the operation.
However I am getting an error.
Can someone tell me how to resolve this error.






//code to get the user map to be deleted
tcResultSet moResultSet = _userIntf.findUsers(userMap);
String[] cols = moResultSet.getColumnNames();
for (int i = 0; i < moResultSet.getRowCount(); i++) {
moResultSet.goToRow(i);
System.out.println(moResultSet.getStringValue("Users.User ID"));
if (moResultSet.getStringValue("Users.User ID").contains("DR3X2131")){
for (int j = 0; j < cols.length; j++) {
if (cols[j].indexOf("Row Version") == -1) {


userDetailMap.put(cols[j],moResultSet.getStringValue(cols[j]));

}
}
//code to perform delete on the user

_userDelIntf = (tcReconciliationOperationsIntf) client.getService(tcReconciliationOperationsIntf.class);
_userDelIntf.createDeleteReconciliationEvent("Xellerate User", userDetailMap);



On running this code I am getting the following error

Thor.API.Exceptions.tcAPIException: Exception occurred while inserting data into table RA_XELLERATEUSER2 due to RA_XELLERATEUSER2
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
at Thor.API.Operations.tcReconciliationOperationsIntfEJB_troehf_tcReconciliationOperationsIntfRemoteImpl_1033_WLStub.createDeleteReconciliationEventx(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:84)
at $Proxy4.createDeleteReconciliationEventx(Unknown Source)
at Thor.API.Operations.tcReconciliationOperationsIntfDelegate.createDeleteReconciliationEvent(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at Thor.API.Base.SecurityInvocationHandler$1.run(SecurityInvocationHandler.java:68)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.security.Security.runAs(Security.java:41)
at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
at Thor.API.Base.SecurityInvocationHandler.invoke(SecurityInvocationHandler.java:79)
at $Proxy5.createDeleteReconciliationEvent(Unknown Source)

Edited by: user13740523 on Jun 7, 2011 1:49 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 6 2011
Added on Jun 7 2011
1 comment
77 views