Object via IOM API production Thor.API.Exceptions.tcObjectNotFoundException of cancellation

Hello

I use code below for the service of objects assigned to the user, however object not found exception is generated:

int counter = 0;

String [] users = new String() {"User1", "user2"};

String resource = "ITAX_GTC";

for {(String userID1:users)

counter ++;

UserManager usermgr = client.getService (UserManager.class);

user oracle.iam.identity.usermgmt.vo.User = usermgr.getDetails (Pseudo1, attrNames, true);

value = provIntf.findObjects ("revoke", new String [] {user.getEntityId ()}, "U", searchCriteria);

for (int i = 0; i < set.getTotalRowCount (); i ++) {}

set.goToRow (i);

If (set.getStringValue("Objects.Name").equalsIgnoreCase (resource)) {}

long objInstanceKey = set.getLongValue ("Instance.Key object");

Printer.println (getTimeStamp () + "cancellation instance of the object key:" + objInstanceKey);

userIntf.revokeObject (Long.parseLong (user.getEntityId ()), objInstanceKey);

}

}

}

Special suite is generated:

Thor.API.Exceptions.tcObjectNotFoundException

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.tcUserOperationsIntf_e9jcxp_tcUserOperationsIntfRemoteImpl_1035_WLStub.revokeObjectx (unknown Source)

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 weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)

to $Proxy2.revokeObjectx (Unknown Source)

at Thor.API.Operations.tcUserOperationsIntfDelegate.revokeObject (unknown Source)

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)

to 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:120)

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)

to $Proxy3.revokeObject (Unknown Source)

at com.infotech.tra.organization.RoleAssignment.ProvisionResources(RoleAssignment.java:1066)

at com.infotech.tra.organization.RoleAssignment.main(RoleAssignment.java:60)

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 org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)

Caused by: Thor.API.Exceptions.tcObjectNotFoundException

at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.revokeObject(tcUserOperationsBean.java:3184)

at Thor.API.Operations.tcUserOperationsIntfEJB.revokeObjectx (unknown Source)

at sun.reflect.GeneratedMethodAccessor3410.invoke (unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)

at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)

at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)

at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)

at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)

at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)

at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)

at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)

to $Proxy344.revokeObjectx (Unknown Source)

at Thor.API.Operations.tcUserOperationsIntf_e9jcxp_tcUserOperationsIntfRemoteImpl.__WL_invoke (unknown Source)

at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)

at Thor.API.Operations.tcUserOperationsIntf_e9jcxp_tcUserOperationsIntfRemoteImpl.revokeObjectx (unknown Source)

at Thor.API.Operations.tcUserOperationsIntf_e9jcxp_tcUserOperationsIntfRemoteImpl_WLSkel.invoke (unknown Source)

at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)

at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)

to weblogic.rmi.internal.BasicServerRef$ 1.run(BasicServerRef.java:522)

at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)

at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)

at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)

at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)

at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

You can try using "User-object Instance to User.Key instead of"Object Instance.Key"

Tags: Fusion Middleware

