0 Replies Latest reply on Oct 19, 2012 7:43 AM by 956052

    Issue with example "Self Registration" workflow

    956052
      Hi,

      I am using OIM 11.1.1.5 on exalogic platform. I am trying to register the "Self Registration" workflow (http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/oim/oim_11g/Request_Workflow_for_Self_Registration/request_workflow_for_self_registration.htm), and I am currently stuck on step 13 of section "Registering the Custom Approval Process". When I run the ant script, the following error occurs:

      ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      .
      .
      [java] Exception in thread "Main Thread" oracle.iam.platform.workflowservice.exception.IAMWorkflowException: Tasklist mapping failed for workflowdefinition: default/SelfRegistrationApproval!1.0 due to Invalid Token Error in Verification Service.
      [java] Invalid Token Error in Verification Service. Received invalid token in createContext.
      [java] Verify that correct token is passed.
      [java]
      [java] at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
      [java] at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
      [java] at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
      [java] at oracle.iam.platformservice.api.WorkflowRegistrationServiceEJB_f4otyb_WorkflowRegistrationServiceRemoteImpl_1035_WLStub.registerWorkFlowDefinitionx(Unknown Source)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:597)
      [java] at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
      [java] at $Proxy2.registerWorkFlowDefinitionx(Unknown Source)
      [java] at oracle.iam.platformservice.api.WorkflowRegistrationServiceDelegate.registerWorkFlowDefinition(Unknown Source)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:597)
      [java] at Thor.API.Base.SecurityInvocationHandler$1.run(SecurityInvocationHandler.java:68)
      [java] at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      [java] at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      [java] at weblogic.security.Security.runAs(Security.java:41)
      [java] at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
      [java] at Thor.API.Base.SecurityInvocationHandler.invoke(SecurityInvocationHandler.java:79)
      [java] at $Proxy3.registerWorkFlowDefinition(Unknown Source)
      [java] at oracle.iam.platformservice.workflowregclient.WorkflowRegistration.main(WorkflowRegistration.java:42)
      [java] Caused by: oracle.iam.platform.workflowservice.exception.IAMWorkflowException: Tasklist mapping failed for workflowdefinition: default/SelfRegistrationApproval!1.0 due to Invalid Token Error in Verification Service.
      [java] Invalid Token Error in Verification Service. Received invalid token in createContext.
      [java] Verify that correct token is passed.
      [java]
      [java] at oracle.iam.platform.workflowservice.impl.WorkflowRepositoryImpl.mapWorkflow(WorkflowRepositoryImpl.java:132)
      [java] at oracle.iam.platform.workflowservice.impl.WorkflowRepositoryImpl.registerWorkFlowDefinition(WorkflowRepositoryImpl.java:113)
      [java] at oracle.iam.platform.workflowservice.impl.WorkflowServiceImpl.registerWorkFlowDefinition(WorkflowServiceImpl.java:230)
      [java] at oracle.iam.platformservice.impl.WorkflowRegistrationServiceImpl.registerWorkFlowDefinition(WorkflowRegistrationServiceImpl.java:38)
      [java] at oracle.iam.platformservice.api.WorkflowRegistrationServiceEJB.registerWorkFlowDefinitionx(Unknown Source)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:597)
      [java] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      [java] at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
      [java] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      [java] at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
      [java] at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
      [java] at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
      [java] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      [java] at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
      [java] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      [java] at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
      [java] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      [java] at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      [java] at $Proxy452.registerWorkFlowDefinitionx(Unknown Source)
      [java] at oracle.iam.platformservice.api.WorkflowRegistrationServiceEJB_f4otyb_WorkflowRegistrationServiceRemoteImpl.__WL_invoke(Unknown Source)
      [java] at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
      [java] at oracle.iam.platformservice.api.WorkflowRegistrationServiceEJB_f4otyb_WorkflowRegistrationServiceRemoteImpl.registerWorkFlowDefinitionx(Unknown Source)
      [java] at oracle.iam.platformservice.api.WorkflowRegistrationServiceEJB_f4otyb_WorkflowRegistrationServiceRemoteImpl_WLSkel.invoke(Unknown Source)
      [java] at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:668)
      [java] at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
      [java] at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
      [java] at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:119)
      [java] at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      [java] at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

      BUILD FAILED
      /u01/app/test/products/oracle/oiam/iam/iam/server/workflows/registration/registerworkflows-mp.xml:51: Java returned: 1
      at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      at org.apache.tools.ant.Task.perform(Task.java:348)
      at org.apache.tools.ant.Target.execute(Target.java:357)
      at org.apache.tools.ant.Target.performTasks(Target.java:385)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1307)
      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1191)
      at org.apache.tools.ant.Main.runBuild(Main.java:758)
      at org.apache.tools.ant.Main.startAnt(Main.java:218)
      at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
      at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
      ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

      The (partial) output for the OIM and SOA logs show more info about the error:

      ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      -> Log file: /u01/app/test/config/domains/iam_domain/mserver/iam_domain/servers/WLS_OIM1/logs/WLS_OIM1-diagnostic.log
      [2012-10-19T15:39:57.247+11:00] [WLS_OIM1] [ERROR] [] [OIM Authentication Provider] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000JdrKWszBp2OMyizW6G1GWDJc00000Z,0] oracle.iam.platform.auth.providers.wls.OIMSignatureLoginModule login() Invalid Input username/password
      [2012-10-19T15:39:58.242+11:00] [WLS_OIM1] [ERROR] [IAM-2010023] [oracle.iam.platform.workflowservice] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: aa237de71e3bd332:5124202d:13a773e1e57:-8000-0000000000001525,0] [APP: oim#11.1.1.3.0] Tasklist mapping failed for workflowdefinition: default/SelfRegistrationApproval!1.0 due to Invalid Token Error in Verification Service.[[
      Invalid Token Error in Verification Service. Received invalid token in createContext.
      Verify that correct token is passed.

      ]]

      ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      -> Log file: /u01/app/test/config/domains/iam_domain/mserver/iam_domain/servers/WLS_OIM1/logs/WLS_OIM1.out
      <Oct 19, 2012 3:39:57 PM EST> <Error> <OIM Authentication Provider> <BEA-000000> <oracle.iam.platform.auth.providers.wls.OIMSignatureLoginModule login() Invalid Input username/password>
      <Oct 19, 2012 3:39:57 PM EST> <Warning> <JNDI> <BEA-050006> <An attempt was made to look up versioned object "ejb.stateless.ClientLoginSessionService#oracle.iam.platformservice.api.ClientLoginSessionServiceRemote" from an external client or another application. This can potentially cause in-flight work of the application version not being tracked properly and thus being retired prematurely.>
      ORABPEL-30503

      Invalid Token Error in Verification Service.
      Invalid Token Error in Verification Service. Received invalid token in createContext.
      Verify that correct token is passed.

      at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
      at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
      .
      .
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
      Caused by: ORABPEL-30504

      Internal error in Verification Service.
      Internal error in Verification Service for user weblogic_idm. hasPermission.
      Check the underlying exception and correct the error. If the error persists, contact Oracle Support Services.

      at oracle.bpel.services.workflow.verification.impl.VerificationService.hasPermission(VerificationService.java:3711)
      .
      .
      at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
      ... 3 more
      <Oct 19, 2012 3:39:58 PM EST> <Error> <oracle.iam.platform.workflowservice> <IAM-2010023> <Tasklist mapping failed for workflowdefinition: default/SelfRegistrationApproval!1.0 due to Invalid Token Error in Verification Service.
      Invalid Token Error in Verification Service. Received invalid token in createContext.
      Verify that correct token is passed.
      >

      ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

      -> Log file: /u01/app/test/config/domains/iam_domain/mserver/iam_domain/servers/WLS_IAM_SOA1/logs/WLS_IAM_SOA1-diagnostic.log
      [2012-10-19T15:39:58.035+11:00] [WLS_IAM_SOA1] [ERROR] [] [OIM Authentication Provider] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: aa237de71e3bd332:5124202d:13a773e1e57:-8000-0000000000001525,1:29948] oracle.iam.platform.auth.providers.wls.OIMSignatureLoginModule login() Invalid Input username/password
      [2012-10-19T15:39:58.121+11:00] [WLS_IAM_SOA1] [ERROR] [] [OIM Authentication Provider] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic_idm] [ecid: aa237de71e3bd332:5124202d:13a773e1e57:-8000-0000000000001525,1:29950] [APP: soa-infra] oracle.iam.platform.auth.providers.wls.OIMSignatureLoginModule login() Invalid Input username/password
      [2012-10-19T15:39:58.217+11:00] [WLS_IAM_SOA1] [ERROR] [] [oracle.soa.services.workflow.verification] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic_idm] [ecid: aa237de71e3bd332:5124202d:13a773e1e57:-8000-0000000000001525,1:29950] [APP: soa-infra] <.> hasPermission: error: access denied (oracle.security.jps.service.policystore.PolicyStoreAccessPermission Context:APPLICATION Context Name:soa-infra Actions:getApplicationPolicy)
      [2012-10-19T15:39:58.217+11:00] [WLS_IAM_SOA1] [ERROR] [] [oracle.soa.services.workflow.query] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic_idm] [ecid: aa237de71e3bd332:5124202d:13a773e1e57:-8000-0000000000001525,1:29950] [APP: soa-infra] <.> Internal error in Verification Service.[[
      Internal error in Verification Service for user weblogic_idm. hasPermission.
      Check the underlying exception and correct the error. If the error persists, contact Oracle Support Services.
      ORABPEL-30504

      Internal error in Verification Service.
      Internal error in Verification Service for user weblogic_idm. hasPermission.
      Check the underlying exception and correct the error. If the error persists, contact Oracle Support Services.

      at oracle.bpel.services.workflow.verification.impl.VerificationService.hasPermission(VerificationService.java:3711)
      at oracle.bpel.services.workflow.verification.impl.VerificationService.createContextS(VerificationService.java:916)
      at oracle.bpel.services.workflow.verification.impl.VerificationService.createContext(VerificationService.java:898)
      at oracle.bpel.services.workflow.verification.impl.VerificationService.createContext(VerificationService.java:852)
      at oracle.bpel.services.workflow.verification.impl.VerificationService.authenticateUser(VerificationService.java:692)
      .
      .
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
      Caused by: java.security.AccessControlException: access denied (oracle.security.jps.service.policystore.PolicyStoreAccessPermission Context:APPLICATION Context Name:soa-infra Actions:getApplicationPolicy)
      at java.security.AccessControlContext.checkPermission(AccessControlContext.java:374)
      at java.security.AccessController.checkPermission(AccessController.java:546)
      at oracle.security.jps.util.JpsAuth$AuthorizationMechanism$3.checkPermission(JpsAuth.java:436)
      .
      .
      at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
      ... 3 more

      ]]
      [2012-10-19T15:39:58.224+11:00] [WLS_IAM_SOA1] [ERROR] [] [oracle.soa.services.workflow.verification] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic_idm] [ecid: aa237de71e3bd332:5124202d:13a773e1e57:-8000-0000000000001525,1:29950] [APP: soa-infra] <.> getContext: error: Internal error in Verification Service.[[
      Internal error in Verification Service for user weblogic_idm. hasPermission.
      Check the underlying exception and correct the error. If the error persists, contact Oracle Support Services.

      ]]
      [2012-10-19T15:39:58.225+11:00] [WLS_IAM_SOA1] [ERROR] [] [oracle.soa.services.workflow.query] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic_idm] [ecid: aa237de71e3bd332:5124202d:13a773e1e57:-8000-0000000000001525,1:29950] [APP: soa-infra] <.> Invalid Token Error in Verification Service.[[
      Invalid Token Error in Verification Service. Received invalid token in createContext.
      Verify that correct token is passed.
      ORABPEL-30503

      Invalid Token Error in Verification Service.
      Invalid Token Error in Verification Service. Received invalid token in createContext.
      Verify that correct token is passed.

      at oracle.bpel.services.workflow.verification.impl.VerificationService.createContext(VerificationService.java:903)
      at oracle.bpel.services.workflow.verification.impl.VerificationService.createContext(VerificationService.java:852)
      at oracle.bpel.services.workflow.verification.impl.VerificationService.authenticateUser(VerificationService.java:692)
      .
      .
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
      Caused by: ORABPEL-30504

      Internal error in Verification Service.
      Internal error in Verification Service for user weblogic_idm. hasPermission.
      Check the underlying exception and correct the error. If the error persists, contact Oracle Support Services.

      at oracle.bpel.services.workflow.verification.impl.VerificationService.hasPermission(VerificationService.java:3711)
      at oracle.bpel.services.workflow.verification.impl.VerificationService.createContextS(VerificationService.java:916)
      at oracle.bpel.services.workflow.verification.impl.VerificationService.createContext(VerificationService.java:898)
      ... 70 more
      Caused by: java.security.AccessControlException: access denied (oracle.security.jps.service.policystore.PolicyStoreAccessPermission Context:APPLICATION Context Name:soa-infra Actions:getApplicationPolicy)
      at java.security.AccessControlContext.checkPermission(AccessControlContext.java:374)
      .
      .
      at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
      ... 3 more

      ]]

      ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

      -> Log file: /u01/app/test/config/domains/iam_domain/mserver/iam_domain/servers/WLS_IAM_SOA1/logs/WLS_IAM_SOA1.out
      <Oct 19, 2012 3:39:58 PM EST> <Error> <OIM Authentication Provider> <BEA-000000> <oracle.iam.platform.auth.providers.wls.OIMSignatureLoginModule login() Invalid Input username/password>
      <Oct 19, 2012 3:39:58 PM EST> <Error> <OIM Authentication Provider> <BEA-000000> <oracle.iam.platform.auth.providers.wls.OIMSignatureLoginModule login() Invalid Input username/password>
      <Oct 19, 2012 3:39:58 PM EST> <Error> <oracle.soa.services.workflow.verification> <BEA-000000> <<.> hasPermission: error: access denied (oracle.security.jps.service.policystore.PolicyStoreAccessPermission Context:APPLICATION Context Name:soa-infra Actions:getApplicationPolicy)>
      <Oct 19, 2012 3:39:58 PM EST> <Error> <oracle.soa.services.workflow.query> <BEA-000000> <<.> Internal error in Verification Service.
      Internal error in Verification Service for user weblogic_idm. hasPermission.
      Check the underlying exception and correct the error. If the error persists, contact Oracle Support Services.

      ORABPEL-30504

      Internal error in Verification Service.
      Internal error in Verification Service for user weblogic_idm. hasPermission.
      Check the underlying exception and correct the error. If the error persists, contact Oracle Support Services.

      at oracle.bpel.services.workflow.verification.impl.VerificationService.hasPermission(VerificationService.java:3711)
      at oracle.bpel.services.workflow.verification.impl.VerificationService.createContextS(VerificationService.java:916)
      .
      .
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
      Caused By: java.security.AccessControlException: access denied (oracle.security.jps.service.policystore.PolicyStoreAccessPermission Context:APPLICATION Context Name:soa-infra Actions:getApplicationPolicy)
      at java.security.AccessControlContext.checkPermission(AccessControlContext.java:374)
      at java.security.AccessController.checkPermission(AccessController.java:546)
      at oracle.security.jps.util.JpsAuth$AuthorizationMechanism$3.checkPermission(JpsAuth.java:436)
      .
      .
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
      >
      <Oct 19, 2012 3:39:58 PM EST> <Error> <oracle.soa.services.workflow.verification> <BEA-000000> <<.> getContext: error: Internal error in Verification Service.
      Internal error in Verification Service for user weblogic_idm. hasPermission.
      Check the underlying exception and correct the error. If the error persists, contact Oracle Support Services.
      >
      <Oct 19, 2012 3:39:58 PM EST> <Error> <oracle.soa.services.workflow.query> <BEA-000000> <<.> Invalid Token Error in Verification Service.
      Invalid Token Error in Verification Service. Received invalid token in createContext.
      Verify that correct token is passed.

      ORABPEL-30503

      Invalid Token Error in Verification Service.
      Invalid Token Error in Verification Service. Received invalid token in createContext.
      Verify that correct token is passed.

      at oracle.bpel.services.workflow.verification.impl.VerificationService.createContext(VerificationService.java:903)
      at oracle.bpel.services.workflow.verification.impl.VerificationService.createContext(VerificationService.java:852)
      at oracle.bpel.services.workflow.verification.impl.VerificationService.authenticateUser(VerificationService.java:692)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
      >
      ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


      From these logs, it seems that the user "weblogic_idm" either has an incorrect password set or does not have permission. I am still trying to work it out....any input would be much appreciated.

      regards,
      Evangelo