2 Replies Latest reply: Jan 19, 2013 12:31 PM by SAISRINIVAS RSS

    OIM11g R2 Help required

    911776
      Hi,

      I have created two UDFs in OIM 11g R2. Here are the steps I have followed.

      1. Created a sandbox.
      2. Activated the sandbox.
      3. Created the UDFs.
      4. Went to Create/Modify and View screens .Did customization to include them in the page display.
      5. Published the sandbox.

      I can see the UDFs created on all the pages I have added, I can modify/provide values during user creation from OIM UI.

      But, when I try to update from code, I am getting the below error.

      IAM-3056160:Modify User Profile request cannot set or change attribute. since it is not defined in the corresponding data set.:Modify User Profile

      I tried to modify Email, got the same error.

      The code worked fine with "First Name" and "Last Name". Am I missing something. ??

      Thanks
      Vicky
        • 1. Re: OIM11g R2 Help required
          911776
          Here is the full stack trace.


          oracle.iam.identity.exception.ValidationFailedException: IAM-3056160:Modify User Profile request cannot set or change attribute attribute1, since it is not defined in the corresponding data set.:Modify User Profile:attribute1
               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 oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemoteImpl_1036_WLStub.modifyx(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)
               at $Proxy2.modifyx(Unknown Source)
               at oracle.iam.identity.usermgmt.api.UserManagerDelegate.modify(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 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)
               at $Proxy3.modify(Unknown Source)
               at test.TestClass.setSharedSecret(TestClass.java:89)
               at test.TestClass.main(TestClass.java:34)
          Caused by: oracle.iam.platform.kernel.ValidationFailedException: IAM-3056160:Modify User Profile request cannot set or change attribute Shared Secret Question, since it is not defined in the corresponding data set.:Modify User Profile:Shared Secret Question
               at oracle.iam.identity.usermgmt.utils.UserManagerUtils.createValidationFailedException(UserManagerUtils.java:337)
               at oracle.iam.identity.usermgmt.utils.UserManagerUtils.createValidationFailedException(UserManagerUtils.java:372)
               at oracle.iam.identity.utils.Utils.getRequestEntityAttributesFromOrchestartionParams(Utils.java:2503)
               at oracle.iam.identity.utils.Utils.prepareRequestEntity(Utils.java:2381)
               at oracle.iam.identity.utils.Utils.prepareRequestEntity(Utils.java:2370)
               at oracle.iam.identity.utils.Utils.prepareRequestData(Utils.java:2354)
               at oracle.iam.identity.utils.Utils.prepareRequestData(Utils.java:2342)
               at oracle.iam.identity.utils.Utils.prepareRequestData(Utils.java:2322)
               at oracle.iam.identity.usermgmt.impl.UserManagerImpl.modify(UserManagerImpl.java:583)
               at oracle.iam.identity.usermgmt.impl.UserManagerImpl.modify(UserManagerImpl.java:679)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
               at java.lang.reflect.Method.invoke(Method.java:601)
               at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
               at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
               at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
               at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:25)
               at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
               at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
               at $Proxy332.modify(Unknown Source)
               at oracle.iam.identity.usermgmt.api.UserManagerEJB.modifyx(Unknown Source)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
               at java.lang.reflect.Method.invoke(Method.java:601)
               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.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
               at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
               at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
               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)
               at $Proxy331.modifyx(Unknown Source)
               at oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemoteImpl.__WL_invoke(Unknown Source)
               at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
               at oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemoteImpl.modifyx(Unknown Source)
               at oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemoteImpl_WLSkel.invoke(Unknown Source)
               at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
               at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
               at 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:256)
               at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
          Process exited with exit code 0.

          Regards
          Vicky
          • 2. Re: OIM11g R2 Help required
            SAISRINIVAS
            Hi,

            I hope you have pubilshed the sandboxes in both sysadmin & identiy console, anyhow you have mentioned that modify is working from OIM UI.

            In the code, would like to know how you are referring the UDF.

            say for example userMap("USR_UDF_ATTRIBUTE1" "Value").


            Regards
            Sai