3 Replies Latest reply: Jun 19, 2013 1:49 AM by uz_jaswal RSS

    OIM Login Authentication fails when calling OIM API

    uz_jaswal
      Hi,

      We have a small custom application written for doing updating certain user attributes on OIM. This applications is working fine on the development system, as well as the test system. However when executing the program on live system, it is generating the error below. Please note that we are using OIM 11.1.1.5, production and test are running linux, while the development system runs windows 7. The test system is single instance, while OIM in production environment is clustered. Quick response will be very helpful.

      We have verified the path provided for authwl.conf and it is correct. Following is the error being thrown:

      oracle.iam.platform.utils.NoSuchServiceException: java.lang.reflect.InvocationTargetException
      at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:197)
      at oracle.iam.platform.OIMClient.getService(OIMClient.java:174)
      at oracle.iam.platform.OIMClient.loginSessionCreated(OIMClient.java:209)
      at oracle.iam.platform.OIMClient.login(OIMClient.java:136)
      at oracle.iam.platform.OIMClient.login(OIMClient.java:129)
      at com.infotech.tra.organization.RoleAssignment.updateUserAttributes(RoleAssignment.java:274)
      at com.infotech.tra.organization.RoleAssignment.main(RoleAssignment.java:73)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:193)
      ... 11 more
      Caused by: oracle.iam.platform.utils.NoSuchServiceException: javax.naming.AuthenticationException [Root exception is java.lang.SecurityException: User: weblogic, failed to be authenticated.]
      at oracle.iam.platformservice.api.ClientLoginSessionServiceDelegate.<init>(Unknown Source)
      ... 16 more
      Caused by: javax.naming.AuthenticationException [Root exception is java.lang.SecurityException: User: weblogic, failed to be authenticated.]
      at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:42)
      at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:788)
      at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:682)
      at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:469)
      at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:376)
      at weblogic.jndi.Environment.getContext(Environment.java:315)
      at weblogic.jndi.Environment.getContext(Environment.java:285)
      at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
      at javax.naming.InitialContext.init(InitialContext.java:223)
      at javax.naming.InitialContext.<init>(InitialContext.java:197)
      at org.springframework.jndi.JndiTemplate.createInitialContext(JndiTemplate.java:114)
      at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:86)
      at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:130)
      at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:155)
      ... 17 more
      Caused by: java.lang.SecurityException: User: weblogic, failed to be authenticated.
      at weblogic.common.internal.RMIBootServiceImpl.authenticate(RMIBootServiceImpl.java:116)
      at weblogic.common.internal.RMIBootServiceImpl_WLSkel.invoke(Unknown Source)
      at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
      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:209)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)