Similar Questions

  • IOM API Exception

    package com.oracle.oim.sample;
    java.awt.List Import;


    Import Java.util;

    import java.util.Date;

    import java.util.HashMap;

    import java.util.Hashtable;

    to import java.util.Iterator;

    import java.sql.Connection;

    to import java.sql.DriverManager;

    import java.sql.PreparedStatement;

    import java.sql.ResultSet;

    import java.sql.SQLException;

    import java.util.ArrayList;

    to import java.util.Collection;

    import java.sql. *;





    Import Thor.API.tcResultSet;

    Import Thor.API.tcUtilityFactory;

    Import Thor.API.Exceptions.tcAPIException;
    Import Thor.API.Operations.tcEmailOperationsIntf;

    Import Thor.API.Operations.tcITResourceInstanceOperationsIntf;

    Import Thor.API.Operations.tcLookupOperationsIntf;

    Import Thor.API.Operations.tcObjectOperationsIntf;

    Import Thor.API.Operations.tcProvisioningOperationsIntf;

    Import Thor.API.Operations.tcReconciliationOperationsIntf;

    Import Thor.API.Operations.tcRequestOperationsIntf;

    Import Thor.API.Operations.tcUserOperationsIntf;



    import com.thortech.xl.crypto.tcCryptoUtil;

    import com.thortech.xl.crypto.tcSignatureMessage;

    import com.thortech.xl.dataaccess.tcClientDataAccessException;
    import com.thortech.xl.dataaccess.tcDataProvider;

    import com.thortech.xl.dataobj.util.tcEmailNotificationUtil;

    import com.thortech.xl.orb.dataaccess.tcDataAccessException;
    import com.thortech.xl.scheduler.tasks.SchedulerBaseTask;
    import com.thortech.xl.util.config.ConfigurationClient;



    import com.thortech.xl.dataobj.tcDataSet;

    import com.thortech.xl.dataobj.util.tcEmailNotificationUtil;

    import com.thortech.xl.dataaccess.tcDataBaseClient;

    import com.thortech.xl.dataaccess.tcDataProvider;
    import com.thortech.xl.gc.util.oximmodel.Lookup;

    import java.util.Vector;
    Import org.apache.log4j.Logger;

    public class unlinkUser extends SchedulerBaseTask {}
    private static Logger LOGGER = Logger.getLogger ("Xellerate.WebApp");
    private tcLookupOperationsIntf lookupIntf;
    private tcReconciliationOperationsIntf reconIntf;
    private tcUserOperationsIntf userIntf;
    private tcObjectOperationsIntf objIntf;
    private tcRequestOperationsIntf reqIntf;
    private tcITResourceInstanceOperationsIntf rtIntf;
    private tcProvisioningOperationsIntf provisionIntf;
    private tcDataProvider db;

    public void init() {}
    try {}
    Config ConfigurationClient.ComplexSetting = ConfigurationClient.getComplexSettingByPath ("Discovery.CoreServer");
    final Hashtable env = config.getAllSettings ();
    tcUtilityFactory ioUtilityFactory = new tcUtilityFactory (env, "xelsysadm", "privatekey");
    userIntf = (tcUserOperationsIntf) ioUtilityFactory.getUtility ("Thor.API.Operations.tcUserOperationsIntf");
    reconIntf = (tcReconciliationOperationsIntf) ioUtilityFactory.getUtility ("Thor.API.Operations.tcReconciliationOperationsIntf");
    reqIntf = (tcRequestOperationsIntf) ioUtilityFactory.getUtility ("Thor.API.Operations.tcRequestOperationsIntf");
    lookupIntf = (tcLookupOperationsIntf) ioUtilityFactory.getUtility ("Thor.API.Operations.tcLookupOperationsIntf");
    provisionIntf = (tcProvisioningOperationsIntf) ioUtilityFactory.getUtility ("Thor.API.Operations.tcProvisioningOperationsIntf");
    DB = getDataBase();


    }
    {} catch (tcAPIException e)
    throw new RuntimeException ("Unable to create instance API" +)
    "instance", e);
    }
    catch (System.Exception e)
    {
    System.out.println (e);

    }

    }
    {} public void execute()
    Boolean returnValue;
    returnValue = unlink ("KIRAN_KHER", "User OID");
    System.out.Print (returnValue);

    }
    public boolean unlink (String UserLogin, String ResourceName)
    {
    long objKey = 0;
    long prockey = 0;
    long take = 0;
    try {}
    UserMap HashMap = new HashMap();
    userMap.put ("Users.User ID", UserLogin);
    tcResultSet userSet = userIntf.findAllUsers (userMap);
    Take = userSet.getLongValue ("Users.Key");
    System.out.Print ("key to the user for the connection of the user" + UserLogin + "is" + take);

    tcResultSet items = userIntf.getObjects (take);
    int count = objects.getRowCount ();
    If (Count < 1)
    Returns false;

    for (int j = 0; j < objects.getRowCount (); j ++) {}
    objects.goToRow (j);

    String objName = objects.getStringValue ("Objects.Name");
    If (objName.equalsIgnoreCase ("user OID")) {}
    prockey = Objects.getLongValue ("process Instance.Key");
    System.out.println ("Resource" + objname);
    System.out.println ("process button" + prockey);
    objKey = objects.getLongValue ("Objects.Key");
    System.out.println ("obj." + key objKey);
    }
    }
    }

    catch (System.Exception e)
    {
    System.out.println (e);
    }
    if(objKey == 0)
    {
    System.out.Print ("object key is 0");
    Returns false;
    }
    System.out.Print ("obj key" + objKey + "key proc" + prockey + "user key" + take);
    String query = "UPDATE Ouedraogo SET OST_key = (Select ost_key from the ost where obj_key =" + objKey + "and OST_status ="Revoked") WHERE usr_key = ' + take +" and orc_key = "+ prockey;»
    Logger.info (Query);
    System.out.Print ("after query definition');

    try {}
    System.out.Print ("in try");
    db.writeStatement (query);

    Returns true;
    } catch (tcDataAccessException e) {}
    e.printStackTrace ();
    } catch (tcClientDataAccessException e) {}
    e.printStackTrace ();
    }
    Returns false;


    }
    Public Shared Sub main (String [] args) {}
    UU unlinkUser = new unlinkUser();
    uu.init ();
    uu. Execute();
    }


    }


    _____________________________________________________________________________________________

    Refer to the code above. It defines the State of the resource, service to a basic user key, user key and key of the object
    The sql query works fine from the command prompt: sqlplus.
    But when it is run in eclipse: it gives following error in the console:

    key to the user for the connection of the user KIRAN_KHER is 4ResourceOID user
    process key21
    obj key21
    obj 21proc key key key 4after 21user request defnin tryException in thread "main" java.lang.NullPointerException
    * to com.oracle.oim.sample.unlinkUser.unlink(unlinkUser.java:175) *.
    * to com.oracle.oim.sample.unlinkUser.execute(unlinkUser.java:124) *.
    * to com.oracle.oim.sample.unlinkUser.main(unlinkUser.java:190) *.

    Just look at your other thread. I gave the prepared sample for use of Statemnt. It will help you get any question.

    But the thing that you're trying to do, how that will work, I'm not sure. Any change of status is not enough. It will be bound.

    You can call APIs to revoke this user if you do then the user will not remove OID.

  • tcObjectNotFoundException error during the configuration via the API of the IOM

    Hello

    I'm trying to provide resources using the client API IOM. I use the following code which generates the exception mentioned after the code snippet:

    *******************************Code*******************************

    java.util.Hashtable env = new java.util.Hashtable ();

    env.put (oracle.iam.platform.OIMClient.JAVA_NAMING_FACTORY_INITIAL,

    oimInitialContextFactory);

    env.put (oracle.iam.platform.OIMClient.JAVA_NAMING_PROVIDER_URL, oimURL);

    oracle.iam.platform.OIMClient client = new oracle.iam.platform.OIMClient (env);

    Thor.API.Operations.tcUserOperationsIntf userIntf = (Thor.API.Operations.tcUserOperationsIntf.class) client.getService;

    Thor.API.Operations.tcObjectOperationsIntf objIntf = (Thor.API.Operations.tcObjectOperationsIntf.class) client.getService;

    Thor.API.Operations.tcFormInstanceOperationsIntf formIntf = (Thor.API.Operations.tcFormInstanceOperationsIntf.class) client.getService;

    Thor.API.Operations.tcProvisioningOperationsIntf provIntf = (Thor.API.Operations.tcProvisioningOperationsIntf.class) client.getService;

    Thor.API.Operations.tcUserOperationsIntf userOper = (Thor.API.Operations.tcUserOperationsIntf.class) client.getService;

    java.util.Hashtable mhSearchCriteria = new java.util.Hashtable ();

    Hashtable ObjectHash = new Hashtable();

    objectHash.put ("Objects.Name", "ITAX_GTC");

    Data com.thortech.xl.vo.ResourceData = userIntf.provisionResource (Long.parseLong (userId), objectKey);

    long userObjectInstanceKey = Long.parseLong (data.getOiuKey ());

    long objectInstanceKey = Long.parseLong (data.getObiKey ());

    Hashtable InputHash = new Hashtable();

    Fill out the entry below with data from object

    for (int b = 3; b < row.length; b ++)

    {

    inputHash.put (header [b], [b] row);

    }

    Sets the data object

    formIntf.setProcessFormData (objectInstanceKey, inputHash);

    *********************************************************************************************

    Thor.API.Exceptions.tcObjectNotFoundException

    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.tcUserOperationsIntf_e9jcxp_tcUserOperationsIntfRemoteImpl_1035_WLStub.revokeObjectx (unknown Source)

    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 weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)

    to $Proxy2.revokeObjectx (Unknown Source)

    at Thor.API.Operations.tcUserOperationsIntfDelegate.revokeObject (unknown Source)

    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)

    to 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:120)

    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)

    to $Proxy3.revokeObject (Unknown Source)

    at com.infotech.tra.organization.RoleAssignment.ProvisionResources(RoleAssignment.java:1013)

    at com.infotech.tra.organization.RoleAssignment.main(RoleAssignment.java:48)

    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 org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)

    Caused by: Thor.API.Exceptions.tcObjectNotFoundException

    at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.revokeObject(tcUserOperationsBean.java:3184)

    at Thor.API.Operations.tcUserOperationsIntfEJB.revokeObjectx (unknown Source)

    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 com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)

    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)

    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)

    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

    at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)

    at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)

    at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)

    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

    at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)

    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

    at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)

    to $Proxy344.revokeObjectx (Unknown Source)

    at Thor.API.Operations.tcUserOperationsIntf_e9jcxp_tcUserOperationsIntfRemoteImpl.__WL_invoke (unknown Source)

    at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)

    at Thor.API.Operations.tcUserOperationsIntf_e9jcxp_tcUserOperationsIntfRemoteImpl.revokeObjectx (unknown Source)

    at Thor.API.Operations.tcUserOperationsIntf_e9jcxp_tcUserOperationsIntfRemoteImpl_WLSkel.invoke (unknown Source)

    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)

    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)

    to weblogic.rmi.internal.BasicServerRef$ 1.run(BasicServerRef.java:522)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)

    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)

    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    Add the line before retrieving the key of the object:

    set.goToRow (0); assuming that one record is returned in the result

  • Object instantiation of IOM API tcUtilityFactory

    Hi all
    I am trying to open the object of tcUtilityFactory in the following way:

    ================
    System.setProperty ("XL. HomeDir"," C:/Oracle/OIM_DC/xlclient");
    System.setProperty ("java.security.policy", "C:/Oracle/OIM_DC/xlclient/Config/xl.policy");
    System.setProperty ("java.security.auth.login.config", "C:/Oracle/OIM_DC/xlclient/Config/auth.conf");
    System.setProperty ("java.naming.provider.url", "t3://weblogic1.domain.com:7001");
    System.setProperty ("java.naming.factory.initial", "weblogic.jndi.WLInitialContextFactory");

    Config ConfigurationClient.ComplexSetting = ConfigurationClient.getComplexSettingByPath ("Discovery.CoreServer");
    System.out.println ("login...");
    Hashtable env = config.getAllSettings ();
    tcUtilityFactory ioUtilityFactory = new tcUtilityFactory (env, "xelsysadm", "Oracle123");
    ================

    and to get the output on the following all current run/debug console:
    ================
    C:/Oracle/OIM_DC/xlclient
    C:/Oracle/OIM_DC/xlclient/config/XL. Policy
    C:/Oracle/OIM_DC/xlclient/config/auth.conf
    T3://weblogic1.domain.com:7001
    weblogic.jndi.WLInitialContextFactory
    Starting...
    Get the configuration...
    Opening session...
    log4j: WARN no appenders could be found for logger (XELLERATE. ACCOUNTMANAGEMENT).
    log4j: WARN Please initialize log4j correctly system.
    Thor.API.Exceptions.tcUserAccountInvalidException
    at Thor.API.tcUtilityFactory.createLoginException (unknown Source)
    to Thor.API.tcUtilityFactory. < init >(Unknown Source)
    at FirstAPITest.main (FirstAPITest.java:33)
    ================

    I use Eclipse and followed all the steps mentioned in the thread - new to the coding in IOM
    that is, I'm assuming since the Metalink I see the same info in a metalink doc.

    Please let me know if I am missing some step.

    Thank you

    In my view, what is of weblogic application server

    Make following changes:

    C:/Oracle/OIM_DC/xlclient/config/auth.conf

    C:/Oracle/OIM_DC/xlclient/config/authwl.conf

  • Thor.API.Exceptions.tcAPIException: No value is provided for the required fields

    Hello

    I use IOM APIs to create the user. I have provided all the required fields. but didn't the user to create
    This exception: == Thor.API.Exceptions.tcAPIException: no value provided for required fields

    Here is my code:

    {} public void createUser()
    try {}
    tcUserOperationsIntf moUserUtility = (tcUserOperationsIntf) ioUtilityFactory
    .getUtility ("Thor.API.Operations.tcUserOperationsIntf");
    Hashtable CreateUserCriteria = new Hashtable();
    createUserCriteria.put ("ID Users.User", "Devesh1");
    createUserCriteria.put ("name of the Users. First","Victor");
    createUserCriteria.put ("name of the Users. Last","Fish");
    createUserCriteria.put ("Organizations.Organization name",
    "Xellerate users");
    createUserCriteria.put (Type "Users.Xellerate", "End user");
    createUserCriteria.put ("Users.Role", "Full time");
    createUserCriteria.put ("Users.Password", "abcd1234");

    moUserUtility.createUser (createUserCriteria);
    } catch (tcInvalidAttributeException e) {}
    e.printStackTrace ();
    } catch (tcAttributeMissingException e) {}
    e.printStackTrace ();
    } catch (tcDuplicateUserException e) {}
    e.printStackTrace ();
    } catch (tcAPIException e) {}
    e.printStackTrace ();
    }
    }


    Journal: is

    Thor.API.Exceptions.tcAPIException: No value is provided for the required fields
    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 com.thortech.xl.ejb.beans.tcUserOperations_voj9p2_EOImpl_1032_WLStub.createUser (unknown Source)
    at Thor.API.Operations.tcUserOperationsClient.createUser (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)
    to Thor.API.Base.SecurityInvocationHandler$ 1.run (unknown Source)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs (unknown Source)
    at weblogic.security.Security.runAs(Security.java:41)
    at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs (unknown Source)
    at Thor.API.Base.SecurityInvocationHandler.invoke (unknown Source)
    to $Proxy0.createUser (Unknown Source)
    at the commune. DemoOim.createUser (DemoOim.java:83)
    at the commune. DemoOim.main (DemoOim.java:100)
    Caused by: Thor.API.Exceptions.tcAPIException: no value provided for required fields
    at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.createUser (unknown Source)
    at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.createUser (unknown Source)
    at com.thortech.xl.ejb.beans.tcUserOperationsSession.createUser (unknown Source)
    at com.thortech.xl.ejb.beans.tcUserOperations_voj9p2_EOImpl.createUser(tcUserOperations_voj9p2_EOImpl.java:3773)
    at com.thortech.xl.ejb.beans.tcUserOperations_voj9p2_EOImpl_WLSkel.invoke (unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    to weblogic.rmi.internal.BasicServerRef$ 1.run(BasicServerRef.java:477)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    Replace
    createUserCriteria.put ("Organizations.Organization name",
    "Xellerate users");

    with

    createUserCriteria.put("Organizations.Key","1");

  • Thor.API.Exceptions.tcAPIException: An error occurred finding shapes

    Need help...

    I need key for fine o process form.
    This is my code:

    tcFormDefinitionOperationsIntf formOp = ioUtilityFactory.getUtility ("Thor.API.Operations.tcFormDefinitionOperationsIntf") (tcFormDefinitionOperationsIntf);
    Hashtable FormSearchCri = new Hashtable();
    formSearchCri.put ("Name of the Structure Utility.Table", "UD_LAPTOP");
    rst = formOp.findForms (searchCriteriaMap) tcResultSet;
    for (int i = 0; i < rst.getRowCount (); i ++) {}
    rst.goToRow (i);
    long formKey = rst.getLongValue ("Structure Utility.Key");
    System.out.println ("form key =" + formKey);
    }

    exception: ==

    Thor.API.Exceptions.tcAPIException: An error occurred finding shapes
    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 com.thortech.xl.ejb.beans.tcFormDefinitionOperations_1kx3fy_EOImpl_1032_WLStub.findForms (unknown Source)
    at Thor.API.Operations.tcFormDefinitionOperationsClient.findForms (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)
    to Thor.API.Base.SecurityInvocationHandler$ 1.run (unknown Source)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs (unknown Source)
    at weblogic.security.Security.runAs(Security.java:41)
    at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs (unknown Source)
    at Thor.API.Base.SecurityInvocationHandler.invoke (unknown Source)
    to $Proxy2.findForms (Unknown Source)
    at oim.api.test.AccessPolicyCreation.createAccessPolicy(AccessPolicyCreation.java:48)
    at oim.api.test.AccessPolicyCreation.main(AccessPolicyCreation.java:65)
    Caused by: Thor.API.Exceptions.tcAPIException: error occurred finding shapes
    at com.thortech.xl.ejb.beansimpl.tcFormDefinitionOperationsBean.findForms (unknown Source)
    at com.thortech.xl.ejb.beansimpl.tcFormDefinitionOperationsBean.findForms (unknown Source)
    at com.thortech.xl.ejb.beans.tcFormDefinitionOperationsSession.findForms (unknown Source)
    at com.thortech.xl.ejb.beans.tcFormDefinitionOperations_1kx3fy_EOImpl.findForms(tcFormDefinitionOperations_1kx3fy_EOImpl.java:629)
    at com.thortech.xl.ejb.beans.tcFormDefinitionOperations_1kx3fy_EOImpl_WLSkel.invoke (unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    to weblogic.rmi.internal.BasicServerRef$ 1.run(BasicServerRef.java:477)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    Try again with

    Replace

    policyCriteriaMap.put ('Access Policies.Retrofit Flag', ' yes');
    policyCriteriaMap.put ("Access Policies.By Request", "No");

    With

    policyCriteriaMap.put ("Access Policies.Retrofit Flag", "1");
    policyCriteriaMap.put ("Policies.By application access","0");

  • Try to export using IOM API via tcExportOperationsIntf

    Hi all

    I wrote a custom code for exports of components to IOM API Help and I am able to take exports from

    Research, resources, process form and process definitions.

    But I'm not able to export role, resource, Access Policy, policy on the approval and debugging has been established that

    ExportOperationsIntf.findObjects (Type, Name); Returns null for role, resource, Access Policy, policy on the approval.

    If I try to research role, resource, Access Policy, political approval using OOTB Deployment Manager export then I can see my components required, but the API, I am not able to do.

    I tried to give the name as * DemoRole * and "TestDemoRole" [name], but it didn't work.

    Fact ExportOperationsIntf.findObjects (Type, Name); data only works for resouce?

    All the world is facing this problem?

    IOM Env = 11.1.2.2.0

    Thank you

    Rahul

    The categories should match while yours are slightly poorly named.

    You can get a list of available categories using the following code snippet:

    tcExportOperationsIntf = dm.getService (tcExportOperationsIntf.class) operations;
    Categories collection = operations.retrieveCategories ();
    for (String category: categories)
    System.out.println (Category);

    For reference, in OIM 11 g R2 PS2, the following categories may be used:

    -CustomResourceBundle
    -eventhandlers
    -Form process
    -CertificationDefinition
    -Organization
    -RiskConfiguration
    -ITResource
    -NOTIFICATIONTEMPLATE
    -PasswordPolicy
    -RequestDataset
    -DataObjectDef
    -CertificationConfiguration
    -Metadata role
    -User group
    -PrepopAdapter
    -Process
    -Plugin
    -ITResourceDef
    -Resources
    -EmailDef
    -TaskAdapter
    -SystemProperties
    -ApplicationInstance
    -GenericConnector
    -GTCProvider
    -Rule
    -User metadata
    -CatalogDefinition
    -ApprovalPolicy
    -Job
    -Jar
    -Metadata Org
    -Search
    -Task
    -ErrorCode
  • Define the process shape and available resources using the IOM APIs

    Hello

    I'm provision the resource in the IOM with the APIs of the IOM. I know that the API to use is provisionObject (long plUserKey, long plObjectKey). The problem is that I have some data to be set manually on the form of courses, so I have to send it via the API.

    Please guide me how can I set the shape of process data and then provide a resource of IOM with the APIs.

    Thank you.

    Rahul

    You can do it in both directions.
    1. you can use adapter pre-population.
    2. you can use the API.
    http://docs.Oracle.com/CD/E21764_01/apirefs.1111/e17334/Thor/API/operations/tcFormInstanceOperationsIntf.html#setProcessFormData_long__java_util_Map _

    extract the information from the object put into service

    http://docs.Oracle.com/CD/E21764_01/apirefs.1111/e17334/Thor/API/operations/tcUserOperationsIntf.html#getObjects_long _

    That
    prntPrvsndPrsInsKey - retrieves the Instance.Key process for provisioned resource object
    hashPrntData - a card that conatins keys as process form column name / value in the form of data.

    tcforminstanceoperationsintf.setProcessFormData (prntPrvsndPrsInsKey, hashPrntData);

    Thank you.
    Kuldeep

  • Trying to create a special link via the API

    I've seen a few other questions here on this topic, but not really answers. Of course those who were really old so perhaps there were not many people around with the necessary experience.

    In any case, I have a few hundred users for which I would like to create special links to Active Directory. The events of reconciliation exist, so I would try to do some IMO don't when it creates a special bond. Here's the current state of the code:

    {} public updateUser (user, event ReconEvent) Sub

    EventService = oimClient.getService (ReconOperationsService.class) ReconOperationsService;

    UserManager userService = oimClient.getService (UserManager.class);

    Long userId = Long.decode (user.getId ());

    If (event.getReStatus () .equals ("No Match Found user")) {}

    try {}

    eventService.linkEventToUser (event.getReKey (), username);

    } catch (Exception e) {}

    e.printStackTrace ();

    return;

    }

    }

    }

    Now, when I run the present I get this exception:

    Thor.API.Exceptions.tcAPIException: An exception occurred: unknown entity type account with ID 981 591


    Y at - there anyone out there who got something like this works?

    OK, so I figured out, and since I shared the pain I think I might as well share the joy.

    The trick here is that, since it is a target resource I wrong to think this is link - I guess that the user interface is a bit misleading in this way. What I had to do was rather to create a user account. So I tried this:

     public void updateUser(User user, ReconEvent event) {
            EventMgmtService eventService = oimClient.getService(EventMgmtService.class);
            UserManager userService = oimClient.getService(UserManager.class);
            Long userId = Long.decode(user.getId());
    
            if (event.getReStatus().equals("No User Match Found")) {
                try {
                    eventService.createAccount(event.getReKey(), userId, "USER", "xelsysadm",
                                               "Manual Linking", "Linked acccount via API",
                                               false);
                } catch (Exception e) {
                    e.printStackTrace();
                    return;
                }
            }
    

    And Yes, it works! It's exactly what I want, which is to create something like the Ad - Hoc UI transitional link.

    Yay!

  • IOM API create event of reconciliation for organizations

    I use OIM 11.1.2.2.0

    I need to create a custom jobs planned for the reconciliation of the organizations.

    When a try to use this code doesn't work

    String resourceName = "Xellerate organization";

    Parent map = new HashMap();

    parentdata.put ("name of Org", "TestOrg");

    parentdata.put ("client organization Type", "Department" ");

    reconkey = reconOperationsService.createReconciliationEvent (resourceName, parent, evAtri);

    and displays this error

    Thor.API.Exceptions.tcAPIException: An exception occurred: oracle.iam.platform.kernel.ValidationFailedException: the mandatory Type Customer organization attribute was not provided.

    Have you defined the recon areas on your resource object?  You have them mapped on your definition of process for real fields?  You have created your profile of reconciliation?  You use the same names as your recon fields on the resource object in your event?

    -Kevin

  • IOM API Bug

    Hi all:

    I'll have to implement a logic via the API of the IOM, but I realized that the API has a bug.

    I want back the Manager and the Organization of the users of the IOM. I have a method that retrieves the information from the user, but when I want to get the method below User Manager throws the following exception:

    Iterator it = users.iterator ();
    While (it.hasNext ()) {}
    User u = it.next () (user);
    u.getManagerKey ();
    }


    Exception in thread "main" java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String
    at oracle.iam.identity.usermgmt.vo.User.getManagerKey(User.java:553)

    the getManagerKey() method fails try to recover Manager key. As the same way the getOrganizationKey() method fails too.

    Anyone who has already faced this problem?

    Thanks in advance

    One of my friends got this problem, but I have no chance to work on it.

    But there is another way to get these values:

    String orgKey = users.get (i).getAttribute("act_key").toString ();
    String orgKey = users.get (i).getAttribute("usr_manager_key").toString ();

    It can help you.

  • Need help on IOM API

    Hi all

    Have we not all API IOM to validate the challenge questions and challenge responses specifically?

    I was trying to restore the password functionality using the API of the IOM resetForgottenPassword(). But, for the first time it has been reset the password perfectly and then from the 2nd time... it gives an error message that is mentioned below.

    ERROR, April 13, 2010 06:16:55, 982, [XELLERATE. SERVER], class/method: tcUSR/changePasswordForSelf error: password cannot be changed.
    ERROR, April 13, 2010 06:16:55, 984, [XELLERATE. SERVER], class/method: tcUnauthenticatedOperationsBean/resetForgottenPassword some problems: error occurred while resetting the password.
    ERROR, April 13, 2010 06:16:55, 984, [XELLERATE. SERVER], class/method: tcUnauthenticatedOperationsBean/resetForgottenPassword some problems: error occurred while resetting the password.
    Thor.API.Exceptions.tcAPIException: An error has occurred just by resetting the password.
    at com.thortech.xl.ejb.beansimpl.tcUnauthenticatedOperationsBean.resetForgottenPassword (unknown Source)
    at com.thortech.xl.ejb.beans.tcUnauthenticatedOperationsSession.resetForgottenPassword (unknown Source)
    at com.thortech.xl.ejb.beans.tcUnauthenticatedOperationsSession_j7uqe_EOImpl.resetForgottenPassword(tcUnauthenticatedOperationsSession_j7uqe_EOImpl.java:77)
    at com.thortech.xl.ejb.beans.tcUnauthenticatedOperationsSession_j7uqe_EOImpl_WLSkel.invoke (unknown Source)
    at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)

    Can someone help me please on the thing. If not, please suggest no work around for this.

    Thanks in advance.

    Siva NAKI.

    Here are the API under tcUserOperationsIntf:

    compareChallengeValuesForSelf
    Boolean compareChallengeValuesForSelf (java.util.Map phQuestionAnswer)
    throws Thor.API.Exceptions.tcNumberOfChallengesMismatchException,
    Thor.API.Exceptions.tcAPIException,
    tcAPIExceptionCompares questions and answers entered by the user against those stored in the database

    Parameters:
    phQuestionAnswer - a map of questions / answers for the current of the connected user.
    Returns:
    true if all the answers are correct to the appropriate questions
    Throws:
    tcNumberOfChallengesMismatchException
    tcAPIException

    You must post as a user, so you will need authentication by private key code in your adapter for this specific user during the validation of the challenge questions.

    -Kevin

  • IOM API to reallocate applications?

    I am trying to find a way to set or change the assignee who is responsible for approving the request.

    I look in the following IOM API:

    oracle.iam.api.OIMService

    oracle.iam.request.api.RequestService

    I was able to create a query using 'oracle.iam.api.OIMService' API, but I couldn't find a way to set the approver (default IOM, SYSTEM ADMINISTRATORS).

    I know that IOM has a feature of the user interface to redirect a request to another user or group (photo attached for example). I would like to know if there is an API for this.

    Screen Shot 2015-04-28 at 3.01.33 PM.png

    It is not the API of the IOM to reassign an application.  You will need to use the API of SOA BPEL to reassign the tasks on the side of the SOA.

    Code like this:

    public void reassignTask() {}

    List = new ArrayList ()users;

    Assignee ITaskAssignee = null;

    assignee = new TaskAssignee ("". toLowerCase(), "user");

    Users.Add (assignee);

    int counter = 0;

    tasks of long [] = new long [] {};

    for (long task: task) {}

    counter ++;

    try {}

    System.out.println (counter + "|" + tasks.length + "\tReassigned:" + taskService.reassignTask (iWorkflowContextQuery, taskQueryService.getTaskDetailsByNumber (iWorkflowContextQuery, Integer.valueOf (String.valueOf (task))), users));

    } catch (Exception e) {}

    System.out.println (e.getLocalizedMessage ());

    }

    }

    }

    -Kevin

  • How to activate the vmotion via the api?

    I could enable vMotion on the ESXi via the api?

    Take a look at this script http://communities.vmware.com/docs/DOC-11775 , which implements the vSphere API to enable vMotion and other types of traffic VMkernel

  • vShield App - access Flow Monitoring via vShield API?

    Hello world!

    We want to get their hands on the information provided by the App Flow vShield"monitor"programmically. We found no detail on how to do this via the API of vShield. Anyone know how or have experience using the Flow' monitor ' in this way?

    See you soon!

    Hi, would like to understand how you want to use data more precisely. Today, vShield Manager collects a large set of data that comes to the microphones, and recovery of the flow bulk can be no optimal via REST... We don't have a way to retrieve the stream via the API for this reason. You are looking for a filtered or a search for style operation to retrieve specific streams or more doing timed calls for periodic flows? If it's the latter, potentially using the Netflow feature in our vSwitch can be an alternative method.

    Do you currently work closely with vShield engineering team? Looks like an interesting use case, we would be delighted to hear from you...

Maybe you are looking for