Update password custom scheduled task orchestration event handler issue

Hello experts,
I am trying to run a custom scheduled to update user password in OIM 11.1.1.5
Consider there are 5 users in the input feed file
TSTUSR1
TSTUSR2
TSTUSR3
TSTUSR4
TSTUSR5
Problem i am facing is when update of change password fails for a user then for the subsequent users also its getting failed. Say for TSTUSR3 the change password is failed for some reason (consider user not present) then for TSTUSR4 and TSTUSR5 also it is getting failed.
Note: here the changepassword for TSTUSR4 and TSTUSR5 is getting called but i am getting some orchestration event handler exception as below.
<Mar 9, 2012 6:26:12 AM CET> <Warning> <oracle.iam.platform.kernel.impl> <IAM-00 80002> <Orchestration validation failed on the event handler - The password change operation failed.>
Exception occured during change password
oracle.iam.identity.exception.UserManagerException: The password change operatio n failed.
at oracle.iam.identity.usermgmt.impl.UserManagerImpl.changePassword(User ManagerImpl.java:3024)
at oracle.iam.identity.usermgmt.impl.UserManagerImpl.changePassword(User ManagerImpl.java:2959)
at oracle.iam.identity.usermgmt.api.UserManagerEJB.changePasswordx(Unkno wn Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJo inpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho dInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho dInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntrodu ctionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntrodu ctionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho dInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisit orImpl.visit(MethodInvocationVisitorImpl.java:37)
at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.c allback(EnvironmentInterceptorCallbackImpl.java:54)
at com.bea.core.repackaged.springframework.jee.spi.EnvironmentIntercepto r.invoke(EnvironmentInterceptor.java:50)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho dInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocat ionInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho dInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntrodu ctionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntrodu ctionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho dInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopPr oxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy331.changePasswordx(Unknown Source)
at oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemote Impl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(Ses sionRemoteMethodInvoker.java:40)
at oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemote Impl.changePasswordx(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(Remote BusinessIntfProxy.java:85)
at $Proxy195.changePasswordx(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti on(AopUtils.java:307)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami cAopProxy.java:198)
at $Proxy328.changePasswordx(Unknown Source)
at oracle.iam.identity.usermgmt.api.UserManagerDelegate.changePassword(U nknown Source)
And below is the code snippet i am using
try
CsvReader fileName = new CsvReader(actualPath);
fileName.readHeaders();
while (fileName.readRecord()) {
try
String username = fileName.get("USR_LOGIN").toUpperCase();
String password = fileName.get("USR_PASSWORD");
if(!isNullOrEmpty(username)&& !isNullOrEmpty(password) )
     userAPI.changePassword(username, password.toCharArray(),true);
else
     System.out.println("Record is empty");
     err.add(fileName.getRawRecord());     
} catch (Exception e) {
err.add(fileName.getRawRecord());     
System.out.println("Exception occured during change password");
e.printStackTrace();
System.out.println("Continuing with next record");
catch (Exception e) {
e.printStackTrace();
Your input at the earliest would be helpful.
Thanks,
DK
Edited by: 875142 on Mar 8, 2012 10:56 PM

It shouldn't but this is an OIM issue. handle yourself the possible cause.
Myself experienced the same and it was because of policy failure.
Try to put below check before password update.
import oracle.iam.passwordmgmt.vo.ValidationResult;
import oracle.iam.identity.usermgmt.vo.User;
import oracle.iam.passwordmgmt.api.PasswordMgmtService;
User searchedUser = null;
ValidationResult validationResult = null;
PasswordMgmtService pwdMgmt = Platform.getService(PasswordMgmtService.class);
searchedUser = userAPI.getDetails(resultSet11g.getString("USR_LOGIN"), null, true);
//Check if password is as per attached password policy
validationResult = pwdMgmt.validatePasswordAgainstPolicy(password.toCharArray(), userLogin, searchedUser.getLocale());
logger.debug("Result" + validationResult.isPasswordValid());
if (validationResult.isPasswordValid()) {
//Change the password
userAPI.changePassword(username, password.toCharArray(),true);
I suggest even validate if user exist or not.you can handle it using serchedUser(in above code). The above code validating policy only.
--nayan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • How to handle timestamp in custom scheduled task written for Target Recon

    Hi,
    I have wriiten a Custom scheduled task to reconciile users from target system..but whenever I run the Target Recon Scheduled task .. it generates the Recon. events for all users.
    How to handle this.. how to pass Timestamp value to custom Target Recon scheduled task.
    Thanks,
    Pallavi

    To add to Kevin's point -
    You will have to have a attribute either in the IT Resource or the Schedule Task. At the begining of the reconciliation searches, get the timestamp of the target system and store it in a variable. Fectch the timestamp attribute value from the IT Resource/Schedule Task and use that value as one of the search criteria of user profiles on the target.
    Once all the user profiles from the target are queried and reconciliation is completed then update either the IT Resource or Schedule Task attribute using OIM API.
    Hope this helps :)

  • Custom Schedule Task ( Null Pointer Exception)

    Hi All,
    I had written Custom Schedule task: Below is the code
    When i run the Schedule task it is failing throwing Null Pointer Exception. the code is not able to fetch userId ,passwordex and passwordwar values in execute method. please help me
    package oracle.iam.sample.notification;
    import java.sql.Date;
    import java.util.ArrayList;
    import java.util.HashMap;
    import java.util.HashSet;
    import java.util.List;
    import java.util.Set;
    import oracle.iam.identity.exception.NoSuchUserException;
    import oracle.iam.identity.exception.UserLookupException;
    import oracle.iam.identity.usermgmt.api.UserManager;
    import oracle.iam.identity.usermgmt.vo.User;
    import oracle.iam.notification.api.NotificationService;
    import oracle.iam.notification.exception.EventException;
    import oracle.iam.notification.exception.MultipleTemplateException;
    import oracle.iam.notification.exception.NotificationException;
    import oracle.iam.notification.exception.NotificationResolverNotFoundException;
    import oracle.iam.notification.exception.TemplateNotFoundException;
    import oracle.iam.notification.exception.UnresolvedNotificationDataException;
    import oracle.iam.notification.exception.UserDetailsNotFoundException;
    import oracle.iam.notification.vo.NotificationEvent;
    import oracle.iam.platform.Platform;
    import oracle.iam.platform.authz.exception.AccessDeniedException;
    import oracle.iam.scheduler.vo.TaskSupport;
    import static oracle.iam.identity.usermgmt.api.UserManagerConstants.AttributeName.MANAGER_KEY;
    import static oracle.iam.identity.usermgmt.api.UserManagerConstants.AttributeName.USER_LOGIN;
    import oracle.iam.platform.kernel.vo.Orchestration;
    public class PasswordExpiry extends TaskSupport {
    public PasswordExpiry() {
    super();
    public void execute(HashMap taskParameters) {
    System.out.println("inside the Execute methode");
    System.out.println("Schedule task Arguments "+taskParameters);
    String userId = (String)taskParameters.get("User Login");
    System.out.println("===========input=============== "+userId);
    String passwordex=taskParameters.get("usr_pwd_expire_date").toString();
    System.out.println("===========input=============== "+passwordex);
    String passwordwar=taskParameters.get("usr_pwd_warn_date").toString();
    System.out.println("===========input=============== "+passwordwar);
    try {
    System.out.println("inside the Try block");
    NotificationService notService = Platform.getService(NotificationService.class);
    NotificationEvent eventToSend = this.createNotificationEvent(userId, passwordex,passwordwar);
    notService.notify(eventToSend);
    } catch (Exception e) {
    e.printStackTrace();
    private NotificationEvent createNotificationEvent(String userKey, String passwordex,
    String passwordwar) throws NoSuchUserException, UserLookupException,
    AccessDeniedException {
    NotificationEvent event = new NotificationEvent();
    //get user IDs to whom notification is to be sent and set it in the
    //event object being created
    String[] receiverUserIds= getRecipientUserIds(userKey);
    event.setUserIds(receiverUserIds);
    //Set template name to be used to send notification for this event
    event.setTemplateName("PasswordWarningNotificationTemplate");
    //Setting senderId as null here and hence default sender ID would
    //get picked up
    event.setSender(null);
    //Create a map with key value pair for the parameters declared at time
    //of configuring notification event
    HashMap<String, Object> map = new HashMap<String, Object>();
    map.put("usr_key", userKey);
    map.put("usr_pwd_warn_date", passwordex);
    map.put("usr_pwd_expire_date",passwordwar);
    event.setParams(map);
    return event;
    private String[] getRecipientUserIds(String userKey) throws NoSuchUserException,
    UserLookupException, AccessDeniedException {
    UserManager usrMgr = Platform.getService(UserManager.class);
    User user = null;
    String userId = null;
    Set<String> userRetAttrs = new HashSet<String>();
    //Sending notification to both the user and his/her manager
    userRetAttrs.add(MANAGER_KEY.getId());
    userRetAttrs.add(USER_LOGIN.getId());
    User manager = null;
    String managerId = null;
    String managerKey = null;
    Set<String> managerRetAttrs = new HashSet<String>();
    managerRetAttrs.add(USER_LOGIN.getId());
    //Retrieving User ID
    user = usrMgr.getDetails(userKey, userRetAttrs, false);
    userId = user.getAttribute(USER_LOGIN.getId()).toString();
    List<String> userIds = new ArrayList<String>();
    userIds.add(userId);
    if (user.getAttribute(MANAGER_KEY.getId()) != null) {
    managerKey = user.getAttribute(MANAGER_KEY.getId()).toString();
    manager = usrMgr.getDetails(managerKey, managerRetAttrs, false);
    //Retrieving User's Manager ID
    managerId = manager.getAttribute(USER_LOGIN.getId()).toString();
    userIds.add(managerId);
    //To return String[] than an Object array
    String[] recipientIDs = userIds.toArray(new String[0]);
    return recipientIDs;
    * Call notification Engine passing an event object to it
    * @param event
    * @throws NotificationException
    private void sendNotification(NotificationEvent event) throws NotificationException {
    try {
    //Call notify method of NotificationService to pass on the event
    //to notification engine
    NotificationService notificationService = Platform.getService(
    NotificationService.class);
    notificationService.notify(event);
    } catch (EventException e) {
    throw new NotificationException(e.getMessage(), e.getCause());
    } catch (UnresolvedNotificationDataException e) {
    throw new NotificationException(e.getMessage(), e.getCause());
    } catch (TemplateNotFoundException e) {
    throw new NotificationException(e.getMessage(), e.getCause());
    } catch (MultipleTemplateException e) {
    throw new NotificationException(e.getMessage(), e.getCause());
    } catch (NotificationResolverNotFoundException e) {
    throw new NotificationException(e.getMessage(), e.getCause());
    } catch (UserDetailsNotFoundException e) {
    throw new NotificationException(e.getMessage(), e.getCause());
    } catch (NotificationException e){
    throw e;
    public HashMap getAttributes() {
    return null;
    public void setAttributes() {}
    Thank you

    The task parameters passed into a scheduled job are the parameters defined for the scheduled task definition in the metadata xml and configured in the scheduled job. They are not the data of an individual user as you seem to be trying to get. In a scheduled task I would expect some sort of search for users to operate on.

  • Error while registering plugin for custom schedule task

    Hello,
    I am trying to register a plugin for creating a custom scheduled task. I have referred to the document
    http://docs.oracle.com/cd/E23943_01/doc.1111/e14309/refsched.htm
    Followed the below steps-
    1. Updated the task.xml as below taken from MDS database
    <task>
    <name>AC Target Source Reconciliation</name>
    <class>com.cgc.iam.customconnector.ac.ReconACTarget</class>
    <description>This schedule task reconciles the active users from AC to OIM. This is a one time initial recon</description>
    <retry>0</retry>
    <parameters>
    <string-param required="true" helpText="IT Resource">IT Resource</string-param>
    <string-param required="true" encrypted="false" helpText="FileName">FileName</string-param>
    <string-param required="true" helpText="Admin">Admin</string-param>
                   <string-param required="true" helpText="AdminPassword">AdminPassword</string-param>
    <string-param required="true" helpText="ConfigurationLookup">ConfigurationLookup</string-param>
                   <string-param required="true" helpText="FilePath">FilePath</string-param>
                   <string-param required="true" helpText="ResourceObject">ResourceObject</string-param>
    </parameters>
    </task>
         <task>
    <name>ACRoleReconTask</name>
    <class>com.cgc.iam.customconnector.ac.ReconACRoles</class>
    <description>This scheduled task will reconcile the ACGroups and AC Roles from a csv file that is stored at a shared location</description>
    <retry>0</retry>
    <parameters>
    <string-param required="true" helpText="Admin">Admin</string-param>
                   <string-param required="true" helpText="AdminPassword">AdminPassword</string-param>
                   <string-param required="true" helpText="FilePath">FilePath</string-param>
    <string-param required="true" helpText="GroupLookup">GroupLookup</string-param>               
    <string-param required="true" helpText="RoleLookup">RoleLookup</string-param>               
                   <string-param required="true" helpText="GroupTableName">GroupTableName</string-param>
                   <string-param required="true" helpText="RoleTableName">RoleTableName</string-param>
    </parameters>
    </task>
    2. Imported the task.xml into MDS.
    3. created the plugin.xml as below-
    <?xml version="1.0" encoding="UTF-8"?>
    <oimplugins xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <plugins pluginpoint="oracle.iam.scheduler.vo.TaskSupport">
    <plugin pluginclass= "com.cgc.iam.customconnector.ac.ReconACTarget" version="1.0.1" name="scheduler element"></plugin>
    <plugin pluginclass= "com.cgc.iam.customconnector.ac.ReconACRoles" version="1.0.1" name="scheduler element">
    </plugin>
    </plugins>
    </oimplugins>
    3. created the plugin.zip with the folder structure as-
    plugin.zip
    plugin.xml
    lib
    jar files
    4. set ant properties
    5. run the command
    java -jar ../../../modules/com.bea.core.jarbuilder_1.7.0.0.jar
    4. registered plugin using ant utility.
    Now, I am getting the below exception-
    oracle.iam.platform.utils.NoSuchServiceException: java.lang.reflect.InvocationTargetException
    Please help.
    Thanks
    sjit

    [echo] at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    [echo] at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    [echo] at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    [echo] Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (DEV1_OIM.PLUGINS_UNIQUE_NAME) violated
    [echo]
    [echo] at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
    [echo] at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
    [echo] at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
    [echo] at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
    [echo] at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
    [echo] at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)
    [echo] at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
    [echo] at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1115)
    [echo] at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)
    [echo] at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)
    [echo] at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3904)
    [echo] at oracle.jdbc.driver.UpdatableResultSet.executeInsertRow(UpdatableResultSet.java:8630)
    [echo] at oracle.jdbc.driver.UpdatableResultSet.insertRow(UpdatableResultSet.java:6428)
    [echo] at weblogic.jdbc.wrapper.ResultSet_oracle_jdbc_driver_UpdatableResultSet.insertRow(Unknown Source)
    [echo] at oracle.iam.platform.pluginframework.DBStore.updatePluginTable(DBStore.java:395)
    [echo] at oracle.iam.platform.pluginframework.DBStore.storePlugins(DBStore.java:193)
    [echo] at oracle.iam.platform.pluginframework.PluginManagerImpl.registerPluginAndReturnStatus(PluginManagerImpl.java:90)
    [echo] at oracle.iam.platformservice.impl.PlatformServiceImpl.registerPluginAndReturnStatus(PlatformServiceImpl.java:106)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [echo] at java.lang.reflect.Method.invoke(Method.java:597)
    [echo] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    [echo] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    [echo] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    [echo] at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:25)
    [echo] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    [echo] at $Proxy735.registerPluginAndReturnStatus(Unknown Source)
    [echo] at oracle.iam.platformservice.api.PlatformServiceEJB.registerPluginAndReturnStatusx(Unknown Source)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [echo] at java.lang.reflect.Method.invoke(Method.java:597)
    [echo] at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    [echo] at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    [echo] at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
    [echo] at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    [echo] at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    [echo] at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    [echo] at $Proxy734.registerPluginAndReturnStatusx(Unknown Source)
    [echo] at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl.__WL_invoke(Unknown Source)
    [echo] at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
    [echo] at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl.registerPluginAndReturnStatusx(Unknown Source)
    [echo] at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl_WLSkel.invoke(Unknown Source)
    [echo] at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
    [echo] at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    [echo] at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
    [echo] at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    [echo] at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
    [echo] at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
    [echo] ... 3 more
    [echo] Exception in thread "Main Thread" oracle.iam.platform.pluginframework.PluginStoreException: An error occurred while storing the plugin in store ORA-00001: unique constraint (DEV1_OIM.PLUGINS_UNIQUE_NAME) violated
    [echo]
    [echo] at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:237)
    [echo] at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
    [echo] at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
    [echo] at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl_1036_WLStub.registerPluginAndReturnStatusx(Unknown Source)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [echo] at java.lang.reflect.Method.invoke(Method.java:597)
    [echo] at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
    [echo] at $Proxy2.registerPluginAndReturnStatusx(Unknown Source)
    [echo] at oracle.iam.platformservice.api.PlatformServiceDelegate.registerPluginAndReturnStatus(Unknown Source)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [echo] at java.lang.reflect.Method.invoke(Method.java:597)
    [echo] at Thor.API.Base.SecurityInvocationHandler$1.run(SecurityInvocationHandler.java:68)
    [echo] at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    [echo] at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    [echo] at weblogic.security.Security.runAs(Security.java:41)
    [echo] at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
    [echo] at Thor.API.Base.SecurityInvocationHandler.invoke(SecurityInvocationHandler.java:79)
    [echo] at $Proxy3.registerPluginAndReturnStatus(Unknown Source)
    [echo] at oracle.iam.platformservice.utils.PluginUtility.registerPluginAndReturnStatus(PluginUtility.java:279)
    [echo] at oracle.iam.platformservice.utils.PluginUtility.main(PluginUtility.java:219)
    [echo] Caused by: oracle.iam.platform.pluginframework.PluginStoreException: An error occurred while storing the plugin in store ORA-00001: unique constraint (DEV1_OIM.PLUGINS_UNIQUE_NAME) violated
    [echo]
    [echo] at oracle.iam.platform.pluginframework.DBStore.storePlugins(DBStore.java:222)
    [echo] at oracle.iam.platform.pluginframework.PluginManagerImpl.registerPluginAndReturnStatus(PluginManagerImpl.java:90)
    [echo] at oracle.iam.platformservice.impl.PlatformServiceImpl.registerPluginAndReturnStatus(PlatformServiceImpl.java:106)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [echo] at java.lang.reflect.Method.invoke(Method.java:597)
    [echo] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    [echo] at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:25)
    [echo] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    [echo] at $Proxy735.registerPluginAndReturnStatus(Unknown Source)
    [echo] at oracle.iam.platformservice.api.PlatformServiceEJB.registerPluginAndReturnStatusx(Unknown Source)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [echo] at java.lang.reflect.Method.invoke(Method.java:597)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    [echo] at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
    [echo] at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    [echo] at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    [echo] at $Proxy734.registerPluginAndReturnStatusx(Unknown Source)
    [echo] at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl.__WL_invoke(Unknown Source)
    [echo] at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
    [echo] at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl.registerPluginAndReturnStatusx(Unknown Source)
    [echo] at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl_WLSkel.invoke(Unknown Source)
    [echo] at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:668)
    [echo] at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    [echo] at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    [echo] at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    [echo] at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    [echo] Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (DEV1_OIM.PLUGINS_UNIQUE_NAME) violated
    [echo]
    [echo] at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
    [echo] at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
    [echo] at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
    [echo] at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
    [echo] at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
    [echo] at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)
    [echo] at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
    [echo] at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1115)
    [echo] at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)
    [echo] at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)
    [echo] at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3904)
    [echo] at oracle.jdbc.driver.UpdatableResultSet.executeInsertRow(UpdatableResultSet.java:8630)
    [echo] at oracle.jdbc.driver.UpdatableResultSet.insertRow(UpdatableResultSet.java:6428)
    [echo] at weblogic.jdbc.wrapper.ResultSet_oracle_jdbc_driver_UpdatableResultSet.insertRow(Unknown Source)
    [echo] at oracle.iam.platform.pluginframework.DBStore.updatePluginTable(DBStore.java:395)
    [echo] at oracle.iam.platform.pluginframework.DBStore.storePlugins(DBStore.java:193)
    [echo] at oracle.iam.platform.pluginframework.PluginManagerImpl.registerPluginAndReturnStatus(PluginManagerImpl.java:90)
    [echo] at oracle.iam.platformservice.impl.PlatformServiceImpl.registerPluginAndReturnStatus(PlatformServiceImpl.java:106)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [echo] at java.lang.reflect.Method.invoke(Method.java:597)
    [echo] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    [echo] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    [echo] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    [echo] at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:25)
    [echo] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    [echo] at $Proxy735.registerPluginAndReturnStatus(Unknown Source)
    [echo] at oracle.iam.platformservice.api.PlatformServiceEJB.registerPluginAndReturnStatusx(Unknown Source)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [echo] at java.lang.reflect.Method.invoke(Method.java:597)
    [echo] at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    [echo] at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    [echo] at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
    [echo] at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    [echo] at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    [echo] at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    [echo] at $Proxy734.registerPluginAndReturnStatusx(Unknown Source)
    [echo] at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl.__WL_invoke(Unknown Source)
    [echo] at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
    [echo] at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl.registerPluginAndReturnStatusx(Unknown Source)
    [echo] at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl_WLSkel.invoke(Unknown Source)
    [echo] at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
    [echo] at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    [echo] at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
    [echo] at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    [echo] at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
    [echo] at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
    [echo] ... 3 more
    [echo] classpath=/users/oim/Oracle/Middleware/Oracle_IDM1/server/ext/spring.jar:/users/oim/Oracle/Middleware/Oracle_IDM1/server/ext/jakarta-commons/commons-logging.jar:/users/oim/Oracle/Middleware/Oracle_IDM1/server/platform/iam-platform-context.jar:/users/oim/Oracle/Middleware/Oracle_IDM1/server/platform/iam-platform-utils.jar:/users/oim/Oracle/Middleware/Oracle_IDM1/server/platform/iam-platform-auth-client.jar:/users/oim/Oracle/Middleware/Oracle_IDM1/server/platform/iam-platform-pluginframework.jar:/users/oim/Oracle/Middleware/Oracle_IDM1/server/client/oimclient.jar:/users/oim/Oracle/Middleware/wlserver_10.3/server/lib/wlfullclient.jar:/users/oim/Oracle/Middleware/oracle_common/modules/oracle.jrf_11.1.1/jrf-api.jar
    [echo]
    [echo]
    [echo] was_home=null
    [echo]
    [echo]
    [echo] client_home=null
    [echo]
    [echo]
    [echo] xl_home=null
    [echo]
    [echo]
    [echo] mw_home=null
    [echo]
    [echo]
    [echo] newClasspath=/users/oim/Oracle/Middleware/Oracle_IDM1/server/ext/spring.jar:/users/oim/Oracle/Middleware/Oracle_IDM1/server/ext/jakarta-commons/commons-logging.jar:/users/oim/Oracle/Middleware/Oracle_IDM1/server/platform/iam-platform-context.jar:/users/oim/Oracle/Middleware/Oracle_IDM1/server/platform/iam-platform-utils.jar:/users/oim/Oracle/Middleware/Oracle_IDM1/server/platform/iam-platform-auth-client.jar:/users/oim/Oracle/Middleware/Oracle_IDM1/server/platform/iam-platform-pluginframework.jar:/users/oim/Oracle/Middleware/Oracle_IDM1/server/client/oimclient.jar:/users/oim/Oracle/Middleware/wlserver_10.3/server/lib/wlfullclient.jar:/users/oim/Oracle/Middleware/oracle_common/modules/oracle.jrf_11.1.1/jrf-api.jar.:/sample:null/ext/ojdbc14.jar:null/ext/ucp.jar:null/oracle_common/modules/oracle.jmx_11.1.1/jmxspi.jar:null/lib/oimclient.jar:null/server/lib/wlfullclient.jar:null/ext/jakarta-commons/commons-logging.jar:null/ext/commons-logging.jar:null/ext/spring.jar:null/ext/spring.jar:null/server/lib/webserviceclient+ssl.jar:null/platform/iam-platform-utils.jar:null/server/lib/wlclient.jar:null/server/lib/weblogic.jar:null/platform/iam-platform-auth-client.jar:null/features/iam-features-system-configuration.zip:null/features/iam-features-identity.zip:null/features/iam-features-platformservice.zip:null/ext/log4j-1.2.8.jar:null/lib/XellerateClient.jar:null/lib/xlAPI.jar:null/lib/xlLogger.jar:null/lib/xlVO.jar:null/lib/xlUtils.jar:null/lib/xlCrypto.jar:null/lib/xlAuthentication.jar:null/lib/xlDataObjectBeans.jar:null/ext/oscache.jar:null/ext/javagroups-all.jar:null/lib/xlFvcUtil.jar:../../../iam/iam-lib/internal/jrf-api.jar:null/oracle_common/modules/oracle.jrf_11.1.1/jrf-api.jar:null/ext/jrf-api.jar:null/oracle_common/webservices/wsclient_extended.jar:null/oracle_common/modules/oracle.xdk_11.1.0/xmlparserv2.jar:null/oracle_common/modules/oracle.jmx_11.1.1/jmxspi.jar:null/oracle_common/modules/oracle.jmx_11.1.1/jmxframework.jar
    [echo] Error in registering the plugin. An error occurred while storing the plugin in store ORA-00001: unique constraint (DEV1_OIM.PLUGINS_UNIQUE_NAME) violated
    [echo]
    [echo] Error occured during the use of plugin registering utility. An error occurred while storing the plugin in store ORA-00001: unique constraint (DEV1_OIM.PLUGINS_UNIQUE_NAME) violated
    BUILD SUCCESSFUL
    Edited by: sjit on Nov 23, 2012 5:20 AM

  • Send email through password expiration scheduled task.

    I want to send an email to a user through password expiraion notification scheduled task.But that particular scheduled task not become in active status after i click run now button.How can i send an email to a user whose password due to expired?

    Last time I had a requirement for sending out password expiration notifications we implemented it as a custom scheduled task. There might be better or quicker ways to do it but that was what we did.
    The code for the custom task is very straightforward so it is most probably quicker to write one of your own rather than trying to figure out what the OOTB task does.
    Good luck
    /M

  • Number parameter in custom schedule task in R2

    Gurus,
    I have a developed a custom schedule task in OIM 11gR2 which has a number parameter as one of the input. I have defined this parm like below in my eventhandler.xml
    <number-param required="true" helpText="Number of Records to Be retrieved">Number of Records</number-param>
    While reading this value in the schedule task code, I am using this.
    try
    String records= String.valueOf(attributes.get("Number of Records"));
    System.out.println("Records"+records);
    catch (Exception e) {
    e.printStackTrace();
    I even tried with the below but same issue.
    try
    int records= Integer.parseInt((String)attributes.get("Number of Records"));
    System.out.println("Records"+records);
    catch (Exception e) {
    e.printStackTrace();
    But my job is failing is saying number format exception.
    Can you please let me know some code snippet to read a number-param in a schedule task.

    Here is a tested code for you.
    import java.util.HashMap;
    import oracle.iam.scheduler.vo.TaskSupport;
    public class Test extends TaskSupport {
    public void execute(HashMap attributes) {
    try {
    long recs=((Long)attributes.get("Number of Records")).longValue();
    print((int) recs);
    catch(Exception e) {
    System.out.println("Exception 1:"+e.getMessage());
    private void print(int a) {
    System.out.println(" a="+a);
    public HashMap getAttributes() {
    return null;
    public void setAttributes() {
    }

  • Problem creating OIM 11g Custom Schedule task

    hi,
    i am creating custom schedule task in oim . while importing scheduletask metadata xml getting follwoing error.
    Problem invoking WLST - Traceback (innermost last):
    File "/app/Oracle/Middleware/Oracle_IDM1/server/bin/weblogicImportMetadata.py", line 21, in ?
    File "/app/Oracle/Middleware/oracle_common/common/wlst/mdsWLSTCommands.py", line 268, in importMetadata
    File "/app/Oracle/Middleware/oracle_common/common/wlst/mdsWLSTCommands.py", line 727, in executeAppRuntimeMBeanOperation
    File "/app/Oracle/Middleware/oracle_common/common/wlst/mdsWLSTCommands.py", line 697, in getMDSAppRuntimeMBean
    UserWarning: MDS-91002: MDS Application runtime MBean for "OIMMetadata" is not available. "importMetadata" operation failure.
    can any one help me.
    Thanks in Advance.

    Do the following:
    From the oracle home (oracle_idm1) run the command <ORACLE_OIM_HOME>\common\bin\wlst.cmd
    Run the connect() command and connect with the weblogic user to the to the oim managed server (port 14000)
    Use the following command change your from location to the directory where your files are at. The location should be one folder up from the base "db" directory : importMetadata(application='oim', server='oim_server1', fromLocation='e:/files', applicationVersion='*')
    -Kevin

  • Custom scheduled task link

    can i get a thread for sample custom scheduled tasks.... the class files which needs to be exported as jars to .../schedulde tasks folder

    Here it is. Copy and paste in your eclipse. Compile into a jar file and place it in the Schedule Task folder:
    - Create a task scheduler with class name default.SampleScheduler
    - Create RO Attributes
    - Create Process Definition Mappings
    Should be fine.
    package default;
    import java.util.HashMap;
    import Thor.API.Exceptions.tcAPIException;
    import Thor.API.Exceptions.tcObjectNotFoundException;
    import Thor.API.Operations.tcLookupOperationsIntf;
    import Thor.API.Operations.tcPropertyOperationsIntf;
    import Thor.API.Operations.tcReconciliationOperationsIntf;
    import com.thortech.xl.scheduler.tasks.SchedulerBaseTask;
    public class SampleScheduler extends SchedulerBaseTask {
              private tcLookupOperationsIntf tclookupoperationsintf = null;
              private tcPropertyOperationsIntf tcpropertyoperationsIntf = null;          
              private tcReconciliationOperationsIntf reconUtil = null;
              private String ROName = null;
              public SampleScheduler() {
                   public void init() {
                        getAPIClass();
                        ROName = getAttribute("Resource Object");
                   private void getAPIClass() {
                        try {
                   tclookupoperationsintf = (tcLookupOperationsIntf)getUtility("Thor.API.Operations.tcLookupOperationsIntf");               
                   reconUtil = (tcReconciliationOperationsIntf)getUtility("Thor.API.Operations.tcReconciliationOperationsIntf");
                   } catch (tcAPIException e) {
                   throw new RuntimeException("Unable to create API instance " +
                             "instance", e);
                   public void execute() {
                        processReconciliation();
              public void processReconciliation(){
                             try {
                                  HashMap recData = new HashMap();
                                  recData.put("Users.UserID", "Test01");
                                  recData.put("Users.First Name", "TestFN");
                                  recData.put("Users.Last Name", "TestLN");
                                  recData.put("Users.OrganizationName","Xellerate Users");
                                  recData.put("Users.EmployeeType", "Full-Time Employee");
                                  recData.put("Users.UserType", "End-User");
                                  try {
                                       long msRceKey =0;
                                       msRceKey = reconUtil.createReconciliationEvent(ROName, recData,
                                                 true);
                                  } catch (tcAPIException tce) {
                                       // throw new RuntimeException(tce);
                                  } catch (tcObjectNotFoundException ex) {
                                       // throw new RuntimeException(ex);
                             } catch (Exception e) {
                                  throw new RuntimeException(e);
    Thanks
    Sunny

  • Custom Schedule Tasks (Administration WorkList)

    Hi All,
    Is possible create a custom schedule tasks? for example create a interface where I alter the period that execute the job?
    Thanks
    Ivo

    Hello,
    I don't think so you can do it dynamically through an interface.
    But there is another approach to this.
    Have a Process defined that has
    1) a CO of type Service-External service, that reads an R/3 table through an RFC call. You maintain the period parameters in this table
    2) a alternative/decision/process control block that checks for the period.
    if true ,then proceed else loop back to 1)
    3)a CO of type Process Control-Initiate Process (Using Predefined Template) that points to the process  that you wanna start.
    This is just a draft. You can make it look really good.
    Cheers,
    Mandrake!

  • Custom scheduled tasks dissapears in Windows 2012

    I have created custom task in Task Scheduler, but it does no appear under "Active Tasks".
    I found the task in C:\Windows\System32\Tasks, but not in the "schtasks /query".
    What is happening?

    Hi sindred,
    àI have created custom task in Task Scheduler, but it does no appear under "Active Tasks".
    I also create a task in my Lab environment via Task Scheduler. Yeah, as you find, the scheduled task didn't appear under "Active Tasks". However, after that task running, please refresh,
    and then you will find it in "Active Tasks" list.
    àI found the task in C:\Windows\System32\Tasks, but not in the "schtasks /query".
    How you configure Location option in General tab when create this task? After creating the scheduled task, please click Task Scheduler Library and check if find that created task. I also run
    "schtasks /query" command. However, I can find that task which I created. I suggest that check the result of "schtasks /query" command again. Meanwhile, please open this task Properties and click History tab, then check
    if find some relevant events.
    If any update, please feel free to let me know.
    Best regards,
    Justin Gu
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Custom Schedule Task error

    Schedule Task Logic:
    SQL query to get list of user id's
    For each user get resource objects
    Update UPN for AD resource if Status 'provisioned' or 'enabled'
    1) After Schedule task processes 500-600 users i get following error in log for each subsequent user.
    09:42:27,608 ERROR [XELLERATE.DATABASE] Class/Method: tcDataBase/readPartialStatement encounter some problems: ORA-01000: maximum open cursors exceeded
    java.sql.SQLException: ORA-01000: maximum open cursors exceeded
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    2) i do check for isStop() method and try to return from code but Schedule Task keeps running till all the users are processed.
    NOTE: Number of users to be processed are 9-10K.
    Thanks a lot.

    Here is the solution:
    1) Login to the OIM database as sys and run the query:
    SQL> select name,value from v$parameter where name like '%curs%';
    NAME - VALUE
    cursor_space_for_time - FALSE
    session_cached_cursors - 20
    cursor_sharing - EXACT
    open_cursors - 300
    change cursor_sharing parameter to *'FORCE'* in the init.ora or spfile, and bounce the database.
    2) The method should be isStopped() for checking the Stop Execution checkbox in the shceduler.
    Thanks
    Sunny

  • Updating a custom field in ItemCheckingIn event of pages library of publishing portal.

    I have Pages Library of publishing web. In this pages library I have a content type that has a  few custom fields.
    When ever a page is created and checked in in this library I want to send out  an update email to users.  The function that sends the email returns an Id to track the mails sent.
    I want to store this id to the one of the custom  fields of the content type attached to this pages library. 
    If I use item checkingIn event then list item is available but when i update it gives  error probably due to the fact that in synchronous item the item is not yet created.
    If i use  CheckedIn  event then it executes after the file is checked in , in that case it  gives error asking me to check  out the file first and the update the custom field.
    Please  suggest the best way to update a  field in document library in synchronous event handlers or in asynchronous event handlers in the simplest of ways.
    I do not want to check out the file in asynchronous event programatically for just one field and then re check it in.

     
    Hi,
    According to your post, my understanding is that you want to update list item in ItemCheckedIn method in Event Receiver.
    The following code snippet for your reference:
    /// <summary>
    /// List Item Events
    /// </summary>
    public class EventReceiver1 : SPItemEventReceiver
    /// <summary>
    /// An item was checked in.
    /// </summary>
    public override void ItemCheckedIn(SPItemEventProperties properties)
    SPListItem item = properties.ListItem;
    item["Title"] = "Test1";
    item.Update();
    If the issue still exists, I suggest you debug your code or provide your code for further research.
    http://sharepoint-kings.blogspot.com/2013/02/debugging-event-receivers-in-sharepoint.html
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Error while running custom schedule task.

    Hello,
    I have created a schedule task, when I am running the task from sysadmin, it wont show any error message.
    In diagnostic log, I got the below error
    [2012-11-29T07:00:18.507-08:00] [oim_server1] [ERROR] [] [oracle.iam.transUI.impl] [tid: OIMQuartzScheduler_Worker-7] [userId: oiminternal] [ecid: 80eeb34d89d5ed80:-1384f0e3:13b4bd4b64a:-8000-0000000000000005,1:29060] [APP: oim#11.1.2.0.0] ADP ClassLoader failed to load: com.cgc.iam.customconnector.ac.ReconAC
    Please help.
    Thanks
    sjit

    Make sure you have included the jar file containing the class - com.cgc.iam.customconnector.ac.ReconAC in OIM classpath.

  • User Recon and Event Handler  Issue in OIM11g

    Hello Experts,
    I am developing a Trusted Source Recon (User) for a proprietary application. I have devloped two java classes and put them into a jar file and placed the same jar in both ScheduleTask and EventHandlers directory of OIM.
    1.UserRecon class -- for User Recon
    2. EventHandler class -- update user's password after reconciling the user using API.
    In the User Recon class , I have defined a static HashMap variable to store the user and user's password as a class variable. The flow will be like this,
    1. Query trsuted source
    2. Reconcile user (except password because password can not be)
    3. Update the map with userid (key) and password.
    4. After reconciling , In the event handler use the same map to read user's password and set the password in OIM using API. (setXelleratePassword).
    5.After successful password set remove the entry from Map.
    The idea is to avoid making additional call to trusted source to retrieve the user's password.
    This worked in OIM9102. But when I tested the same in 11g it did not work.... Though the User Recon class updates the record into the HashMap , In the eventhandler , the HashMap is always coming as "empty".
    I did the below changes for 11g,
    1. Modified the EventHandler class to suite for 11g.
    2. Deployed the event handler as a plugin
    3. Placed the same jar file in Schedule task directory of OIM 11g
    I am unable find out where it is going wrong?? and tired of troubleshooting. Can you assist me ?
    Thanks and Regards
    INIYA

    INIYA wrote:
    Hello Experts,
    I am developing a Trusted Source Recon (User) for a proprietary application. I have devloped two java classes and put them into a jar file and placed the same jar in both ScheduleTask and EventHandlers directory of OIM.
    1.UserRecon class -- for User Recon
    2. EventHandler class -- update user's password after reconciling the user using API.
    In the User Recon class , I have defined a static HashMap variable to store the user and user's password as a class variable. The flow will be like this,
    1. Query trsuted source
    2. Reconcile user (except password because password can not be)
    3. Update the map with userid (key) and password.
    4. After reconciling , In the event handler use the same map to read user's password and set the password in OIM using API. (setXelleratePassword).
    5.After successful password set remove the entry from Map.
    The idea is to avoid making additional call to trusted source to retrieve the user's password.
    This worked in OIM9102. But when I tested the same in 11g it did not work.... Though the User Recon class updates the record into the HashMap , In the eventhandler , the HashMap is always coming as "empty".
    I did the below changes for 11g,
    1. Modified the EventHandler class to suite for 11g.
    2. Deployed the event handler as a plugin
    3. Placed the same jar file in Schedule task directory of OIM 11gHope there are two jars, if this is the case place the secondary jar in lib folder, than make it as plugin.
    >
    I am unable find out where it is going wrong?? and tired of troubleshooting. Can you assist me ?
    put the printstacktrace, so that problem can be identify
    sample code
    HashMap hash= null;
    try{
    hash = get map from other class
    //class be load at this point, if class is not loaded than you will get exception.
    }catch(Throwable t){
    // hope you will get some error or exception here
    t.printstacktrace();
    >
    Thanks and Regards
    INIYAPaste you sample code, if it couldn't help.

  • Event Handling Issues

    Hi Guys..
    I am doing some event handling code and am having some problem.I have placed the following on the stage, a submit button whose instance name is 'btnSubmit' and a label whose instance name is 'lblTest'. The ActionScript 3 code resides in a separate 'Maxwell.as' file. In the 'Maxwell.FLA'
    file, I have typed 'Maxwell' in the document class property. The following is my AS3 code:
    package
    import flash.display.Sprite;
    import flash.events.MouseEvent;
    public class Maxwell extends Sprite
      public function Maxwell()
       // constructor code
      private function sendMsg(e:MouseEvent):void
       lblTest.text = "Clicked";
      btnSubmit.addEventListener(MouseEvent.CLICK, sendMsg);
    When I do a 'CNTRL + ENTER' and run this program I get the following errors:
    Access of undefined property btnSubmit.
    Access of undefined property sendMsg.
    I don't understand why I am getting these errors. I have already linked up both files by typing 'Maxwell' in the
    document class window and furthermore 'sendMsg' is the name of a function. I hope somebody can advise me. Thanks.

    Your add listener code is outside any function - you can't do that with classes. You can put it in the constructor:
    package
    import flash.display.Sprite;
    import flash.events.MouseEvent;
    public class Maxwell extends Sprite
      public function Maxwell()
       // constructor code
          btnSubmit.addEventListener(MouseEvent.CLICK, sendMsg);
      private function sendMsg(e:MouseEvent):void
       lblTest.text = "Clicked";

Maybe you are looking for

  • Issue while loading of data from DSO to InfoCube

    Hi Experts, Can you tell me what might root casue if data is coming into DSO from R3 its correct and fine as required but while loading it to InfoCube from DSO its showing wrong data like some of Line Items that were closed were shown open in Cube AN

  • Facing problem in Bex analyzer

    Hi  Experts,   I have a query when open in analyzer it looks as follows    I represent rows & columns as follows                  *****Columns           rows |----| we are getting Output as follows                                  M1----||| M2--||--

  • Qurey output not coming ?????

    Hi Experts, Mt report has to be displayed if this way , Product Quantity  Actual Revenue 10$      4 kg        40 $ But i am getting the values in Revenue column as 40$ Kg. I have to get only '$'. How can i get it done ? I will reward points for this.

  • Dynamic Columns in Web forms

    Hi Web form is a Account ( Rows) X Period ( Columns) Webform. I want to have dynamic columns in the web forms. For example, In the month of March the User should be able to see Jan, Feb and March in the columns. And in the month of may.. Jan, Feb, Ma

  • Control of 96 switches independently with a 2d Boolean array

    I have an application that I need to change the state of individual switches in a 2d Boolean array. Does anyone have a simple solution???